Skip to content
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

Poetry 1.0.0b4 breaks with Python 2.7. #1559

Closed
3 tasks done
KelSolaar opened this issue Nov 9, 2019 · 2 comments
Closed
3 tasks done

Poetry 1.0.0b4 breaks with Python 2.7. #1559

KelSolaar opened this issue Nov 9, 2019 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@KelSolaar
Copy link

  • 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).

Issue

All my builds started to break today with 1.0.0b4 and it turns out that there are issues with Python 2.7:

(colour-demosaicing-JqjoDa6b-py2.7) Kali:colour-demosaicing kelsolaar$ poetry install -vvv
Using virtualenv: /Users/kelsolaar/Library/Caches/pypoetry/virtualenvs/colour-demosaicing-JqjoDa6b-py2.7
Updating dependencies
Resolving dependencies...
   1: fact: colour-demosaicing is 0.1.5
   1: derived: colour-demosaicing
   ...
   0: Complete version solving took 17.056 seconds for 2 branches
   0: Resolved for branches: (>=2.7,<2.8), (>=3.5,<4.0)

Writing lock file

[InvalidRequirement]
Invalid requirement, parse error at "'and () o'"

Traceback (most recent call last):
Traceback (most recent call last):
  File "/Users/kelsolaar/.poetry/bin/poetry", line 14, in <module>
    main()
  File "/Users/kelsolaar/.poetry/lib/poetry/console/__init__.py", line 5, in main
    return Application().run()
  File "/Users/kelsolaar/.poetry/lib/poetry/_vendor/py2.7/clikit/console_application.py", line 139, in run
    trace.render(io, simple=isinstance(e, CliKitException))
  File "/Users/kelsolaar/.poetry/lib/poetry/_vendor/py2.7/clikit/ui/components/exception_trace.py", line 57, in render
    self._render_traceback(io, tb)
  File "/Users/kelsolaar/.poetry/lib/poetry/_vendor/py2.7/clikit/ui/components/exception_trace.py", line 67, in _render_traceback
    io.write_line("".join(traceback.format_list(frames)))
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py", line 39, in format_list
    item = '  File "%s", line %d, in %s\n' % (filename,lineno,name)
TypeError: %d format: a number is required, not str
(colour-demosaicing-JqjoDa6b-py2.7) Kali:colour-demosaicing kelsolaar$ poetry install -vv
Using virtualenv: /Users/kelsolaar/Library/Caches/pypoetry/virtualenvs/colour-demosaicing-JqjoDa6b-py2.7
Installing dependencies from lock file

[ParseException]
Expected stringEnd, found u'a'  (at char 24), (line:1, col:25)

Traceback (most recent call last):
Traceback (most recent call last):
  File "/Users/kelsolaar/.poetry/bin/poetry", line 14, in <module>
    main()
  File "/Users/kelsolaar/.poetry/lib/poetry/console/__init__.py", line 5, in main
    return Application().run()
  File "/Users/kelsolaar/.poetry/lib/poetry/_vendor/py2.7/clikit/console_application.py", line 139, in run
    trace.render(io, simple=isinstance(e, CliKitException))
  File "/Users/kelsolaar/.poetry/lib/poetry/_vendor/py2.7/clikit/ui/components/exception_trace.py", line 57, in render
    self._render_traceback(io, tb)
  File "/Users/kelsolaar/.poetry/lib/poetry/_vendor/py2.7/clikit/ui/components/exception_trace.py", line 67, in _render_traceback
    io.write_line("".join(traceback.format_list(frames)))
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py", line 39, in format_list
    item = '  File "%s", line %d, in %s\n' % (filename,lineno,name)
TypeError: %d format: a number is required, not str

My poetry.lock file is here: https://filebin.net/gprt82f9bw1b3cyh

@KelSolaar KelSolaar added the kind/bug Something isn't working as expected label Nov 9, 2019
@finswimmer
Copy link
Member

Hello @KelSolaar,

I'm not able to reproduce your issue with poetry 1.0.3. Instead I'm having the problem as in #1963.

I will close this one, because it looks like the original issue has been solved in the meantime. If you disagree just leave a comment.

fin swimmer

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants