-
-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Hi,
I get the following error on Python 3.12.3 in WSL2 Ubuntu:
Actually logging module is part of standard libraries in Python 3, which is required anyway, so it does not need to be installed with a package.
Collecting logging<0.5.0.0,>=0.4.9.6 (from knowledge_graph_maker)
Using cached logging-0.4.9.6.tar.gz (96 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 14, in
File "/home/philip/.local/lib/python3.12/site-packages/setuptools/init.py", line 8, in
import _distutils_hack.override # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/philip/.local/lib/python3.12/site-packages/_distutils_hack/override.py", line 1, in
import('_distutils_hack').do_override()
File "/home/philip/.local/lib/python3.12/site-packages/_distutils_hack/init.py", line 70, in do_override
ensure_local_distutils()
File "/home/philip/.local/lib/python3.12/site-packages/_distutils_hack/init.py", line 56, in ensure_local_distutils
core = importlib.import_module('distutils.core')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/philip/.local/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 13, in
from .cmd import Command
File "/home/philip/.local/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 7, in
import logging
File "/tmp/pip-install-ymd6i_0a/logging_28af228c84ed4b53973b883bb3270d57/logging/init.py", line 618
raise NotImplementedError, 'emit must be implemented '
^
SyntaxError: invalid syntax
[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.