Error installing requirements - Streamlit sharing

Hello all,
I am trying to create new streamlit share app but I am getting error of installing requirements. Error log is as below. Can you suggest anything? Thank you
Note: I have created the code on anaconda and tried to minimize the libraries

Also github repository link: GitHub - OnurBaris/FinanceWebApp: Streamlit based web application for checking stock data

Log:

[client] Deleting app...
[client] Provisioning machine...
[client] Preparing system...
e[32m[manager] e[0mStarting up for owner: 'onurbaris', repository: 'financewebapp', branch: 'main', main module: 'Stockprice_webapp_v3.py'
e[32m[manager] e[0mCloning repository ...
e[32m[manager] e[0mCloning into 'financewebapp'...

e[32m[manager] e[0mCloned repository!
e[32m[manager] e[0mProcessing dependencies ...
[client] Spinning up manager process...
Collecting package metadata (repodata.json): ...working... [2021-10-19 07:33:57.301042] done
Solving environment: ...working... [2021-10-19 07:33:57.348576] failed

ResolvePackageNotFound: 
  - brotlipy==0.7.0=py38h2bbff1b_1003
  - jedi==0.17.2=py38haa95532_1
  - pysocks==1.7.1=py38haa95532_0
  - six==1.15.0=py38haa95532_0
  - pywin32-ctypes==0.2.0=py38_1000
  - vs2015_runtime==14.27.29016=h5e58377_2
  - libpng==1.6.37=h2a8f88b_0
  - numpy==1.21.2=py38hfca59bb_0
  - numexpr==2.7.3=py38hb80d3ca_1
  - qt==5.9.7=vc14h73c81de_0
  - vc==14.2=h21ff451_1
  - pandocfilters==1.4.3=py38haa95532_1
  - certifi==2021.10.8=py38haa95532_0
  - astroid==2.6.6=py38haa95532_0
  - console_shortcut==0.1.1=4
  - yaml==0.2.5=he774522_0
  - jupyter_core==4.8.1=py38haa95532_0
  - keyring==23.1.0=py38haa95532_0
  - rtree==0.9.7=py38h2eaa2aa_1
  - bottleneck==1.3.2=py38h2a96729_1
  - mkl_random==1.2.2=py38hf11a4ad_0
  - pandas==1.3.3=py38h6214cd6_0
  - mistune==0.8.4=py38he774522_1000
  - pluggy==1.0.0=py38haa95532_0
  - jpeg==9d=h2bbff1b_0
  - mkl_fft==1.3.1=py38h277e83a_0
  - pyqt==5.9.2=py38ha925a31_4
  - regex==2021.8.3=py38h2bbff1b_0
  - tenacity==8.0.1=py38haa95532_0
  - pynacl==1.4.0=py38h62dcd97_1
  - importlib-metadata==4.8.1=py38haa95532_0
  - chardet==4.0.0=py38haa95532_1003
  - ipython==7.27.0=py38hd4e2768_0
  - mkl-service==2.4.0=py38h2bbff1b_0
  - sqlite==3.36.0=h2bbff1b_0
  - typed-ast==1.4.3=py38h2bbff1b_1
  - mkl==2021.3.0=haa95532_524
  - markupsafe==1.1.1=py38he774522_0
  - sip==4.19.13=py38ha925a31_0
  - numpy-base==1.21.2=py38h0829f74_0
  - cryptography==3.4.8=py38h71e12ea_0
  - zlib==1.2.11=h62dcd97_4
  - pyyaml==5.4.1=py38h2bbff1b_1
  - pylint==2.9.6=py38haa95532_1
  - pywin32==228=py38hbaba5e8_1
  - nbconvert==6.1.0=py38haa95532_0
  - intel-openmp==2021.3.0=haa95532_3372
  - inflection==0.5.1=py38haa95532_0
  - lazy-object-proxy==1.6.0=py38h2bbff1b_0
  - icu==58.2=ha925a31_3
  - debugpy==1.4.1=py38hd77b12b_0
  - openssl==1.1.1l=h2bbff1b_0
  - python==3.8.12=h6244533_0
  - ipykernel==6.4.1=py38haa95532_1
  - docutils==0.17.1=py38haa95532_1
  - pip==21.0.1=py38haa95532_0
  - wincertstore==0.2=py38haa95532_2
  - setuptools==58.0.4=py38haa95532_0
  - spyder-kernels==2.0.5=py38haa95532_0
  - wrapt==1.12.1=py38he774522_1
  - psutil==5.8.0=py38h2bbff1b_1
  - spyder==5.0.5=py38haa95532_2
  - tornado==6.1=py38h2bbff1b_0
  - pyzmq==22.2.1=py38hd77b12b_1
  - watchdog==2.1.3=py38haa95532_0
  - ujson==4.0.2=py38hd77b12b_0
  - win_inet_pton==1.1.0=py38haa95532_0
  - bcrypt==3.2.0=py38he774522_0
  - libspatialindex==1.9.3=h6c2663c_0
  - ca-certificates==2021.9.30=haa95532_1
  - pyrsistent==0.17.3=py38he774522_0
  - cffi==1.14.6=py38h2bbff1b_0

e[32m[manager] e[0minstaller returned a non-zero exit code
e[32m[manager] e[0mError during processing dependencies! Please fix the error and push an update, or try restarting the app.
e[32m[manager] e[0mStarting up for owner: 'onurbaris', repository: 'financewebapp', branch: 'main', main module: 'Stockprice_webapp_v3.py'
e[32m[manager] e[0mCloning repository ...
e[32m[manager] e[0mCloning into 'financewebapp'...

e[32m[manager] e[0mCloned repository!
e[32m[manager] e[0mProcessing dependencies ...
Collecting package metadata (repodata.json): ...working... [2021-10-19 07:33:57.301042] done
Solving environment: ...working... [2021-10-19 07:33:57.348576] failed

Anything referring to Windows packages isn’t going to work on Streamlit Cloud, as we are using Debian images to build apps. So packages such as the below will cause conda to fail, as there aren’t Debian binaries for Windows packages:

  • pywin32-ctypes==0.2.0=py38_1000
  • vs2015_runtime==14.27.29016=h5e58377_2

Best,
Randy

Dear Randy,

Thank you for the explanation. What can I do for this issue? Simply deleting windows related packages or change the dependencies? (By the way I have tried to erase these packages from environment.yml file and got the same error)
Thanks a lot

Best Regards,
Onur

Yes, you have to go through and remove all Windows-related packages. I would suggest instead of going line by line, start with a blank file and add in the dependencies you actually call in your package. Let conda solve for all of the other transitive dependencies.

Dear @randyzwitch hello again,
My app depends on windows related packages as far as I can understand, what should I do to replace them? I am working in windows machine and using conda.
Many thanks

The packages you need to run on your local Windows computer, and the packages needed to run on a Linux computer are likely much different. Using a tool like pipreqs can analyze your code to see what you actually import in your code, which will shrink your dependencies down to something like:

numpy
pandas
plotly
python_dateutil
streamlit==1.1
yfinance==0.1.64

Best,
Randy

1 Like

Dear @randyzwitch,

It has worked, thank you very much for the support.
Have a nice day

Regards,
Onur

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.