Open Alexander-Serov opened 4 months ago
Could you please provide pyproject.toml and poetry.lock or a link to your project so I can try to reproduce the problem you have?
Could you please provide pyproject.toml and poetry.lock or a link to your project so I can try to reproduce the problem you have?
Hello, I am attaching the files here. I had to cut out and redact some of the private parts of it, but I hope you will be able to reproduce. Please let me know.
Thank you. I'm able to reproduce the problem and the truth is that the error message isn't very helpful so we have to do something with that.
The cause of the trouble is in this part:
[[tool.poetry.source]]
name = "source"
url = "***"
priority = "supplemental"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
Micropipenv expects every source to have an URL address, see:
I'm not yet sure whether the poetry config is entirely valid without an url (and therefore the bug is in the false expectation of micropipenv) or not. In the meantime, you can fix the problem just by adding url = "https://pypi.org/pypi/"
to the PyPI section.
Thanks @frenzymadness ,
Glad to hear there is an easy explanation to the observed behavior. Let me try and put the URL to see if the workaround works for me. A couple of comments in the meantime:
tool.poetry.source
was created by poetry itself without a URL, so I would expect it to reproduce in other projects as wellThanks for having looked into it so fast!
Describe the bug Export fails with no error message.
To Reproduce Steps to reproduce the behavior:
When trying to export requirements in my current project, I only get 'url' in return. No error message and no requirements file is produced.
Expected behavior requirements.txt file is created or a clear error message is shown
Screenshots If applicable, add screenshots to help explain your problem.
Additional context