Open Nayananga opened 3 years ago
Thanks for reporting, @Nayananga. If you don't mind, can you please comment out the following two lines in your local install and report back if you run into other issues?
https://github.com/h2oai/wave/blob/master/py/h2o_wave/routing.py#L81-L82
@lo5 When I comment those lines and retry, I get this,
(venv) nayananga@nayananga-Aspire-E5-575G:~/PycharmProjects/wave-model-monitoring/build/lib.linux-x86_64-3.8$ wave run src.app
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [1172915] using statreload
INFO: Started server process [1172918]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 127.0.0.1:35708 - "POST / HTTP/1.1" 200 OK
Unhandled exception
Traceback (most recent call last):
File "/home/nayananga/PycharmProjects/wave-model-monitoring/venv/lib/python3.8/site-packages/h2o_wave/server.py", line 305, in _process
await self._handle(q)
File "src/app.py", line 27, in serve
File "src/init.py", line 110, in init_app
File "src/init.py", line 85, in src.init._create_app_dirs
File "/usr/lib/python3.8/os.py", line 675, in __getitem__
raise KeyError(key) from None
KeyError: 'APP_DATA_DIR'
I'm not sure what that error is. It's originating from src/init.py
.
I have the same issue and after doing https://github.com/h2oai/wave/issues/955#issuecomment-895409563 it runs fine.
I'm not sure what that error is. It's originating from
src/init.py
.
Yes, It was some other issue, commenting those two lines fixed the cythonization issue.
@Far0n @Nayananga Thanks for confirming.
Related: https://bugs.python.org/issue38225 https://github.com/cython/cython/issues/2273
I'll comment out the checks until the above are resolved.
Wave SDK Version, OS
wave-0.17.0-linux-amd64, Linux
Actual behavior
When Cythonize a project, if it has used
@on
decorators like this it raises an error,Expected behavior
Cythonized project should work as non-cythonized project
Steps To Reproduce