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.

Python 3.10 compatibility

See original GitHub issue

Version check in setup.py is not compatible with python-3.10. Reported in Fedora bugzilla:

https://bugzilla.redhat.com/show_bug.cgi?id=1897581

Traceback (most recent call last):
  File "/builddir/build/BUILD/FormEncode-1.3.1/setup.py", line 15, in <module>
    raise ImportError('Python version not supported')
ImportError: Python version not supported

Please, use a different version testing, for example:

py_version = sys.version_info[0]+sys.version_info[1]/100
if not 2.07 <= py_version < 3.0 and not 3.06 <= py_version:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lambacckcommented, Oct 5, 2021

I have released 2.0.1 to pypi which includes the change to make setup.py work on Python 3.10. The docs have been updated to reflect that Python 3.10 support was added but a doc build hasn’t run yet on the official doc site. Once the doc build runs the details will show there

2reactions
hroncokcommented, Nov 16, 2020

For testing Python versions, use tuples with integers:

if not (2, 7) <= sys.version_info[:2] < (3, 0) and not (3, 6) <= sys.version_info[:2]:
    ...

Never floats or strings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3.10 support table for most popular Python packages
Python 3.10 is a currently supported version of Python . This site shows Python 3.10 support for the 360 most downloaded packages on...
Read more >
What's New In Python 3.10 — Python 3.11.1 documentation
This article explains the new features in Python 3.10, compared to 3.9. Python 3.10 was released on October 4, 2021. For full details,...
Read more >
DOC: Note Python 3.10 compatibility - GitHub
TEST: Verify and note Python 3.10 support #60 · Workflow file ...
Read more >
Simple way to make python 3.10 code compatible for python ...
A bit strange question, but I would do this if it is an absolute necessity. One file `match_something.py for 3.9 and below:
Read more >
Support Python 3.10? - General Discussion - TensorFlow Forum
Python 3.10 will be released in October 2021, so it will be supported in the next TF release after that, assuming all dependencies...
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