Env: WSL2 - Ubuntu 22.04, VSCode, Python 3.12.4.
Issue:
When trying to execute app in Jupyter Notebook with python 3.12, the hupyter kernel crashes. Then I started Jupyter Notebook via web
with:
jupyter notebook --no-browser --ip 0.0.0.0 --port 8888
and got the following error:
TypeError: Descriptors cannot not be created directly.
Googled it and found:
https://stackoverflow.com/questions/72441758/typeerror-descriptors-cannot-not-be-created-directly
Add specific version protobuf following it and the issue was gone.
Env: WSL2 - Ubuntu 22.04, VSCode, Python 3.12.4. Issue: When trying to execute app in Jupyter Notebook with python 3.12, the hupyter kernel crashes. Then I started Jupyter Notebook via web with:
jupyter notebook --no-browser --ip 0.0.0.0 --port 8888
and got the following error: TypeError: Descriptors cannot not be created directly. Googled it and found: https://stackoverflow.com/questions/72441758/typeerror-descriptors-cannot-not-be-created-directly Add specific version protobuf following it and the issue was gone.
!pip install protobuf==3.20.3
Solution: