-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Inclusion of git dependency causes poetry to TypeError #3425
Comments
From a first quick look, it seems like renpy is not following the packaging standards. This might explain why it is not automatically installable. |
Hello from January of 2021. Same issue appears after updating whole bunch of dependencies. No way to find "why" |
Unfortunately I have the same probem, got requests package and tried to install it via poetry from git with no luck. |
As I said, renpy is not following common project structures and packaging techniques. It is not easy to install, and poetry just can't install it. It does not seem to have a
I explained why. Are you sure you are having exactly the same issue? Are you also installing to install an unusually-packaged dependency such as renpy? |
@sinoroc i do not use renpy. Removing poetry env and installing from scratch fixed the problem. Wish there will be time when package managers will just work |
If you are certain the issue lies in poetry, it would be helpful to get some actual report with meaningful debug info. Anyway, glad you fixed your virtual environment. |
How could I get debug info if poetry just stuck? No command is working. Poetry.lock and pyproject.toml are correct ones. Because re-intalling poetry with the same scheme works. What else could it be? |
There are many things that could happen and break a virtual environment, it's sad but it happens, nothing dramatic about it. Without knowing the true cause, no need to blame poetry or any other party. |
I'm using an empty environment (after
|
I can recreate the issue. |
I am running into this problem. If one of the dependencies uses something like:
Then poetry fails with If the dependency's setup.py is changed so it reads:
Then it works. Poetry simply needs to be updated for the new format from PEP-508 https://www.python.org/dev/peps/pep-0508/#examples |
Have you tried without the |
@sinoroc is absolutely right here.
The issue with Handling of the default branch is discussed here: #3366. There was already a PR to fix it (python-poetry/poetry-core#143), but it has to get reverted for now (python-poetry/poetry-core#148). fin swimmer |
Yes I had tried that first. |
Hello @remram44, could you please open a new issue with a reproducible example if you think this is a problem? fin swimmer |
A new issue with the same title and the same content? Would you leave that one open? |
Hey @remram44, it doesn't sound like your issue have the same root cause. So it's perfectly fine to open a separate issue. Especially a reproducible would save us a lot of time. fin swimmer |
I just ran into this issue on poetry v1.1.12 and the solution for me was to make sure I add the repo with a tag/revision specified. Instead of and it succeeded |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Debian bullseye/sid
Poetry version: Poetry version 1.1.4
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/hlieberman/3057f3b572355cc6699cc44bdf352979
Issue
It's possible this is related to the now-closed issue #2027, but the solutions listed in that issue don't appear to be applicable in this situation (there are no .egg-info files involved).
After adding a git repository dependency to my project, all poetry commands involving dependency resolution now fail with a TypeError expected string or bytes-like object from
poetry.helpers.canonicalize_name
.poetry show
,poetry install
, andpoetry update
all cause these errors. The project is essentially barren; there's no actual code put down yet, so it should be relatively simple to replicate.Exception output:
The text was updated successfully, but these errors were encountered: