[X] I have searched the existing issues and checked the recent builds/commits
What happened?
got an exception (ValueError: invalid literal for int() with base 10: '0rc2') in function below, when use Python v3.11.0rc2
SUPPORT_ADD_NOTES = [
int(each) for each in __import__("platform").python_version_tuple()
][0] >= 3 and [int(each) for each in __import__("platform").python_version_tuple()][
1
] >= 11
Steps to reproduce the problem
install python 3.11.rc2
try to revChatGPT.V1
What should have happened?
Exception
Traceback (most recent call last):
File "/usr/lib/python3.11/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
cli.main()
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
runpy.run_path(target, run_name="__main__")
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "/root/pyproj/src/test_1.py", line 3, in <module>
SUPPORT_ADD_NOTES = [
^
File "/root/pyproj/src/test_1.py", line 4, in <listcomp>
int(each) for each in __import__("platform").python_version_tuple()
^^^^^^^^^
ValueError: invalid literal for int() with base 10: '0rc2'
Version where the problem happens
6.1.2
What Python version are you running this with?
Python 3.11.0rc2
What is your operating system ?
Linux
Command Line Arguments
none
Console logs
Traceback (most recent call last):
File "/usr/lib/python3.11/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
cli.main()
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
runpy.run_path(target, run_name="__main__")
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/root/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "/root/pyproj/src/chat_gpt.py", line 2, in <module>
from revChatGPT.V1 import Chatbot, AsyncChatbot
File "/root/pyproj/.venv/lib/python3.11/site-packages/revChatGPT/__init__.py", line 36, in <module>
verify()
File "/root/pyproj/.venv/lib/python3.11/site-packages/revChatGPT/__init__.py", line 14, in verify
from . import typings as t
File "/root/pyproj/.venv/lib/python3.11/site-packages/revChatGPT/typings.py", line 9, in <module>
SUPPORT_ADD_NOTES = [
^
File "/root/pyproj/.venv/lib/python3.11/site-packages/revChatGPT/typings.py", line 10, in <listcomp>
int(each) for each in __import__("platform").python_version_tuple()
^^^^^^^^^
ValueError: invalid literal for int() with base 10: '0rc2'
Is there an existing issue for this?
What happened?
got an exception (ValueError: invalid literal for int() with base 10: '0rc2') in function below, when use Python v3.11.0rc2
Steps to reproduce the problem
What should have happened?
Exception
Version where the problem happens
6.1.2
What Python version are you running this with?
Python 3.11.0rc2
What is your operating system ?
Linux
Command Line Arguments
Console logs