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.

Using Poetry with Python ^3.10

See original GitHub issue
  • [x ] I am on the latest Poetry version.
  • [x ] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Ubuntu 20.04.3 LTS (Focal Fossa) (via Windows Subsystem for Linux)
  • Poetry version: Poetry version 1.1.12
  • Python version: Python 3.10.2
  • Link of a Gist with the contents of your pyproject.toml file: N/A

Issue

I wanted to use poetry for a new Python project, but upgrading my Python interpreter to 3.10.2 seems to have caused a minor bug. Now, whenever I run any command with Poetry, I get the following output:

~$ poetry -V
/home/ethan/miniconda3/envs/foo/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
Poetry version 1.1.12

Besides that warning, everything seems to work fine, but it’s annoying to see that warning in the output every time I run a command. If I add the -vvv option to get debug output, I don’t see any traceback. Any idea what’s going on/how to fix?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
fredcycommented, Apr 12, 2022

I was getting this warning from Poetry 1.1.9. Doing poetry self update updated to version 1.1.13 and resolved the problem.

2reactions
ethanscoreycommented, Mar 2, 2022

This has continued to bug me, so I’ve been doing some more poking around. The SetuptoolsDeprecationWarning is triggered by a call to setuptools.install. I did some grep-ing to see if I could find that call somewhere in the Poetry source, but I came up dry.

@finswimmer or someone else more familiar with the Poetry codebase, do you know of some reason there would be a call to setuptools.install every time the Poetry command-line app gets run?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I install a new version of python using only poetry?
What I've seen people do is: Use poetry in conjunction with pyenv (where pyenv is used to install the python version).
Read more >
Introduction | Documentation | Poetry - Python dependency ...
Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and...
Read more >
Poetry doens't use chosen python version - Render community
As you can read, the building script tries to use python 3.10.6. Poetry version is 1.1.11 although 1.2.1 is out. Finally, Poetry tries...
Read more >
poetry - PyPI
Poetry : Python packaging and dependency management made easy ... Poetry helps you declare, manage and install dependencies of Python projects, ensuring you...
Read more >
Dependency Management With Python Poetry
When your Python project relies on external packages, you need to make sure you're using the right version of each package.
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