Comments (6)
ah I see! Will fix
from lux-design-s2.
fixed in v2.1.8
from lux-design-s2.
That should be fine since mac is unix
from lux-design-s2.
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.
To be clear, the issue is the string "darwin" contains "win"
from lux-design-s2.
Yes
from lux-design-s2.
Related Issues (20)
- Error CLI tool - numpy not installed HOT 1
- Fix bug where 2 heavies entering a tile full of lights will lose power depending on lights sometimes
- game ending prematurely?
- Add windows compile scripts for java bot
- Dissect the power generated/lost each turn in visualizer
- Visualizer cannot load replays generated by the CLI tool. HOT 5
- Discrepancy in ActionsQueue action space HOT 2
- Discrepancy in visualiser vs official scoring of the game HOT 1
- OSx Pip install luxai-s2 failing when installing vec-noise HOT 4
- AttributeError: 'BotProcess' object has no attribute '_agent_process' HOT 1
- Issue with the RL tutorial (part 2) HOT 2
- Error in gym setup on Windows HOT 6
- Error in juxai-s2 install on Windows HOT 3
- InvalidRequirement when verifying installation HOT 5
- error in train.py - bool object is not subscriptable HOT 1
- Markdown file missing syntax highlighting HOT 1
- Feature Request: upgrade from gym to gymnasium HOT 9
- Robot did not pickup power from factory. HOT 1
- gym==0.21.0 is deprecated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lux-design-s2.