question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pip Install Fails with SetuptoolsDeprecationWarning

See original GitHub issue

I’m running a virtual environment with the latest Python from Homebrew on macOS:

python --version
Python 3.9.2

I’m taking the FastAPI Web App course and I’m trying to install fastapi-chameleon from both this repo and my fork both error out:

 silversaucer> pip install git+https://github.com/mikeckennedy/fastapi-chameleon

Collecting git+https://github.com/mikeckennedy/fastapi-chameleon
  Cloning https://github.com/mikeckennedy/fastapi-chameleon to /private/var/folders/y8/p92hytfj04b7_92zv1ppn1s00000gn/T/pip-req-build-mp91okuf
  Running command git clone -q https://github.com/mikeckennedy/fastapi-chameleon /private/var/folders/y8/p92hytfj04b7_92zv1ppn1s00000gn/T/pip-req-build-mp91okuf
    ERROR: Command errored out with exit status 1:
     command: /Users/prcutler/workspace/silversaucer/.venvfastapi/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y8/p92hytfj04b7_92zv1ppn1s00000gn/T/pip-req-build-mp91okuf/setup.py'"'"'; __file__='"'"'/private/var/folders/y8/p92hytfj04b7_92zv1ppn1s00000gn/T/pip-req-build-mp91okuf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/y8/p92hytfj04b7_92zv1ppn1s00000gn/T/pip-pip-egg-info-z72h9h4o
         cwd: /private/var/folders/y8/p92hytfj04b7_92zv1ppn1s00000gn/T/pip-req-build-mp91okuf/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/prcutler/workspace/silversaucer/.venvfastapi/lib/python3.9/site-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution
      File "/Users/prcutler/workspace/silversaucer/.venvfastapi/lib/python3.9/site-packages/setuptools/dist.py", line 30, in <module>
        from . import SetuptoolsDeprecationWarning
    ImportError: cannot import name 'SetuptoolsDeprecationWarning' from partially initialized module 'setuptools' (most likely due to a circular import) (/Users/prcutler/workspace/silversaucer/.venvfastapi/lib/python3.9/site-packages/setuptools/__init__.py)
    ----------------------------------------
WARNING: Discarding git+https://github.com/mikeckennedy/fastapi-chameleon. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

All my Python modules appear up to date:

Screen Shot 2021-03-10 at 10 38 14 AM

Is there something I’m missing or I should try? Is there any other info needed?

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mikeckennedycommented, Jan 1, 2022

Hi @CruzanCaramele There must be an error with your virtual environment. Once not active, another time it was, or another environment or something. Here’s an animation of showing pip install fastapi_chameleon work on a fresh setu

https://user-images.githubusercontent.com/2035561/147860696-2c8e633e-4e50-4558-a4a9-c054df9ac05d.mp4

0reactions
mikeckennedycommented, Jan 2, 2022

Glad you got it working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

setup.py install is deprecated. Use build and pip and other ...
I am trying to create a package called helloworld that print out a message cd ~/ro2_ws/src ros2 pkg create --build-type ament_python ...
Read more >
'setup.py install is deprecated' warning shows up every time I ...
I assume you stumbled across this issue when you was building your .whl -file doing something like python Setup.py bdist_wheel --dist-dir .
Read more >
Error during install carputils - openCARP Q&A
When I tried to install the latest version of carputils on macOS(12.4), while running python3 -m pip install . --user, the following error...
Read more >
I can't install libraries - Discussions on Python.org
Hello, each time i try to install librabies as matplotlib, i have the following error : “python setup.py egg_info did not run successfully....
Read more >
Installing psychopy using pip - Other - PsychoPy Discourse
If you start with Python 3.8 then pip install should work on both mac and windows. If that fails then I'd like to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found