PokemonGo-Bot-Desktop icon indicating copy to clipboard operation
PokemonGo-Bot-Desktop copied to clipboard

Javascript Error: ENOENT:

Open Bilters opened this issue 9 years ago • 16 comments

Expected Behavior

To launch the application.

Actual Behavior

Pop up showing Javascript error

Uncaught Exception:
Error: ENOENT: no such file or directory, rename '/Users/bilters/Desktop/POKEMON/PokemonGo-Bot-Desktop/gofbot/web/userdata.js.example' -> '/Users/bilters/Desktop/POKEMON/PokemonGo-Bot-Desktop/gofbot/web/userdata.js'
    at Error (native)
    at Object.fs.renameSync (fs.js:809:18)
    at startPython (/Users/bilters/Desktop/POKEMON/PokemonGo-Bot-Desktop/main.js:193:8)
    at EventEmitter.<anonymous> (/Users/bilters/Desktop/POKEMON/PokemonGo-Bot-Desktop/main.js:118:5)
    at emitMany (events.js:127:13)
    at EventEmitter.emit (events.js:201:7)
    at WebContents.<anonymous> (/Users/bilters/Desktop/POKEMON/PokemonGo-Bot-Desktop/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/browser/api/web-contents.js:209:13)
    at emitTwo (events.js:106:13)a
    at WebContents.emit (events.js:191:7)

Steps to Reproduce

Launching the complete new pull. (Did a complete wipe and reinstall of this repository)

Bilters avatar Aug 07 '16 09:08 Bilters

I can confirm this error

t-v avatar Aug 07 '16 09:08 t-v

  1. Navigate to gofbot/web/config
  2. Copy userdata.js.example
  3. Paste into gofbot/web
  4. Rename it to "userdata.js" 5.Profit????

If no one else creates a PR, I'll try to send one tonight (just got off plane too tired atm). I'm not sure if it's the right way to fix it for devs though. By reading the Error message and the Readme file in gofbot/web I think it was intended to be there, not in /config.

nseckinoral avatar Aug 07 '16 09:08 nseckinoral

8bf9dc9 should fix it

sniok avatar Aug 07 '16 09:08 sniok

@nseckinoral We can't modify gofbot folder or web folder because they are seaprate submodules

sniok avatar Aug 07 '16 09:08 sniok

Sorry for sticking my nose 😅 I was trying to help till it gets fixed officially. Thanks for the fast patch! Highly appreciate your work. @sniok

nseckinoral avatar Aug 07 '16 09:08 nseckinoral

i try it and the map cannot load due to java error

jhello23 avatar Aug 07 '16 10:08 jhello23

@jhello23 please post error text

sniok avatar Aug 07 '16 10:08 sniok

@sniok "This page didn't load Google Maps correctly. See the JavaScript Console for technical details" . is this only the prob to my java ? need to update it ?

jhello23 avatar Aug 07 '16 10:08 jhello23

http://imgur.com/a/lCa4n this is the image . @sniok

jhello23 avatar Aug 07 '16 10:08 jhello23

@jhello23 You are using old version that doesn't work. Wait until new release or try build from source.

sniok avatar Aug 07 '16 10:08 sniok

You have to enable java on google api

siembz avatar Aug 08 '16 15:08 siembz

Still it happens

Uncaught Exception:
Error: ENOENT: no such file or directory, rename '/Users/cezar/Documents/PokemonGo-Bot-Desktop/build/gofbot/web/config/userdata.js.example' -> '/Users/cezar/Documents/PokemonGo-Bot-Desktop/build/gofbot/web/config/userdata.js'
    at Error (native)
    at Object.fs.renameSync (fs.js:809:18)
    at startPython (/Users/cezar/Documents/PokemonGo-Bot-Desktop/build/app.js:195:8)
    at EventEmitter.<anonymous> (/Users/cezar/Documents/PokemonGo-Bot-Desktop/build/app.js:114:5)
    at emitMany (events.js:127:13)
    at EventEmitter.emit (events.js:201:7)
    at WebContents.<anonymous> (/Users/cezar/Documents/PokemonGo-Bot-Desktop/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/browser/api/web-contents.js:209:13)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:191:7)

cezarsmpio avatar Aug 11 '16 20:08 cezarsmpio

Same here, i have file userdata.js in /build/gofbot/web/config/ but not work

Check prints: 0.0.1-alpha or 0.0.2-alpha ????? image

image

adrianoresende avatar Aug 11 '16 22:08 adrianoresende

same issue :(

viet241 avatar Aug 12 '16 01:08 viet241

try get # permission cd gofbot virtualenv . set bin/activate pip install -r requirement.txt npm install run with # npm start

vincentcsm avatar Aug 12 '16 06:08 vincentcsm

did it work properly?

Corecrafts avatar Aug 16 '16 08:08 Corecrafts