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

PYTHONPATH makes rebuild fail #485

Closed
mstram opened this issue Aug 3, 2014 · 1 comment
Closed

PYTHONPATH makes rebuild fail #485

mstram opened this issue Aug 3, 2014 · 1 comment

Comments

@mstram
Copy link

mstram commented Aug 3, 2014

  action@nodeh-131169:~/git/dnode(master)$      pwd                                                                                         
 /home/action/git/dnode                 

 npm install weak

Why is node-gyp trying to build stuff in the PYTHONPATH?

I.e. File "/home/action/git/SATK/tools/lang/parser.py" has nothing to do with 'npm install weak'

weak@0.3.3 install /home/action/git/dnode/node_modules/weak
node-gyp rebuild

Traceback (most recent call last):
File "/home/action/.parts/packages/nodejs/0.10.28/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 15, in
import gyp
File "/home/action/.parts/packages/nodejs/0.10.28/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 8, in

import gyp.input
File "/home/action/.parts/packages/nodejs/0.10.28/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in
from compiler.ast import Const
File "/usr/lib/python2.7/compiler/init.py", line 29, in
from compiler.transformer import parse, parseFile
File "/usr/lib/python2.7/compiler/transformer.py", line 29, in
import parser

File "/home/action/git/SATK/tools/lang/parser.py", line 195
def print(self,args,*kwds):
^
SyntaxError: invalid syntax

@mstram
Copy link
Author

mstram commented Aug 3, 2014

When I set PYTHONPATH= (null), it works.

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