Error when performing deploy.
I’m starting out in Python and I’m using the codespace directly on Github for this application. and running it on github it works perfectly, and when I try to publish this message appears
PS:
Sorry for the writing errors, I’m Brazilian and I don’t speak English hehehe
Hi @naicm12
The error message hints that there is an issue with installing library dependencies.
Could you share your app repo or requirements.txt file.
Thanks for answering!
attrs==23.2.0
charset-normalizer==3.3.2
click==8.1.7
decorator==5.1.1
defusedxml==0.7.1
docopt==0.6.2
executing==2.0.1
gitdb==4.0.11
GitPython==3.1.41
ipython==8.12.3
opencv_python_headless==4.8.1.78
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mysqlclient==2.2.4
nbclient==0.10.0
nbconvert==7.16.2
nbformat==5.10.3
numpy==1.26.4
packaging==23.2
pillow==10.2.0
pipreqs==0.5.0
platformdirs==4.2.0
prompt-toolkit==3.0.43
protobuf==4.25.3
ptyprocess==0.7.0
pyarrow==15.0.2
pydeck==0.8.1b0
Pygments==2.17.2
pyotp==2.9.0
python-dateutil==2.9.0.post0
referencing==0.34.0
requests==2.31.0
smmap==5.0.1
soupsieve==2.5
SQLAlchemy==2.0.28
Streamlit==1.24.0
urllib3==2.2.1
watchdog==4.0.0
wcwidth==0.2.13
webencodings==0.5.1
Hey @naicm12 . Dou you need all the mentioned dependencies? May some of them causing the errors due to version compatibility!!
So my friend,
I’m just starting out and I don’t understand almost anything. I got this requirements.txt from somewhere else hehe.
Initially I’m testing to see if I can publish this application and only then will I actually implement the code.
So I just need to get that connection.
Below is the code:
It works here! but when I publish it it doesn’t work
Thank you!
@naicm12 then change the requirements.txt as follows:-
streamlit
sqlalchemy
Don’t forget to reboot the application after updating the dependencies file.
Hope it works well
Happy Streamlit-ing
Did not work
initially there was an error in MySQLdb,
I removed it from import and tested it on github and it worked, then I tried to upload it and it gave the error below:
my requirements.txt looked like this:
In any case, thank you very much for your help
Goyo
March 21, 2024, 6:07pm
8
naicm12:
it gave the error below
I can’t see any errors in your screenshot.
system
Closed
September 17, 2024, 6:08pm
9
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.