Page 1 of 1

Error using Windows CMake configuration

Posted: Wed Nov 07, 2018 1:49 pm
by rwel59
I've been trying to get espidf working in a windows environment for awhile. Had msys/mingw working but very very slow. I just found the docs for using CMake instead.

I followed the default install steps exactly as stated in the docs. When I got to the idf.py menuconfig step, I get the following error:
'Checking python dependencies...
pkg_resources cannot be imported probably because the pip package is not installed....

I ran 'pip --version' from command prompt and get: pip 18.0 from c:\python\lib\site-packages\pip (python 2.7)

Re: Error using Windows CMake configuration

Posted: Thu Nov 08, 2018 5:50 am
by ESP_Angus
Hi rwel59,

Is it possible there's a mismatch between the pip.exe and the python.exe which CMake is running? You can try "python -m pip --version" and see if there is any difference in output.

Are you still using an MSYS2 terminal, or are you using a different environment with/without IDF Tools installed?

Do you already have any other Python versions installed in Windows?

Angus

Re: Error using Windows CMake configuration

Posted: Fri Nov 30, 2018 2:37 pm
by rwel59
Angus,
sorry for delay, for some reason I'm not receiving notifications.

I ran python -m pip --version and got
pip 18.0 from c:\python\lib\site-packages\pip (python 2.7)

I am using windows command prompt. Have also tried powershell from within vscode.

I do not have any other version of python installed.

Re: Error using Windows CMake configuration

Posted: Mon Dec 03, 2018 1:01 am
by ESP_Angus
Thanks for the update. Can you please post the output of "python -V" and "pip list", as well?

Angus

Re: Error using Windows CMake configuration

Posted: Mon Dec 03, 2018 8:56 pm
by rwel59
C:\Users\Rick>python -V
Python 2.7.15

C:\Users\Rick>pip list
Package Version
---------------- -----------
arrow 0.10.0
awscli 1.16.34
botocore 1.12.24
bottle 0.12.13
certifi 2017.7.27.1
chardet 3.0.4
click 5.1
colorama 0.3.9
docutils 0.14
ecdsa 0.13
esptool 2.3.1
futures 3.2.0
idna 2.6
jmespath 0.9.3
lockfile 0.12.2
pip 18.0
pyaes 1.6.1
pyasn1 0.4.4
pyserial 3.4
python-dateutil 2.7.3
PyYAML 3.13
requests 2.18.4
rsa 3.4.2
s3transfer 0.1.13
semantic-version 2.6.0
six 1.11.0
urllib3 1.22
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Re: Error using Windows CMake configuration

Posted: Sun Dec 30, 2018 3:51 pm
by rwel59
never got any feedback on this and did not resolve. I moved to linux vs code to get things working.