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 pacparser with python3.12 on Fedora 39 fails #193

Closed
bss-markus-schulze opened this issue Apr 2, 2024 · 2 comments
Closed

Comments

@bss-markus-schulze
Copy link

bss-markus-schulze commented Apr 2, 2024

I tried to install pacparser on Fedora 39 with the default python 3.12.2 by using
sudo pip install pacparser
which leads to an error ending with

Building wheels for collected packages: pacparser
  Building wheel for pacparser (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pacparser (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      <string>:39: SyntaxWarning: invalid escape sequence '\w'
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-312
      creating build/lib.linux-x86_64-cpython-312/pacparser
      copying pacparser/__init__.py -> build/lib.linux-x86_64-cpython-312/pacparser
      running build_ext
      building '_pacparser' extension
      creating build/temp.linux-x86_64-cpython-312
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fPIC -I../spidermonkey/js/src -I.. -I/usr/include/python3.12 -c pacparser_py.c -o build/temp.linux-x86_64-cpython-312/pacparser_py.o
      pacparser_py.c:22:10: schwerwiegender Fehler: pacparser.h: Datei oder Verzeichnis nicht gefunden
         22 | #include "pacparser.h"
            |          ^~~~~~~~~~~~~
      Kompilierung beendet.
      error: command '/usr/bin/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 pacparser
Failed to build pacparser
ERROR: Could not build wheels for pacparser, which is required to install pyproject.toml-based projects

It tries several different versions from pacparser 1.4.3 down to 1.3.7.
Am I doing something wrong or is there something missing ?

@manugarg
Copy link
Owner

#200 should resolve this.

@manugarg
Copy link
Owner

v1.4.5 has the fix.
https://pypi.org/project/pacparser/1.4.5/#files

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