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

[BUG] Pip install error #651

Open
Robert-Lopes opened this issue Jan 14, 2025 · 0 comments
Open

[BUG] Pip install error #651

Robert-Lopes opened this issue Jan 14, 2025 · 0 comments

Comments

@Robert-Lopes
Copy link

Robert-Lopes commented Jan 14, 2025

After creating a venv in my directory I tried to install all the project dependencies and recive this mensage from my shell:

$ pip3 install -r handson-ml2/requirements.txt 
Collecting jupyter~=1.0.0 (from -r handson-ml2/requirements.txt (line 7))
  Using cached jupyter-1.0.0-py2.py3-none-any.whl.metadata (995 bytes)
Collecting matplotlib~=3.4.3 (from -r handson-ml2/requirements.txt (line 8))
  Using cached matplotlib-3.4.3.tar.gz (37.9 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      /tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/setup.py:34: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
      !!
      
              ********************************************************************************
              Please remove any references to `setuptools.command.test` in all supported versions of the affected package.
      
              This deprecation is overdue, please update your project and remove deprecated
              calls to avoid build errors in the future.
              ********************************************************************************
      
      !!
        from setuptools.command.test import test as TestCommand
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/setup.py", line 54, in <module>
          __version__ = versioneer.get_version()
                        ^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/versioneer.py", line 1410, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/versioneer.py", line 1344, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-f3z2awhg/matplotlib_3c4b97176e144e48adb11d60d664b7bb/versioneer.py", line 401, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [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 think this error is about setuptools building, but i dont know how can i resolve it. Can someone help me plz?

@Robert-Lopes Robert-Lopes changed the title [BUG] [BUG] Pip install error Jan 17, 2025
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