Closed hippalectryon-0 closed 1 year ago
Can you try:
pip install --upgrade setuptools
pip install --upgrade setuptools
Already done, no change
Update: the issue comes when streamlit==1.22.0
and qdrant-client==1.1.7
are together. If we remove either, the install works fine.
I believe this is because streamlit forces protobuf<4, and qdrant-client then installs some obscure version of grpcio-tools.
Related: https://github.com/streamlit/streamlit/issues/5626
According to this, this is indeed what is going on, and the next version of streamlit should fix that.
I use python3.11, which is probably why you don't have this error on your end.
Got this error myself:
Traceback (most recent call last):
File "C:\Users\Haley The Retard\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\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\Scripts\streamlit.exe\__main__.py", line 4, in <module>
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\__init__.py", line 55, in <module>
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\delta_generator.py", line 36, in <module>
from streamlit import config, cursor, env_util, logger, runtime, type_util, util
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\cursor.py", line 18, in <module>
from streamlit.runtime.scriptrunner import get_script_run_ctx
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\__init__.py", line 16, in <module>
from streamlit.runtime.runtime import Runtime as Runtime
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\runtime.py", line 29, in <module>
from streamlit.proto.BackMsg_pb2 import BackMsg
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\proto\BackMsg_pb2.py", line 14, in <module>
from streamlit.proto import ClientState_pb2 as streamlit_dot_proto_dot_ClientState__pb2
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\proto\ClientState_pb2.py", line 14, in <module>
from streamlit.proto import WidgetStates_pb2 as streamlit_dot_proto_dot_WidgetStates__pb2
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\proto\WidgetStates_pb2.py", line 14, in <module>
from streamlit.proto import Common_pb2 as streamlit_dot_proto_dot_Common__pb2
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\proto\Common_pb2.py", line 36, in <module>
_descriptor.FieldDescriptor(
File "C:\Users\Haley The Retard\AppData\Local\Programs\Python\Python310\lib\site-packages\google\protobuf\descriptor.py", line 561, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
To fix (Worked for me): pip install --force protobuf==3.20.3
Possible fix: #31
I've ended up installing streamlit from the rep while we wait for 1.23.x. I'll sumbit a PR soon (I'm using poetry)
Tested both on windows 10 & ubuntu 22.
Problem:
python -m pip install -r requirements.txt
fails with the latest addition ofstreamlit==1.22.0
. This seems to be due to a requirementgrpcio-tools
(full log here):Edit: if you wonder how I got the GUI working before: I hadn't installed the "new" requirements, and pip somehow managed to install conflicting versions of the packages (ex protobuf>=4) that got the whole thing working, but that's an anomaly