[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

python3-setuptools: ModuleNotFoundError: No module named '_distutils_hack'



Hi,

Im trying to package python-jsonrpc-server but the last version of
setuptools are having this import problem.
Any idea how I can solve this issue

Package: python3-setuptools
Version: 49.3.1-1

The most recent upload broke something badly, setuptools can no longer
be imported:

# debuild
dpkg-buildpackage -us -uc -ui
dpkg-buildpackage: info: source package python-jsonrpc-server
dpkg-buildpackage: info: source version 0.3.4-1
dpkg-buildpackage: info: source distribution unstable
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:217: python3.8 setup.py clean
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    from setuptools import find_packages, setup
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 8,
in <module>
    import _distutils_hack.override  # noqa: F401
ModuleNotFoundError: No module named '_distutils_hack'
E: pybuild pybuild:352: clean: plugin distutils failed with: exit
code=1: python3.8 setup.py clean
dh_auto_clean: error: pybuild --clean --test-pytest -i python{version}
-p 3.8 returned exit code 13
make: *** [debian/rules:12: clean] Error 25
dpkg-buildpackage: error: debian/rules clean subprocess returned exit
status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed


Regards

-- 
  ⢀⣴⠾⠻⢶⣦⠀  Pablo Mestre Drake
  ⣾⠁⢠⠒⠀⣿⡁  --------------------------------------
  ⢿⡄⠘⠷⠚⠋   https://debian.org
  ⠈⠳⣄⠀⠀⠀⠀  Debian, the universal operating system.


Reply to: