I got an error while deploying

[11:40:04] ❗️ installer returned a non-zero exit code
[11:40:15] πŸ–₯ Provisioning machine...
[11:40:16] πŸŽ› Preparing system...
[11:40:16] β›“ Spinning up manager process...
[11:40:17] πŸ–₯ Provisioning machine...
[11:40:22] πŸŽ› Preparing system...
[11:40:28] β›“ Spinning up manager process...
[11:40:34] 🎈 Inflating balloons...
[11:40:17] πŸš€ Starting up repository: 'todo-web-app', branch: 'main', main module: 'web.py'
[11:40:17] πŸ™ Cloning repository...
[11:40:17] πŸ™ Cloning into '/app/todo-web-app'...
[11:40:17] πŸ™ Cloned repository!
[11:40:17] πŸ™ Pulling code changes from Github...
[11:40:18] πŸ“¦ Processing dependencies...

──────────────────────────────────────── pip ───────────────────────────────────────────

Collecting aiohttp==3.8.4
  Downloading aiohttp-3.8.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 26.6 MB/s eta 0:00:00[2023-03-25 11:40:19.358776] 
Collecting aiosignal==1.3.1
  Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting altair==4.2.2
  Downloading altair-4.2.2-py3-none-any.whl (813 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 813.6/813.6 KB 291.0 MB/s eta 0:00:00[2023-03-25 11:40:19.437110] 
Collecting altgraph==0.17.3
  Downloading altgraph-0.17.3-py2.py3-none-any.whl (21 kB)
ERROR: Could not find a version that satisfies the requirement apparmor==3.1.2 (from versions: none)
ERROR: No matching distribution found for apparmor==3.1.2
WARNING: You are using pip version 22.0.3; however, version 23.0.1 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed

Please share your requirements.txt file. Make sure you do not have anything extra/unnecessary in it. You should avoid the automatically generated requirements files and instead manually create one that only includes the packages you import into your script.

1 Like

apparmor is not a valid Python package on PyPI – it does not exist.

https://pypi.org/project/apparmor/

It is instead a Linux package you can install via packages.txt:

You can upload a packages.txt containing the following to install the package:

apparmor

Note: you do not have root access to the container in which your Community Cloud app is deployed. As such, you will be unable to configure AppArmor to alter any kernel/OS level behavior.

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