Python issues - ImportError: No module named site
Posted: Wed Feb 14, 2018 9:35 pm
Using Windows. I followed the default toolchain setup.
During make flash for "hello_world" project I get a python error:
kannhild@kanm5428 MINGW32 ~/esp/hello_world
$ make flash
ImportError: No module named site
I tried to fix this by setting the PYTHONPATH, but ran into further issues with not finding _collections. I don't know where this file is.
kannhild@kanm5428 MINGW32 ~/esp/hello_world
$ export PYTHONPATH="/mingw32/lib/python2.7/:/mingw32/lib/python2.7/site-packages"
kannhild@kanm5428 MINGW32 ~/esp/hello_world
$ make flash
Traceback (most recent call last):
File "C:/msys32/home/kannhild/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 21, in <module>
import argparse
File "C:/msys32/mingw32/lib/python2.7/argparse.py", line 85, in <module>
import collections as _collections
I am considering abandoning the Windows Environment and trying ubuntu but I expected this to work as default.
Any help?
During make flash for "hello_world" project I get a python error:
kannhild@kanm5428 MINGW32 ~/esp/hello_world
$ make flash
ImportError: No module named site
I tried to fix this by setting the PYTHONPATH, but ran into further issues with not finding _collections. I don't know where this file is.
kannhild@kanm5428 MINGW32 ~/esp/hello_world
$ export PYTHONPATH="/mingw32/lib/python2.7/:/mingw32/lib/python2.7/site-packages"
kannhild@kanm5428 MINGW32 ~/esp/hello_world
$ make flash
Traceback (most recent call last):
File "C:/msys32/home/kannhild/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 21, in <module>
import argparse
File "C:/msys32/mingw32/lib/python2.7/argparse.py", line 85, in <module>
import collections as _collections
I am considering abandoning the Windows Environment and trying ubuntu but I expected this to work as default.
Any help?