I tried to deploy my app with the streamlit cloud Using the ArcGIS API for Python . I saw this post (Deploy error when try install arcgis api) and tried to troubleshoot using the suggestions but I have not had any luck.
Here is the Github repository: Portfolio/WildFirePortfolio at 7f656be5f17bc05cb7342e8469e65d715f4c7c5d Β· zkasson/Portfolio Β· GitHub.
ERROR:
Using uv pip install.
[18:44:13] π Preparing system...
[18:44:13] β Spinning up manager process...
error: Failed to download and build `arcgis==2.4.0`
Caused by: Failed to build: `arcgis==2.4.0`
Caused by: Failed to install requirements from build-system.requires (install)
Caused by: Failed to download and build distributions
Caused by: Failed to fetch wheel: krb5==0.7.0
Caused by: Failed to build: `krb5==0.7.0`
Caused by: Build backend failed to determine extra requires with `build_wheel()` with exit status: 1
--- stdout:
Using krb5-config at 'krb5-config'
--- stderr:
/bin/sh: 1: krb5-config: not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/adminuser/.cache/uv/.tmpMXCi5l/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/.cache/uv/.tmpMXCi5l/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/home/adminuser/.cache/uv/.tmpMXCi5l/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 175, in <module>
File "<string>", line 33, in run_command
File "/usr/local/lib/python3.12/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('krb5-config --cflags krb5',)' returned non-zero exit status 127.
---
Checking if Streamlit is installed
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββ pip βββββββββββββββββββββββββββββββββββββββββββ
Using standard pip install.
Collecting streamlit (from -r /mount/src/portfolio/WildFirePortfolio/requirements.txt (line 1))
Downloading streamlit-1.40.1-py2.py3-none-any.whl.metadata (8.5 kB)
Collecting geopandas (from -r /mount/src/portfolio/WildFirePortfolio/requirements.txt (line 2))
Downloading geopandas-1.0.1-py3-none-any.whl.metadata (2.2 kB)
Collecting pandas (from -r /mount/src/portfolio/WildFirePortfolio/requirements.txt (line 3))
Downloading pandas-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (89 kB)
ββββββββββββββββββββββββββββββββββββββββ 89.9/89.9 kB 8.1 MB/s eta 0:00:00[2024-11-14 18:44:17.755090]
Collecting matplotlib (from -r /mount/src/portfolio/WildFirePortfolio/requirements.txt (line 4))
Downloading matplotlib-3.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Collecting leafmap (from -r /mount/src/portfolio/WildFirePortfolio/requirements.txt (line 5))
Downloading leafmap-0.39.2-py2.py3-none-any.whl.metadata (16 kB)
Collecting gssapi (from -r /mount/src/portfolio/WildFirePortfolio/requirements.txt (line 6))
Downloading gssapi-1.9.0.tar.gz (94 kB)
βββββββββββββββββββββββββββββββββββββββ 94.3/94.3 kB 149.7 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
Γ Getting requirements to build wheel did not run successfully.
β exit code: 1
β°β> [25 lines of output]
/bin/sh: 1: krb5-config: not found
Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/adminuser/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rp9xw5f5/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rp9xw5f5/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-rp9xw5f5/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 109, in <module>
File "<string>", line 22, in get_output
File "/usr/local/lib/python3.12/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'krb5-config --libs gssapi' returned non-zero exit status 127.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Γ Getting requirements to build wheel did not run successfully.
β exit code: 1
β°β> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip is available: 24.0 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[18:44:25] βοΈ installer returned a non-zero exit code
Requirments.txt
streamlit
geopandas
pandas
matplotlib
leafmap
gssapi
arcgis
packages.txt
libkrb5-dev
This is my first time importing arcgis. I am trying to get data from living atlas. Happy to answer follow up questions.