Issue deploying app: installer returned a non-zero exit code

Processing /Users/runner/miniforge3/conda-bld/aiohttp_1676292794306/work
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘/Users/runner/miniforge3/conda-bld/aiohttp_1676292794306/work’

WARNING: You are using pip version 22.0.3; however, version 23.2.1 is available.
You should consider upgrading via the ‘/home/adminuser/venv/bin/python -m pip install --upgrade pip’ command.
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[18:49:23] :exclamation: installer returned a non-zero exit code
[18:49:23] :exclamation: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

Hi, @monipip3 there are many factors possible to apply to this problem you are facing:

  • First of all upgrade pip with:
/home/adminuser/venv/bin/python -m pip install --upgrade pip

upgrading pip sometimes resolve the issues.

  • Check the environment if other programs work or not.
  • Check dependencies.
  • Check the network and its speed.
  • Conda environment (Sometimes it takes times to run, please restart it)

Thank you, I hope this will help you

@monipip3
Are we talking about streamlit cloud?
I assume you are using conda and referencing a locally installed package. This does not work. Please share the link to your public github repo.

After updating pip I got a new error

[21:07:40] 📦 Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.




2023-08-20 21:08:01.517 Uncaught app exception
Traceback (most recent call last):
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/mount/src/pms_chef_bot/About.py", line 2, in <module>
    from streamlit_extras.switch_page_button import switch_page
ModuleNotFoundError: No module named 'streamlit_extras'
2023-08-20 21:09:07.254 Uncaught app exception
Traceback (most recent call last):
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/mount/src/pms_chef_bot/About.py", line 2, in <module>
    from streamlit_extras.switch_page_button import switch_page
ModuleNotFoundError: No module named 'streamlit_extras'

I just checked my yml and I do have it under pip

  • This file name twilio_py.yml is not considered by streamlit cloud and therefore nothing is installed.
  • It contains lots of unnecessary packages that can only lead to problems during installation.

After a quick look at the repo, this should do the trick:

requirements.txt

pandas
streamlit
streamlit-extras
st-pages
pymongo
1 Like

ty it worked!

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