Can't generate anything
MWoolley-kezber opened this issue · comments
Please check that this issue hasn't been reported before.
- I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
Generate after prompting
Current behaviour
After being installed and launched, any generation lead to this:
[2023-05-23 10:38:57,605] ERROR [gpt_code_ui.webapp.main:1414] Exception on /generate [POST]
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 2190, in wsgi_app response = self.full_dispatch_request()
File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\flask_cors\extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\gpt_code_ui\webapp\main.py", line 179, in generate_code
loop.close()
File "c:\users\username\appdata\local\programs\python\python38\lib\asyncio\proactor_events.py", line 679, in close
signal.set_wakeup_fd(-1)
ValueError: set_wakeup_fd only works in main thread
Exception ignored in: <function BaseEventLoop.del at 0x000001E2CD5D3820>
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 648, in del
self.close()
File "c:\users\username\appdata\local\programs\python\python38\lib\asyncio\proactor_events.py", line 679, in close
signal.set_wakeup_fd(-1)
ValueError: set_wakeup_fd only works in main thread
Steps to reproduce
Installation following instructions on Windows 11.
Use with browser localhost:5000
OpenAI key setup
Possible solution
No response
Which Operating Systems are you using?
- Android
- iPhone/iPad
- Linux
- macOS
- Windows
Programming Version
Python3.19
gpt-code-ui Version
Latest
Acknowledgements
- My issue title is concise, descriptive, and in title casing.
- I have searched the existing issues to make sure this bug has not been reported yet.
- I am using the latest version of gpt-code-ui.
- I have provided enough information for the maintainers to reproduce and diagnose the issue.
File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 2190, in wsgi_app response = self.full_dispatch_request()
It looks like you're running Python 3.8 and as described in the Stack Overflow post below, there seems to be an async issue related to Flask.
https://stackoverflow.com/a/67308923
Could you try running it on Python 3.9 or higher?