Code Monkey home page Code Monkey logo

Comments (6)

StoneT2000 avatar StoneT2000 commented on June 11, 2024 1

ah I see! Will fix

from lux-design-s2.

StoneT2000 avatar StoneT2000 commented on June 11, 2024 1

fixed in v2.1.8

from lux-design-s2.

StoneT2000 avatar StoneT2000 commented on June 11, 2024

That should be fine since mac is unix

from lux-design-s2.

kevinrtai avatar kevinrtai commented on June 11, 2024

Hmm, I get the following error when I try to run a non-python agent on MacOS but I don't have the same problem on my Ubuntu machine.

kevinrtai@kevinrtai-mbp:~/projects/luxai-s2/bots
$ luxai-s2 /Users/kevinrtai/projects/luxai-s2/bots/run-agent.out ../Lux-Design-S2/kits/python/main.py --output replay.json
Task exception was never retrieved
future: <Task finished name='Task-3' coro=<BotProcess.start() done, defined at /Users/kevinrtai/.pyenv/versions/3.10.7/envs/luxai-s2/lib/python3.10/site-packages/luxai_runner/process.py:45> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/envs/luxai-s2/lib/python3.10/site-packages/luxai_runner/process.py", line 56, in start
    self._agent_process = await asyncio.create_subprocess_exec(
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/asyncio/subprocess.py", line 218, in create_subprocess_exec
    transport, protocol = await loop.subprocess_exec(
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/asyncio/base_events.py", line 1667, in subprocess_exec
    transport = await self._make_subprocess_transport(
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/asyncio/unix_events.py", line 207, in _make_subprocess_transport
    transp = _UnixSubprocessTransport(self, protocol, args, shell,
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/asyncio/base_subprocess.py", line 36, in __init__
    self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/asyncio/unix_events.py", line 799, in _start
    self._proc = subprocess.Popen(
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/subprocess.py", line 1845, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/kevinrtai/projects/luxai-s2/bots\\run-agent.out'
Traceback (most recent call last):
  File "/Users/kevinrtai/.pyenv/versions/luxai-s2/bin/luxai-s2", line 8, in <module>
    sys.exit(main())
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/envs/luxai-s2/lib/python3.10/site-packages/luxai_runner/cli.py", line 161, in main
    asyncio.run(eps.run())
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/envs/luxai-s2/lib/python3.10/site-packages/luxai_runner/episode.py", line 144, in run
    resolved_actions = await asyncio.gather(*action_coros)
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/envs/luxai-s2/lib/python3.10/site-packages/luxai_runner/bot.py", line 79, in step
    action, stderr = await asyncio.wait_for(
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/Users/kevinrtai/.pyenv/versions/3.10.7/envs/luxai-s2/lib/python3.10/site-packages/luxai_runner/process.py", line 106, in write
    self._agent_process.stdin.write(msg.encode())
AttributeError: 'BotProcess' object has no attribute '_agent_process'

I think it's exactly because MacOS is a Unix platform that this doesn't work. It's trying to use a backslash as a file path separator (like on Windows) when it should be using forward slash.

FileNotFoundError: [Errno 2] No such file or directory: '/Users/kevinrtai/projects/luxai-s2/bots\\run-agent.out'

from lux-design-s2.

rooklift avatar rooklift commented on June 11, 2024

To be clear, the issue is the string "darwin" contains "win"

from lux-design-s2.

kevinrtai avatar kevinrtai commented on June 11, 2024

Yes

from lux-design-s2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.