-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node error when running Python agent #131
Comments
This is likely a quirk of the CLI tool on windows systems. This is usually not a issue though. Did a replay file still generate? |
It didn't. The folder generated in the "errorlogs" folder, but that was also empty. |
Is this powershell or command prompt? |
It's happening with both, actually. |
Can you try running the command but specify --out=replay.json as an argument? replay.json should pop up in the directory |
Full |
Yeah that's the default bot. Looks like it's working then. For now ignore the unlink bug |
Ran it again in Powershell. It doesn't seem to create the replay, though. PS C:\Users\jw\Downloads\simple.tar\simple> lux-ai-2021 main.py main.py --out=replay.json
>>
-=-=-=-=-=-=-=-=-=-=-=-| [INFO] match_3mSFqQapxOsj |-=-=-=-=-=-=-=-=-=-=-=-
[INFO] (match_3mSFqQapxOsj) - Design: lux_ai_2021 | Initializing match - ID: 3mSFqQapxOsj, Name: match_3mSFqQapxOsj
{
ranks: [
{ rank: 1, agentID: 0, name: 'main.py' },
{ rank: 2, agentID: 1, name: 'main.py' }
],
replayFile: 'replay.json',
seed: 220065719
}
(node:7836) UnhandledPromiseRejectionWarning: Error: EPERM: operation not permitted, unlink 'C:\Users\jw\Downloads\simple.tar\simple\errorlogs\match_3mSFqQapxOsj\agent_0.log'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7836) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7836) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. However, it may just be me having this issue, so I'll keep messing around with it to see if I can generate the replay. Thanks for all the advice! |
For now, you can stick to using |
Same behavior here on Windows as well. |
Same issue here Win10 tried lots of different things, file permissions, run as admin, different npm versions, clearing npm cache, closing applications, restarting and various combinations of them. Similar issue on latest Ubuntu + node. |
And on ubuntu? What's your output when running on ubuntu |
On install. `npm ERR! code EACCES npm ERR! syscall access When run as root. `> node-gyp rebuild 2021/10/13 23:18:45.728243 cmd_run.go:1002: WARNING: cannot create user data directory: cannot create "/nonexistent/snap/node/5322": mkdir /nonexistent: permission denied
2021/10/13 23:18:45.922920 cmd_run.go:1002: WARNING: cannot create user data directory: cannot create "/nonexistent/snap/node/5322": mkdir /nonexistent: permission denied |
appears to be a different issue @aaronhance. Can you use
instead? |
Seems to work now, despite installation errors https://gist.github.com/aaronhance/1d6485c2944581589fe8b944e7e12576 |
You can ignore the install errors. They don't mean anything relevant to the engine |
Windows 10 python 3.9.5 after lux-ai-2021 main.py main.py --out=replay.json got: [INFO] (match_IE9xdjvBDnqM) - Design: lux_ai_2021 | Initializing match - ID: IE9xdjvBDnqM, Name: match_IE9xdjvBDnqM [Error: EPERM: operation not permitted, unlink 'C:\work\kaggle\lux\errorlogs\match_IE9xdjvBDnqM\agent_0.log'] { |
This error is okay @Vadimcg, you can ignore it |
After initial installations, when I try to run the node command to run the Python agent, I seem to get this error:
Restarted to see if another process had a handle on that location, but I still get the same error.
Node version is 14.17.5
Python version is 3.6.12 :: Anaconda custom (64-bit)
If any other logging is needed, just let me know.
The text was updated successfully, but these errors were encountered: