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

Incompatible with Python 3.10 #36

Open
pareeohnos opened this issue Nov 7, 2021 · 0 comments
Open

Incompatible with Python 3.10 #36

pareeohnos opened this issue Nov 7, 2021 · 0 comments

Comments

@pareeohnos
Copy link
Owner

daven reported a failure trying to start up on python 3.9

:\ktrade-main>flask db upgrade
Traceback (most recent call last):
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\Scripts\flask.exe\__main__.py", line 7, in <module>
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\cli.py", line 990, in main
    cli.main(args=sys.argv[1:])
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\cli.py", line 596, in main
    return super().main(*args, **kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\cli.py", line 439, in decorator
    with __ctx.ensure_object(ScriptInfo).load_app().app_context():
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\cli.py", line 406, in load_app
    app = locate_app(self, import_name, None, raise_if_not_found=False)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\cli.py", line 256, in locate_app
    __import__(module_name)
  File "C:\ktrade-main\wsgi.py", line 4, in <module>
    from application import create_app, db, socketio
  File "C:\ktrade-main\application.py", line 9, in <module>
    from flask_socketio import SocketIO
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\flask_socketio\__init__.py", line 9, in <module>
    from socketio import socketio_manage  # noqa: F401
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\socketio\__init__.py", line 9, in <module>
    from .zmq_manager import ZmqManager
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\socketio\zmq_manager.py", line 5, in <module>
    import eventlet.green.zmq as zmq
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\eventlet\__init__.py", line 17, in <module>
    from eventlet import convenience
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\eventlet\convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\eventlet\green\socket.py", line 4, in <module>
    __import__('eventlet.green._socket_nodns')
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\eventlet\green\_socket_nodns.py", line 11, in <module>
    from eventlet import greenio
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\eventlet\greenio\__init__.py", line 3, in <module>
    from eventlet.greenio.base import *  # noqa
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\eventlet\greenio\base.py", line 32, in <module>
    socket_timeout = eventlet.timeout.wrap_is_timeout(socket.timeout)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\eventlet\timeout.py", line 166, in wrap_is_timeout
    base.is_timeout = property(lambda _: True)
TypeError: cannot set 'is_timeout' attribute of immutable type 'TimeoutError'

C:\ktrade-main>
C:\ktrade-main>python -V
Python 3.10.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant