Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Pip install failed on python 3.8 #255

Description

@beishangeyu

Hi, thank you for your excellent work on this project!
I'm encountering an installation failure when trying to install piicatcher using pip. The installation process fails with the following error:

  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "/home/eyu/miniconda3/envs/piicatcher/lib/python3.8/site-packages/setuptools/__init__.py", line 22, in <module>
          import _distutils_hack.override  # noqa: F401
        File "/home/eyu/miniconda3/envs/piicatcher/lib/python3.8/site-packages/_distutils_hack/override.py", line 1, in <module>
          __import__('_distutils_hack').do_override()
        File "/home/eyu/miniconda3/envs/piicatcher/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 90, in do_override
          ensure_local_distutils()
        File "/home/eyu/miniconda3/envs/piicatcher/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 76, in ensure_local_distutils
          core = importlib.import_module('distutils.core')
        File "/home/eyu/miniconda3/envs/piicatcher/lib/python3.8/importlib/__init__.py", line 127, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
        File "/home/eyu/miniconda3/envs/piicatcher/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 13, in <module>
          from .cmd import Command
        File "/home/eyu/miniconda3/envs/piicatcher/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 7, in <module>
          import logging
        File "/tmp/pip-install-ac82mrmh/logging_b29543a20b124272928156829744145a/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.

I sent the error message to cursor, it says that this is caused by version incompatibility with the logging package, how can i fix it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions