Urban Urban Jungle forum

 
 FAQFAQ   PretražnikPretražnik   ČlanstvoČlanstvo   Korisničke grupeKorisničke grupe   RegistracijaRegistracija 
 ProfilProfil   Privatne porukePrivatne poruke   LoginLogin 

Python issues - ImportError: No module named site

 
Započnite novu temu   Odgovorite na temu    Urban Jungle forum - Početna -> Razno
Prethodna tema :: Sljedeća tema  
Autor/ica Poruka
Jesse Voss



Pridružen/a: 05. 05. 2018.
Postovi: 27

PostPostano: sri svi 16, 2018 12:44 pm    Naslov: Python issues - ImportError: No module named site Citirajte i odgovorite

Hi,

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?

Any help will be apprecited.

I didn't find the right solution from the Internet.

References:
https://www.esp32.com/viewtopic.php?t=4703
Product demo video company

Thank you.
[Vrh]
Korisnički profil Pošaljite privatnu poruku
Prethodni postovi:   
Započnite novu temu   Odgovorite na temu    Urban Jungle forum - Početna -> Razno Vremenska zona: GMT + 01:00.
Stranica 1 / 1.

 
Forum(o)Bir:  
Ne možete otvarati nove teme.
Ne možete odgovarati na postove.
Ne možete uređivati vaše postove.
Ne možete izbrisati vaše postove.
Ne možete glasovati u anketama.


Powered by phpBB © 2001, 2002 phpBB Group
HR (Cro) by Ančica Sečan