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

AttributeError: module 'distutils.sysconfig' has no attribute '_init_posix' #73

Open
arossert opened this issue Mar 28, 2022 · 0 comments

Comments

@arossert
Copy link

arossert commented Mar 28, 2022

Error on the latest distutils

Collecting pcapy
  Using cached pcapy-0.11.4.tar.gz (37 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-3hwz7mz1/pcapy_78572af867a84aadad6f1c4be2d457c3/setup.py", line 49, in <module>
          save_init_posix = sysconfig._init_posix
      AttributeError: module 'distutils.sysconfig' has no attribute '_init_posix'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Seems like the _init_posix was removed since it is an internal function it is not promised to stay the same, any chance fixing it?
pypa/setuptools#3220

akihikodaki added a commit to akihikodaki/dts that referenced this issue Feb 11, 2023
Pcapy is no longer maintained and incompatible with the latest
distutils as described at:
helpsystems/pcapy#73

Replace it with Pcapy, a maintained fork.

Signed-off-by: Akihiko Odaki <[email protected]>
akihikodaki added a commit to akihikodaki/dts that referenced this issue Feb 11, 2023
Pcapy is no longer maintained and incompatible with the latest
distutils as described at:
helpsystems/pcapy#73

Replace it with Pcapyplus, a maintained fork.

Signed-off-by: Akihiko Odaki <[email protected]>
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

1 participant