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

Python 3.7 installation fails due to PyYAML 3.12 #3249

Closed
5 of 6 tasks
AngelloMaggio opened this issue Jul 20, 2018 · 4 comments
Closed
5 of 6 tasks

Python 3.7 installation fails due to PyYAML 3.12 #3249

AngelloMaggio opened this issue Jul 20, 2018 · 4 comments
Milestone

Comments

@AngelloMaggio
Copy link

AngelloMaggio commented Jul 20, 2018

  • Conan version: 1.6

  • Python version: 3.7

  • Issue:
    Installation of Conan fails when using Python 3.7 fails due to a bug with PyYAML

  • Reproduce:

  • Install Python 3.7 including pip3

  • pip3 install conan

  • Error out
    Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-7qbn6h01/PyYAML/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-obq_96in/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-7qbn6h01/PyYAML/

  • Solution

  • Change dependency version to 3.13.

@ArekPiekarz
Copy link

The same problem is present on Msys2, where Python 3.7 is now the default version (I don't even know if it can be downgraded). I didn't post an issue about it earlier, because I don't have access to Windows to gather logs.

@ghost ghost added the contributor pr label Jul 22, 2018
@memsharded memsharded added this to the 1.7 milestone Jul 22, 2018
@ghost ghost removed the contributor pr label Jul 23, 2018
lasote pushed a commit that referenced this issue Jul 23, 2018
Installation fails with Python 3.7 and PyYAML 3.12 due to yaml/pyyaml#126.

Fixes #3249.
grisumbras pushed a commit to grisumbras/conan that referenced this issue Dec 27, 2018
Installation fails with Python 3.7 and PyYAML 3.12 due to yaml/pyyaml#126.

Fixes conan-io#3249.
@zubairkhalid11
Copy link

pip install --ignore-installed PyYAML

this worked once you have done that install the library afterwards.

@sankalp7654
Copy link

Thanks, @lasote Changing the version of PyYAML from 3.12 to 3.13 helped me!

@theuntoldcreator
Copy link

@lasote , Thanks for the issue (Changing of 3.12 to 3.13) helped me a lot😊

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

6 participants