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

TypeError: deprecated() got an unexpected keyword argument 'name'(short issue description) #7404

Closed
3 of 4 tasks
stoccalino opened this issue Jan 24, 2023 · 4 comments
Closed
3 of 4 tasks
Labels
status/external-issue Issue is caused by external project (platform, dep, etc)

Comments

@stoccalino
Copy link

stoccalino commented Jan 24, 2023

  • Poetry version 1.1.7

  • Python 3.8

  • MacOS Ventura 13.1
    https://gist.github.com/stoccalino/1c1a248e0f4f6503ee3ce18da1d1b8da

  • I am on the latest stable Poetry version, installed using a recommended method.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • I have consulted the FAQ and blog for any relevant entries or release notes.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

Hello, I installed some dependencies on my project with poetry, and after the installation was over, any pip3 command throws the next error :

TypeError: deprecated() got an unexpected keyword argument 'name'

I see that there are other issues reported in AWS regarding this,
(aws/aws-cli#7325)
suggesting that uninstalling pyOpenSSL resolves the issue, but I can't even uninstall, since any pip3 command throws this error.

Any help would be appreciated.
Thanks!

@stoccalino stoccalino added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 24, 2023
@dimbleby
Copy link
Contributor

Poetry version 1.1.7

Way too old, there's zero chance of getting any fix on that poetry.

And if you're hitting problems running pip3 - well, it sounds like this isn't a poetry problem at all...?

@stoccalino
Copy link
Author

I don't really know.. I got the error after running the poetry install so I assumed that there was something wrong with that, I'm not really experienced with all of this so I thought I could seek help here

@neersighted
Copy link
Member

It sounds like your project installed some dependencies that broke pip (perhaps by clobbering a stdlib import path) in an environment? You should first determine which pip is broken (which -a pip3) and try to recover that environment (e.g. by manually deleting pyopenssl or other suspect packages from the dist-packages folder), or just throw it out entirely if it's not the system environment. Maybe by using an ancient version of Poetry you managed to install to the system environment due to a bug?

Regardless, this is not a Poetry issue; you can join Discord if you want some real-time help in trying to recover your system state, but I don't think there's anything that can be done directly given the versions involved and the fact that third-party packages and tools are the culprit and victims respectively.

@neersighted neersighted added status/external-issue Issue is caused by external project (platform, dep, etc) and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 24, 2023
@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/external-issue Issue is caused by external project (platform, dep, etc)
Projects
None yet
Development

No branches or pull requests

3 participants