ZeropsZ
Zerops10mo ago
EdwardD

Issues with pip

I am having issues installing stuff with pip
Solution
Claude says:

It looks like you're encountering a Python installation error. The issue stems from trying to install a package that contains syntax that's incompatible with your Python 3.12 installation.

The specific error is in the logging package that's being installed. It's using old Python 2.x style exception syntax (
raise NotImplementedError, 'emit must be implemented'
) which is invalid in Python 3. In Python 3, the correct syntax would be
raise NotImplementedError('emit must be implemented')
.

Here's what's happening:
  1. You're trying to install a package using pip
  2. During installation, there's a syntax error in a file called
    logging/__init__.py
  3. This appears to be a custom
    logging
    package (not the standard library one) that's likely written for Python 2
Was this page helpful?