Skip to content
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

CLI on Macos does not have write permissions #132

Closed
pnealgit opened this issue Aug 30, 2021 · 8 comments
Closed

CLI on Macos does not have write permissions #132

pnealgit opened this issue Aug 30, 2021 · 8 comments

Comments

@pnealgit
Copy link

Hi,
It seems when I try to run anything on my Mac, I get write access errors.
It does not seem to be writing to the local directory , in this case /Users/pneal/lux

It also gets write access refused when trying to do a simple:
lux-ai-2021 --statefulReplay

Is there a way to designate where log and replay files should go ?

Phillips-MacBook-Air:lux pneal$ lux-ai-2021 agent.py agent.py
internal/fs/utils.js:314
throw err;
^

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@lux-ai/2021-challenge/node_modules/local/bots'
at Object.mkdirSync (fs.js:1009:3)
at new Dimension (/usr/local/lib/node_modules/@lux-ai/2021-challenge/node_modules/dimensions-ai/lib/main/Dimension/index.js:217:18)
at Object.create (/usr/local/lib/node_modules/@lux-ai/2021-challenge/node_modules/dimensions-ai/lib/main/Dimension/index.js:491:12)
at Object.runner (/usr/local/lib/node_modules/@lux-ai/2021-challenge/lib/es5/bin/runner.js:78:25)
at Object. (/usr/local/lib/node_modules/@lux-ai/2021-challenge/lib/es5/bin/index.js:92:14)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path: '/usr/local/lib/node_modules/@lux-ai/2021-challenge/node_modules/local/bots'
}
Phillips-MacBook-Air:lux pneal$

@StoneT2000
Copy link
Member

The tool generates some other files within the package itself for various purposes (eg caching when running tournament mode although it's useless in the local case)

Try running with sudo

@pnealgit
Copy link
Author

pnealgit commented Aug 31, 2021 via email

@StoneT2000
Copy link
Member

Ok instead of a global install, make a folder and inside it do npm install @lux-ai/2021-challenge

Then try running

npx lux-ai-2021 as the command add your arguments`

@pnealgit
Copy link
Author

pnealgit commented Sep 1, 2021 via email

@pnealgit
Copy link
Author

pnealgit commented Sep 1, 2021 via email

@pnealgit
Copy link
Author

pnealgit commented Sep 1, 2021 via email

@StoneT2000
Copy link
Member

Sorry not sure what you are typing, I just see ****, is this issue resolved?

@pnealgit
Copy link
Author

pnealgit commented Sep 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants