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

Installing locally #10

Open
superphil0 opened this issue Apr 29, 2016 · 1 comment
Open

Installing locally #10

superphil0 opened this issue Apr 29, 2016 · 1 comment

Comments

@superphil0
Copy link

Hi, I am installing the package locally (python 2.7) with
pip install --user pastalog
i directly execute the pastalog script at ~/.local/bin/pastalog --install
which works fine
when starting the server with pastalog --serve 8120
I get:
npm ERR! Error: ENOENT, open '/media/p***/.local/lib/python2.7/site-packages/pastalog/node_modules/--port/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]

npm ERR! System Linux 4.2.6-300.fc23.x86_64
npm ERR! command "node" "/usr/bin/npm" "start" "--" "--port" "8120"
npm ERR! cwd /media/p**/.local/lib/python2.7/site-packages/pastalog
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.3.6
npm ERR! path /media/p**
/.local/lib/python2.7/site-packages/pastalog/node_modules/--port/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /media/p***/.local/lib/python2.7/site-packages/pastalog/npm-debug.log
npm ERR! not ok code 0

I could fix this error by changing how subprocess is created, namely from:
subprocess.call(["npm", "start", "--", "--port", str(args.serve)])

to

subprocess.call(["npm", "start", "--port"+ str(args.serve)])

after this change the server starts up fine, however when I start logging I get

pastalog --serve 8120

[email protected] start /media/p****/.local/lib/python2.7/site-packages/pastalog
node build/server.js

pastalog server listening on port: 8120

/media/p****/.local/lib/python2.7/site-packages/pastalog/build/server.js:7207
throw renameError;
^
Error: ENOENT, rename 'database.json'
npm ERR! weird error 8
npm ERR! not ok code 0

@fvisin
Copy link

fvisin commented Jul 14, 2016

It's probably not your only issue here, but it looks like your node version is too old:

npm ERR! node -v v0.10.36

Make sure to install at least version 5.

Apart from that, one thing that I noticed can help debugging is to run:

cd $HOME/.local/lib/python2.7/site-packages/pastalog/build
node server.js --port 8120

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