Page 1 of 1

Can't run esp_http_client_test.py for HTTP example

Posted: Mon Feb 18, 2019 10:21 am
by TeaElse
Hello,

I was trying out the esp_http_client example but I can not get the included esp_http_client_test.py python script to run.

When I try to run it from the mingw32 shell it says that netifaces is missing.
$ python esp_http_client_test.py
Traceback (most recent call last):
File "esp_http_client_test.py", line 13, in <module>
import TinyFW
File "C:\msys32\home\Mullner\esp\esp-idf\tools\tiny-test-fw/TinyFW.py", line 23, in <module>
import Env
File "C:\msys32\home\Mullner\esp\esp-idf\tools\tiny-test-fw/Env.py", lin e 20, in <module>
import netifaces
ImportError: No module named netifaces

So I tried to install that, but then it seems that command 'i686-w64-mingw32-gcc' is missing.
$ python -m pip install netifaces
Collecting netifaces
Downloading https://files.pythonhosted.org/packages ... 5b67a73160 ec80a49da63d1eed2d2055054cc2995714949132/netifaces-0.10.9.tar.gz
Installing collected packages: netifaces
Running setup.py install for netifaces ... error
Complete output from command C:/msys32/mingw32/bin/python.exe -u -c "import setuptools, tokenize;__file__='c:/users/mullner~1/appdata/local/temp/pip-install- ko8xpb/netifaces/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.re ad().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" inst all --record c:/users/mullner~1/appdata/local/temp/pip-record-8xypkk/install-reco rd.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'netifaces' extension
creating build
creating build/temp.mingw-2.7
i686-w64-mingw32-gcc -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pi pe -fwrapv -D__USE_MINGW_ANSI_STDIO=1 -DNDEBUG -DNDEBUG -DWIN32=1 -DNETIFACES_VE RSION=0.10.9 -IC:/msys32/mingw32/include/python2.7 -c netifaces.c -o build/temp. mingw-2.7/netifaces.o
error: command 'i686-w64-mingw32-gcc' failed: No such file or directory

----------------------------------------
Command "C:/msys32/mingw32/bin/python.exe -u -c "import setuptools, tokenize;__f ile__='c:/users/mullner~1/appdata/local/temp/pip-install-ko8xpb/netifaces/setup.p y';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n ');f.close();exec(compile(code, __file__, 'exec'))" install --record c:/users/ma nuel~1/appdata/local/temp/pip-record-8xypkk/install-record.txt --single-version- externally-managed --compile" failed with error code 1 in c:/users/mullner~1/appd ata/local/temp/pip-install-ko8xpb/netifaces/
What can I do to make this run?


Thank you!
-TeaElse

Re: Can't run esp_http_client_test.py for HTTP example

Posted: Tue Feb 19, 2019 11:01 am
by TeaElse
There are a few similar ones at C:\msys32\mingw32\bin starting with "i686-w64-mingw32-", but none of these ends in "gcc".