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

TypeError in web.py - '<' not supported between instances of 'sys.version_info' and 'float' #5127

Closed
kevn845150 opened this issue Oct 25, 2020 · 2 comments · Fixed by #5130
Closed
Labels

Comments

@kevn845150
Copy link

🐞 Describe the bug

💡 To Reproduce

  1. Windows, Python 3.9.0 x64
  2. "from aiohttp import web"

📋 Logs/tracebacks

 File "C:\_dev\.venv\lib\site-packages\aiohttp\web.py", line 379, in _run_app
    if sys.platform == "win32" and sys.version_info < 3.8:
TypeError: '<' not supported between instances of 'sys.version_info' and 'float'

📋 Your version of the Python

$ python --version
Python 3.9.0
...

📋 Your version of the aiohttp/yarl/multidict distributions

$ python -m pip show aiohttp
Name: aiohttp
Version: 3.7.0
Summary: Async http client/server framework (asyncio)
Home-page: https://github.com/aio-libs/aiohttp
Author: Nikolay Kim
Author-email: [email protected]
License: Apache 2
Location: c:\_dev\.venv\lib\site-packages
Requires: async-timeout, multidict, chardet, yarl, attrs
$ python -m pip show multidict
Name: multidict
Version: 5.0.0
Summary: multidict implementation
Home-page: https://github.com/aio-libs/multidict
Author: Andrew Svetlov
Author-email: [email protected]
License: Apache 2
Location: c:\_dev\.venv\lib\site-packages
Requires:
Required-by: yarl, aiohttp
$ python -m pip show yarl
Name: yarl
Version: 1.6.2
Summary: Yet another URL library
Home-page: https://github.com/aio-libs/yarl/
Author: Andrew Svetlov
Author-email: [email protected]
License: Apache 2
Location: c:\_dev\.venv\lib\site-packages
Requires: multidict, idna
Required-by: aiormq, aiohttp, aio-pika

📋 Additional context

This can be reproduced by simply doing:
import sys
print(sys.version_info < 3.8)

@kevn845150 kevn845150 added the bug label Oct 25, 2020
@AndyLee1024
Copy link

same here. windows 2012

@zhanghaoda
Copy link

same error :

TypeError: '<' not supported between instances of 'sys.version_info' and 'float'

Name: aiohttp Version: 3.7.0 not work, but Version: 3.6.2 work well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants