Unable to install the python dependencies while deploying the app

Unable to deploy the python dependencies though made a seperate file called packages.txt
It gives module not found error

With such few information we cannot help at all.
Please provide more information or a link to your github repo.

Hi Thanks for the reply , so I have developed a python app and it has the packages like pandas, numpy
I have given it in the packages.txt file and while deploying the app on streamlit, It reads the file but gives an error pandas(package) module not found.

link to github repo : GitHub - PirATesofArabian/optiondata

I get this error: Error installing requirements.,Unable to locate package pandas

See my pull request on github:

  • removed packages.txt , you don’t need it
  • renamed environment.yml
  • added requirements.txt
  • sorted the imports
  • however the app will still not run, there is a missing dependeny probably sample.py ?

I have changed all and deployed it , but still same error
2022-04-24 12:47:07.294 Uncaught app exception
Traceback (most recent call last):
File “/home/appuser/venv/lib/python3.7/site-packages/streamlit/scriptrunner/script_runner.py”, line 443, in _run_script
exec(code, module.dict)
File “/app/optiondata/database.py”, line 5, in
from sample import Functions
File “/app/optiondata/sample.py”, line 3, in
from kiteext import KiteExt
File “/app/optiondata/kiteext.py”, line 2, in
import kiteconnect.exceptions as ex
ModuleNotFoundError: No module named ‘kiteconnect’

No, you did not apply my pull request properly.
Your file names have typos, therefore it does not work. Look at the file names.

Collecting package metadata (repodata.json): ...working... [2022-04-24 12:51:18.260982] done
Solving environment: ...working... [2022-04-24 12:51:18.263136] failed

ResolvePackageNotFound: 
  - kiteconnect==3.9.2

Where do you deploy? Streamlit cloud?

yes

Then apply my changes from the pull request regarding the *.txt and *.yml files

It worked , thanks for the help
changes i did :
1.Deleted the .txt file , kept only the envirnoment.yml
2.Inside the .yml , added like this
name: stats
dependencies:

  • pip:
    - matplotlib

:slight_smile: Thank you

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