question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install/build on Python 3.7-dev

See original GitHub issue

aws-cli depends on PyYAML>=3.10,<=3.12.

However, when running on Python 3.7-dev on Travis CI, PyYAML cannot be built:

    ext/_yaml.c:24215:11: error: ‘PyThreadState’ has no member named ‘exc_type’
         tstate->exc_type = local_type;
               ^
    ext/_yaml.c:24216:11: error: ‘PyThreadState’ has no member named ‘exc_value’
         tstate->exc_value = local_value;
               ^
    ext/_yaml.c:24217:11: error: ‘PyThreadState’ has no member named ‘exc_traceback’
         tstate->exc_traceback = local_tb;
               ^
    error: command 'gcc' failed with exit status 1

https://travis-ci.org/hugovk/aws-cli/jobs/335698944#L1466

This also affects other projects which depend on aws-cli, like pika:

  ext/_yaml.c: In function ‘__Pyx__ExceptionSave’:
  ext/_yaml.c:24143:19: error: ‘PyThreadState’ has no member named ‘exc_type’
       *type = tstate->exc_type;
                     ^
  ext/_yaml.c:24144:20: error: ‘PyThreadState’ has no member named ‘exc_value’
       *value = tstate->exc_value;
                      ^
  ext/_yaml.c:24145:17: error: ‘PyThreadState’ has no member named ‘exc_traceback’
       *tb = tstate->exc_traceback;
                   ^
  ext/_yaml.c: In function ‘__Pyx__ExceptionReset’:
  ext/_yaml.c:24152:22: error: ‘PyThreadState’ has no member named ‘exc_type’
     member named ‘exc_traceback’
       tstate->exc_traceback = local_tb;
             ^
  error: command 'gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for PyYAML
  Running setup.py clean for PyYAML
Failed to build PyYAML

https://travis-ci.org/pika/pika/jobs/335516418

Any idea what’s up?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:54
  • Comments:44 (13 by maintainers)

github_iconTop GitHub Comments

33reactions
ingydotnetcommented, Jul 6, 2018

PyYAML-3.13 has been released and it works with Python 3.7.

22reactions
lyricnzcommented, Jul 2, 2018

homebrew just updated python3 to 3.7, which caused this to become a Big Problem. Expect a bunch of people arriving here with the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install python3.7-dev on Ubuntu 20.04? - Stack Overflow
sudo apt-get install python3.7-dev. You can install it for any version of python. by sudo apt-get install python3.x-dev.
Read more >
Unable to install pyhton 3.7 version on ubuntu 16.04 error ...
I have installed python 3 through this command. sudo apt-get install python3. and when checked the version using python3 -V.
Read more >
How do you install python3.7 to ubuntu 20.04?
For newer Python I prefer the deadsnake ppa. For installing it, try this: sudo apt update sudo apt install software-properties-common sudo ...
Read more >
How to Install Python 3.7 on Ubuntu 18.04 - Linuxize
Python is quite a versatile programming language. It can be used as a scripting language, to build games, develop websites, create machine ...
Read more >
Installation — Matplotlib 3.6.2 documentation
Try closing and restarting Terminal.app before running the check again. If that doesn't fix the problem, depending on which Python you wanted to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found