Lux-AI-Challenge / Lux-Design-S1

Home to the design and engine of the @Lux-AI-Challenge Season 1, hosted on @kaggle
https://lux-ai.org/
Apache License 2.0
897 stars 152 forks source link

CLI on Macos does not have write permissions #132

Closed pnealgit closed 2 years ago

pnealgit commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

I do not like running anything as sudo.

On Tue, Aug 31, 2021 at 12:43 AM Stone Tao @.***> wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lux-AI-Challenge/Lux-Design-2021/issues/132#issuecomment-908754835, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSQUQEBCMCOMXYYGUOXM3T7QCQTANCNFSM5DCJXFUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

StoneT2000 commented 2 years ago

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 commented 2 years ago

Hi Stone, npx did the trick. But now I have a release mis-match between the 3.0 visualizer and the 3.1 replay.json code.... I think.

Best regards, Phil

On Tue, Aug 31, 2021 at 4:35 PM Stone Tao @.***> wrote:

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`

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lux-AI-Challenge/Lux-Design-2021/issues/132#issuecomment-909296634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSQUVA44HMO4HH5NODZW3T7TSEJANCNFSM5DCJXFUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

pnealgit commented 2 years ago

Hi Stone, To get 3.1 I had to say: npm install @@.***

(added on the @.***' )

Phil

On Tue, Aug 31, 2021 at 4:35 PM Stone Tao @.***> wrote:

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`

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lux-AI-Challenge/Lux-Design-2021/issues/132#issuecomment-909296634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSQUVA44HMO4HH5NODZW3T7TSEJANCNFSM5DCJXFUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

pnealgit commented 2 years ago

Dang ! I should have written:

npm install @@.***

On Tue, Aug 31, 2021 at 4:35 PM Stone Tao @.***> wrote:

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`

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lux-AI-Challenge/Lux-Design-2021/issues/132#issuecomment-909296634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSQUVA44HMO4HH5NODZW3T7TSEJANCNFSM5DCJXFUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

StoneT2000 commented 2 years ago

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

pnealgit commented 2 years ago

Hi Stone,

I didn't send any '****' . Hmmm

But I did get the 3.1 dist.zip, installed it , and now everything is working fine. (Except maybe for my brain.) Yes. The issue is resolved.

Thank you for your efforts. Phil

On Wed, Sep 1, 2021 at 1:59 PM Stone Tao @.***> wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lux-AI-Challenge/Lux-Design-2021/issues/132#issuecomment-910214315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSQUUYRAVWJI6ICFVV32DT7YISDANCNFSM5DCJXFUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.