Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TW#26495] Toolchain Refresh - Command "python setup.py egg_info" failed with error code 1 #2474

Closed
Si03 opened this issue Sep 26, 2018 · 4 comments

Comments

@Si03
Copy link

Si03 commented Sep 26, 2018

Environment

  • IDF version: 66fd7e9
  • Operating System: Windows 10

Problem Description

I have been working fine on the toolchain for months, but noticed a build warning appear about 'crosstool' after a recent pull and decided to do a fresh install by deleting the existing c:\msys32 folder and installing from scratch, following the instructions here for installing the master branch environment on Windows. During the install process I get an error when running the command:
python -m pip install --user -r $IDF_PATH/requirements.txt
Error:
Command "python setup.py egg_info" failed with error code 1 in :/users/simon/appdata/local/temp/pip-build-8acuzf/cffi/

subsequent builds produce the build output folders but fail to produce any app.bin file, for instance, a make on hello_world:

WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-80-g6c4433a5
Expected to see version: crosstool-ng-1.22.0-80-g6c4433a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.

... ...

esptool.py v2.5.0
The following Python requirements are not satisfied:
future>=0.16.0
cryptography
Please run "C:/msys32/mingw32/bin/python.exe -m pip install --user -r C:/msys32/home/Simon/esp/esp-idf/requirements.txt" for resolving the issue.
make: *** [C:/msys32/home/Simon/esp/esp-idf/make/project.mk:454: check_python_dependencies] Error 1

Running C:/msys32/mingw32/bin/python.exe -m pip install --user -r C:/msys32/home/Simon/esp/esp-idf/requirements.txt does not resolve the issue and errors repeat as above.

Any help appreciated.
cheers,
Si.

@Alvin1Zhang Alvin1Zhang changed the title Toolchain Refresh - Command "python setup.py egg_info" failed with error code 1 [TW#26495] Toolchain Refresh - Command "python setup.py egg_info" failed with error code 1 Sep 26, 2018
@negativekelvin
Copy link
Contributor

negativekelvin commented Sep 26, 2018

Problem for WARNING is the TOOLCHAIN_COMMIT_DESC changed by 1 char

$ xtensa-esp32-elf-gcc --version | sed -E -n 's|.*\(crosstool-NG (.*)\).*|\1|gp'
crosstool-ng-1.22.0-80-g6c4433a5
$ xtensa-esp32-elf-gcc --version | sed -E -n 's|.*crosstool-ng-([0-9]+).([0-9]+).([0-9]+)-([0-9]+)-g([0-9a-f]{7}).*|\1.\2.\3-\4-g\5|gp'
1.22.0-80-g6c4433a

ab21644#diff-01f6c30a44f5e8025d56f2a52d0a83ad

@igrr
Copy link
Member

igrr commented Sep 26, 2018

Could you please attach the output you get when you run C:/msys32/mingw32/bin/python.exe -m pip install --user -r C:/msys32/home/Simon/esp/esp-idf/requirements.txt?

@projectgus
Copy link
Contributor

I think the solution to this may be the same as given here:
https://esp32.com/viewtopic.php?f=13&t=7419#p31342

Can you please try that command and see if you're able to continue?

We'll update the MSYS2 package ASAP.

@Si03
Copy link
Author

Si03 commented Sep 26, 2018

Thanks for the replies.
@projectgus : This is the correct solution. All working fine after running the 'pacman...' command followed by the 'python...pip...' command.
@igrr : for completeness, here is the output -output.txt
The warning relating to 'crosstool-ng-1.22.0-80-g6c4433a5' as diagnosed by @negativekelvin obviously remains but is not causing a problem (apart from being what prompted me to refresh the tools in the first place)

In the short term I suggest that a note be added to the installation docs to prevent others having the same problem.

Q: Should I close this issue or wait for the fixed toolchain to flush through?

Super support, many thanks,
Si.

@igrr igrr closed this as completed in 246a608 Oct 5, 2018
catalinio pushed a commit to catalinio/pycom-esp-idf that referenced this issue Jun 28, 2019
MSYS2 MINGW requires some particular MSYS2-specific packages.

Closes espressif/esp-idf#2480
Closes espressif/esp-idf#2474
Closes espressif/esp-idf#2486
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants