hyj1991 / v8-profiler-next

node bindings for the v8 profiler
MIT License
219 stars 21 forks source link

ImportError: No module named ast #17

Closed ghost closed 4 years ago

ghost commented 4 years ago

I get "ImportError: No module named ast" when running npm install. I got it fixed on other machine by messing with Python versions but I am not sure if thats a good solution. I have Python 2.7.13 on Debian 9 where that error shows. Any suggestions?

hyj1991 commented 4 years ago

yeah, python is needed when installing c++ addon :)

hyj1991 commented 4 years ago

Also, ast is a standard library in python.

ghost commented 4 years ago

Oh. Maybe for some reason the default install I had didn't include the "ast" thing. Thanks for the fast answer though :)

EDIT: after doing apt-get install python2.7 solved the problem