Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Poetry doesn't work If you have no local .venv folder but have pygame==1.9.1release in system python folder #119

Closed
buriy opened this issue May 18, 2018 · 4 comments

Comments

@buriy
Copy link

buriy commented May 18, 2018

[ValueError]
Unable to parse "=1.9.1release".
Exception trace:
/usr/local/lib/python3.5/dist-packages/cleo/application.py in run() at line 94
status_code = self.do_run(input_, output_)
/usr/local/lib/python3.5/dist-packages/poetry/console/application.py in do_run() at line 84
return super(Application, self).do_run(i, o)
/usr/local/lib/python3.5/dist-packages/cleo/application.py in do_run() at line 197
status_code = command.run(input_, output_)
/usr/local/lib/python3.5/dist-packages/poetry/console/commands/command.py in run() at line 77
return super(BaseCommand, self).run(i, o)
/usr/local/lib/python3.5/dist-packages/cleo/commands/base_command.py in run() at line 146
status_code = self.execute(input_, output_)
/usr/local/lib/python3.5/dist-packages/cleo/commands/command.py in execute() at line 107
return self.handle()
/usr/local/lib/python3.5/dist-packages/poetry/console/commands/install.py in handle() at line 35
self.poetry.pool
/usr/local/lib/python3.5/dist-packages/poetry/installation/installer.py in init() at line 55
installed = self._get_installed()
/usr/local/lib/python3.5/dist-packages/poetry/installation/installer.py in _get_installed() at line 509
return InstalledRepository.load(self._venv)
/usr/local/lib/python3.5/dist-packages/poetry/repositories/installed_repository.py in load() at line 22
repo.add_package(Package(name, version, version))
/usr/local/lib/python3.5/dist-packages/poetry/packages/package.py in init() at line 52
self._version = Version.parse(version)
/usr/local/lib/python3.5/dist-packages/poetry/semver/version.py in parse() at line 151
raise ValueError('Unable to parse "{}".'.format(text))

Poetry

  • Version: 0.10.0-alpha.0
  • Python: 3.5.3

Virtualenv

  • Python: 3.5.3
  • Implementation: CPython
  • Path: /home/buriy/.cache/pypoetry/virtualenvs/newsloader-py3.5

System

  • Platform: linux
  • OS: posix
@buriy buriy changed the title If you have no local .venv folder and system python3.5 is used If you have no local .venv folder May 18, 2018
@jacebrowning
Copy link
Contributor

@buriy Are you sure this exception is not simply caused by "1.9.1release" failing to conform to the versioning scheme (https://www.python.org/dev/peps/pep-0440/)?

@sdispater
Copy link
Member

Yes, 1.9.1release is not a supported version format. However it seems that it was installed before in your environment without any problem, maybe with pip?

@buriy
Copy link
Author

buriy commented May 19, 2018

@sdispater @jacebrowning yes I guess so, it was "pygame===1.9.1release" in system python folder.
Which is apparently checked only when poetry creates its own virtualenv for a project (is it created with --use-system-packages ?).
So: Poetry might give a warning, but it shouldn't break operations when seeing an incorrect version in system python folder.

@buriy buriy changed the title If you have no local .venv folder Poetry doesn't work If you have no local .venv folder but have pygame==1.9.1release in system python folder May 19, 2018
dimbleby pushed a commit to dimbleby/poetry that referenced this issue Apr 21, 2022
* Simplify temporary_directory and use safe_rmtree
Copy link

github-actions bot commented Mar 3, 2024

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 Mar 3, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants