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

pip install fails with "failed to build twisted" - missing longintrepr.h #82

Open
dwreski opened this issue Mar 15, 2024 · 2 comments
Open

Comments

@dwreski
Copy link

dwreski commented Mar 15, 2024

Running "pip install -r requirements.txt" on fedora38 fails with the message below. It's looking for longintrepr.h but can't find it.

$ rpm -qf /usr/include/python3.11/cpython/longintrepr.h
python3-devel-3.11.8-1.fc38.x86_64

      gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -I/usr/include/python3.11 -c src/twisted/test/raiser.c -o build/temp.linux-x86_64-cpython-311/src/twisted/test/raiser.o
      src/twisted/test/raiser.c:49:12: fatal error: longintrepr.h: No such file or directory
         49 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/lib64/ccache/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for twisted
  Running setup.py clean for twisted
Failed to build twisted

@xcalibure2
Copy link

xcalibure2 commented Jun 22, 2024

try to remove the version specification from requirements.txt for twisted.
but It does not seem to work with python 3.11.

@dwreski
Copy link
Author

dwreski commented Jun 22, 2024

That worked - now it's complaining about missing urlparse. It looks like it was changed to urllib recently?
https://stackoverflow.com/questions/48072619/how-can-i-import-urlparse-in-python-3

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

2 participants