-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
'module' object has no attribute 'script_main' #363
Comments
Hmmm, I haven't seen this. Seems like a borked gyp install somehow. Perhaps try re-installing? |
I can confirm that this is a valid error, and we've tried reinstalling multiple times. Here is our log, running on an Amazon cloud instance:
Any ideas? :-/ |
probably just a funky package manager install, I'll try from source or sth tomorrow |
@visionmedia Is this using the debian nodejs package or something? |
@TooTallNate I'm sorry to keep intruding, but I just wanted to point out that the error I posted was generated by a server using Yum's EPEL package manager on a RedHat-based Amazon image, installed using That last part is purely speculation, of course, and not very helpful, but I wanted to provide as much feedback as possible. Edit: I am not sure how much it helps, if at all, but I noticed something weird when running
Subsequent attempts to Edit 2: Nope, Edit 3: For what it's worth, the server in question is running Python version |
Hello, I got the exact same error trying to install libxmljs 0.8.1, on node 0.10.22 and python 2.7 on ubuntu 13.10.
Please help ! |
yeah the package manager ones seem pretty borked |
yup re-install worked for me, so I guess just don't ever use the package managers haha |
For me it got fixed by replacing python2.7 by python2.6. As per https://code.google.com/p/gyp/source/browse/trunk/DEPS#19 , it seems that gyp depends on python 2.6 On Ubuntu Saucy: you can switch between 2.6 & 2.7 using: Btw I installed node using ppa:chris-lea/node.js I hope this helps somebody. |
@laithshadeed Thanks, it solved the issue for me.. |
@laithshadeed Also repaired my build on Linux mint 16 :) Thanks was driving me crazy! |
Also just hit this on windows: in my case it was because I had a globally installed gyp version which was conflicting with the one inside node-gyp. I found my global install with |
@springmeyer same to me. I just removed gyp to solve this problem. |
I have installed node using sudo apt-get install nodejs Same Issue
|
Using |
I'm seeing the same error. Downgrading to Python 2.6.x fixed it. @laithshadeed Thanks. |
This might occur on Ubuntu based systems if you have installed gyp i.e. sudo apt-get install gyp |
I was originally getting the error above, but changed to python 2.6 as suggested, and now I'm getting this different error:
|
Just wanted to leave specific instructions here for myself and any other lost souls that aren't sure how to fix this. The credit for this fix goes to @springmeyer. The server I've tested this on is Centos 6.5 x64. Find the locally installed
Move or rename the folder so that python can't find it Ensure that python can't find it
Good! Now try reinstalling!
|
on Fedora 20: |
Just had the same issue on an Amazon Elastic Beanstalk Instance (64bit Amazon Linux 2014.03 v1.1.0 running Node.js). Had installed globally via Solved by running Beforehands, I tried to remove node via |
Same problem on Amazon EC2, fixed w/ |
This worked on Mint 17, also. Thanks!!! I tried upgrading npm, node, switching py versions. It just shuffled the problem around. I thought I was going nuts. This fixed it: sudo apt-get remove gyp |
while running codebox I got an following error Module did not self-register the i used the code node-gyp rebuild. Now its showing this error. gyp: binding.gyp not found (cwd: /home/logesh/code/megam/workspace/codebox) while trying to load binding.gyp |
all the addons are exploding for some reason:
version info:
The text was updated successfully, but these errors were encountered: