Poetry fails when there is something already installed with a bad version
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.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name: Linux bdc34-Latitude-E7450 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
-
Poetry version: Poetry version 1.0.5
-
Link of a Gist with the contents of your pyproject.toml file: not relevant
Issue
When I’m using a venv and I already have a package installed with a version that is not a semver, I get an error.
Expected behavior: Just ignore the package?
I get this error:
$ poetry install -v
Using virtualenv: /home/bdc34/.pyenv/versions/3.6.9/envs/submission-core
[ParseVersionError]
Unable to parse "no-git-or-release-version".
Traceback (most recent call last):
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/clikit/console_application.py", line 131, in run
status_code = command.handle(parsed_args, io)
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/clikit/api/command/command.py", line 120, in handle
status_code = self._do_handle(args, io)
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/clikit/api/command/command.py", line 171, in _do_handle
return getattr(handler, handler_method)(args, io, self)
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/cleo/commands/command.py", line 92, in wrap_handle
return self.handle()
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/poetry/console/commands/install.py", line 48, in handle
self.io, self.env, self.poetry.package, self.poetry.locker, self.poetry.pool
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/poetry/installation/installer.py", line 55, in __init__
installed = self._get_installed()
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/poetry/installation/installer.py", line 488, in _get_installed
return InstalledRepository.load(self._env)
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/poetry/repositories/installed_repository.py", line 28, in load
package = Package(name, version, version)
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/poetry/packages/package.py", line 46, in __init__
self._version = Version.parse(version)
File "/home/bdc34/.pyenv/versions/3.6.9/envs/submission-core/lib/python3.6/site-packages/poetry/semver/version.py", line 206, in parse
raise ParseVersionError('Unable to parse "{}".'.format(text))
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:15 (2 by maintainers)
Top Results From Across the Web
FAQ | Documentation | Poetry - Python dependency ...
Why are unbound version constraints a bad idea? #. A version constraint without an upper bound such as * or >=3.4 will allow...
Read more >Install packages in a certain order with Poetry - Stack Overflow
There is no way to tell Poetry to install packages in a certain order. The reason for this is, because it is not...
Read more >Announcing Poetry 1.2.0 -- Python dependency management ...
That seems like an overreaction: the old installer cannot install the current versions. You'll be immediately notified locally with a hard error ......
Read more >Python package installation issues with Poetry - Medium
My project.toml wanted to install scikit-learn v0.23.2 but somehow would fail with the following message every time i tried to run poetry update ......
Read more >400 Client Error when trying to install prodigy using poetry
I'm trying to install prodigy using poetry but I get the following error (omitted everything after ? with ...) 400 Client Error: Bad...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sinoroc Sorry, no, it was not in a public forum, more like a form + email exchange. I thought there was a publicly-visible place for submitting issues but I couldn’t find it.
I did open an issue with Mathworks and they were receptive to the PEP 440 info and said the developers will “consider implementing a fix for it in a future release of MATLAB”.