-
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
ImportError: No module named compiler.ast on embedded linux #1524
Comments
This is an old issue, but I recently experienced the same. Turned out that the distribution (debian on pine64, don't remember which flavor if there are many) had |
Ah, I love the smell of Python installs to run JavaScript. |
seems like it's a python installation problem |
As far as I understand, when I install node in Ubuntu (using curl... etc., as recommended by Node), it installs python2.7-minimal, and the package does not include ast module. I have installed python-2.7 package to solve that. |
Just install Python 3 instead. Python 2 died on 1/1/2020. |
Hi! I tried to install mutliple npm packages (i2c-bus, i2c, ioctl) on linux, but all of them failed. I narrowed down the issue to node-gyp rebuild command. If I downloaded the source of i2c-bus and tried to run node-gyp rebuild it also failed.
output of
npm install node-gyp --python=python2.7
command:
Verbose output (from npm install node-gyp --python=python2.7):
The text was updated successfully, but these errors were encountered: