Comments (6)
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)
from casalioy.
Can you try:
pip install --upgrade setuptools
from casalioy.
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.
from casalioy.
Related: streamlit/streamlit#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.
from casalioy.
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
from casalioy.
from casalioy.
Related Issues (20)
- Configuration option for startLLM.py outout format HOT 1
- Miscellaneous HOT 5
- Best practices for limiting responses to a specific source document HOT 4
- Define the Answer Language HOT 3
- an error when running python ./casalioy/startLLM.py HOT 6
- Use better prompt templating
- Unable to Provide insights on Overall Data - Only Taking top 5 or 7 chunks HOT 1
- LlamaCpp change breaks Q4_0, Q4_1 and Q8_0 models
- Illegal instruction (core dumped) HOT 4
- Multilanguage support HOT 6
- DOC: Model link is wrong for "GPT4All-13b-snoozy q5" at readme file HOT 4
- Progress stuck in window 10 for "python casalioy/ingest.py source_documents/" HOT 3
- Add OpenCL (AMD GPU) support
- Getting KeyError 'max_tokens' HOT 6
- DOC: python convert.py file missing at github repo but present in readme file HOT 1
- HTML printer gets tripped over by some special characters HOT 3
- DOC: Installation instructions for utilizing Anaconda HOT 2
- running gpt4 all models HOT 1
- data privacy HOT 9
- no module named Casalioy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casalioy.