miguelgrinberg / simple-websocket

Simple WebSocket server and client for Python.
MIT License
78 stars 17 forks source link

Pyinstaller missing import #3

Closed pirumpi closed 3 years ago

pirumpi commented 3 years ago

It seems that an import is missing when I try to create a binary using pyinstaller

Traceback (most recent call last):
  File "flask\app.py", line 2070, in wsgi_app
  File "flask\app.py", line 1515, in full_dispatch_request
  File "flask_cors\extension.py", line 165, in wrapped_function
  File "flask\app.py", line 1513, in full_dispatch_request
  File "flask\app.py", line 1499, in dispatch_request
  File "flask_sock\__init__.py", line 24, in websocket_route
  File "simple_websocket\ws.py", line 136, in __init__
AttributeError: 'Input' object has no attribute 'raw'

The application runs great otherwise. Have you tried creating a binary using flask_sock or simple_socket? if so, how did you overcome this issue?

miguelgrinberg commented 3 years ago

What Python version is this?

pirumpi commented 3 years ago

Python 3.7.10

miguelgrinberg commented 3 years ago

The version of gevent you were using wasn't being handled correctly. You can upgrade your gevent to the latest and everything should work. I have also committed a fix to handle the older versions.