Error using Windows CMake configuration

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Error using Windows CMake configuration

Postby rwel59 » Wed Nov 07, 2018 1:49 pm

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)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Error using Windows CMake configuration

Postby ESP_Angus » Thu Nov 08, 2018 5:50 am

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

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Re: Error using Windows CMake configuration

Postby rwel59 » Fri Nov 30, 2018 2:37 pm

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.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Error using Windows CMake configuration

Postby ESP_Angus » Mon Dec 03, 2018 1:01 am

Thanks for the update. Can you please post the output of "python -V" and "pip list", as well?

Angus

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Re: Error using Windows CMake configuration

Postby rwel59 » Mon Dec 03, 2018 8:56 pm

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.

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Re: Error using Windows CMake configuration

Postby rwel59 » Sun Dec 30, 2018 3:51 pm

never got any feedback on this and did not resolve. I moved to linux vs code to get things working.

Who is online

Users browsing this forum: No registered users and 110 guests