question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError with `pyglet==2.0.dev23`

See original GitHub issue

I am running into an issue with the latest version of pip-check

> pip install pyglet==2.0.dev23 pip-check
> pip-check
Loading package versions...
Traceback (most recent call last):
  File "~/test-project/.venv/bin/pip-check", line 8, in <module>
    sys.exit(main())
    β”‚        β”” <function main at 0x10e85fbe0>
    β”” <module 'sys' (built-in)>
  File "~/test-project/.venv/lib/python3.10/site-packages/pip_check/__init__.py", line 298, in main
    if current > latest:
  File "~/test-project/.venv/lib/python3.10/site-packages/setuptools/_distutils/version.py", line 84, in __gt__
    c = self._cmp(other)
        β”‚         β”” LooseVersion ('2.0.0')
        β”” LooseVersion ('2.0.dev23')
  File "~/test-project/.venv/lib/python3.10/site-packages/setuptools/_distutils/version.py", line 352, in _cmp
    if self.version < other.version:
TypeError: '<' not supported between instances of 'str' and 'int'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bartTCcommented, Nov 6, 2022

Doh, I never made a release with that. There’s now pip-check==2.8 which should solve your issue.

0reactions
KyleKingcommented, Nov 5, 2022

But when I use the latest from main, pip-check works, so I think this can be closed pending the next release where packaging replaces distutils

> poetry add git+https://github.com/bartTC/pip-check.git@main
> poetry run pip-check --cmd="poetry run pip"
Loading package versions...

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Major Release Update β”‚ Version   β”‚ Latest β”‚                                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ pip                  β”‚ 22.3      β”‚ 22.3.1 β”‚ https://pypi.python.org/pypi/pip        β”‚
β”‚ pyglet               β”‚ 2.0.dev23 β”‚ 2.0.0  β”‚ https://pypi.python.org/pypi/pyglet     β”‚
β”‚ setuptools           β”‚ 65.5.0    β”‚ 65.5.1 β”‚ https://pypi.python.org/pypi/setuptools β”‚
β”‚ wheel                β”‚ 0.37.1    β”‚ 0.38.2 β”‚ https://pypi.python.org/pypi/wheel      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Unchanged Packages β”‚ Version β”‚ Latest β”‚                                             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ packaging          β”‚ 21.3    β”‚ 21.3   β”‚ https://pypi.python.org/pypi/packaging      β”‚
β”‚ pyparsing          β”‚ 3.0.9   β”‚ 3.0.9  β”‚ https://pypi.python.org/pypi/pyparsing      β”‚
β”‚ terminaltables     β”‚ 3.1.10  β”‚ 3.1.10 β”‚ https://pypi.python.org/pypi/terminaltables β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes - Python Arcade 2.6.16
Bump Pyglet version to 2.0dev23. Few PEP-8 fixes. Fix perspective example. Note: Development continues on version 2.7, which will be another leap forward...
Read more >
Pyglet - TypeError: expected string or buffer - Stack Overflow
It seems this bug was introduced with this recent change. You should definitely raise it on pyglet github issue tracker.
Read more >
Pyglet - GitHub
pyglet is a cross-platform windowing and multimedia library for Python, for developing games and other ... As of pyglet 2.0, OpenGL 3.3+ is...
Read more >
pyglet Documentation β€” pyglet v2.0.2
It supports windowing, user interface event handling, game controllers and joysticks, OpenGL graphics, loading images and videos, and playing sounds and music.
Read more >
python-pyglet 2.0.1-1 (any) - Arch Linux
Architecture: any. Repository: Community. Base Package: pyglet. Description: A cross-platform windowing and multimedia library for Python.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found