-
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
Can't export lockfiles with dependencies that add extras in dev-requirements #3018
Comments
FYI: If you need to downgrade temporarily while 1.1 stabilizes, see if |
Thanks for the quick fix, I just tested the new master and can confirm that it works =) |
I'm getting a slightly different failure when doing poetry lock with poetry 1.1.4, installing pyparsing 3.0.0a2 with diagrams extra, as you mentioned in your issue. I get this, slightly baffling, error:
Did you check pyparsing+diagrams after this fix? (My pyproject.toml, for context) |
Are you sure it is related to the current topic? What was the command you entered? Can you run the command again with more verbosity ( Bonus points (maybe it is unrelated): |
I'm not certain whether it is the same issue, no. I just saw that this issue was also discussing issues installing pyparsing with the diagrams extra, which is where I am encountering issues. I've just been doing I had some failed attempts to bypass anaconda's python install, I shall have another go |
Ah, okay, no issue once I managed to get a non-anaconda python installed. Strange. |
@joshcoales Thanks for helping with the debug. For information I'll link these other tickets that seem to relate to virtualenv and conda.
If your problem persist, maybe open a new ticket with focus on virtualenv and conda. Maybe that is a good lead, maybe it is not. A bit difficult to say at this stage. |
That's fair enough. It only seemed to happen with pyparsing+diagrams, but yeah. All seems good now, and I don't really use anaconda, so I'm happy to just uninstall that anyway. |
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 GNU/Linux 9 (stretch)
Poetry version: 1.10
Link of a Gist with the contents of my pyproject.toml file: here
Failing command:
poetry export -f requirements.txt
Issue
This is a very fresh bug. It's due to 1159148, in particular this line. As can be seen in the attached pyproject.toml gist, if a dependency is added as a bare in
[poetry.dependencies]
and with extras in[poetry.dev-dependencies]
,find_packages
will at some point return an empty list. This leads to the following crash when trying to export a lockfile:Other things I tried:
[poetry.dependencies]
and bare dependency in[poetry.dev-dependencies]
-> no bugPinging @abn, who might know more about this.
The text was updated successfully, but these errors were encountered: