Metadata error in streamlit cloud

Error installing requirements.

Click “Manage App” and consult the terminal for more details.

If you still have questions, leave a message in our forums and we will get back to you ASAP.

[     UTC     ] Logs for heart-disease-prediction-app-8u5ttvuxe34ng6bbhvmkly.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[16:42:14] 🚀 Starting up repository: 'heart-disease-prediction-app', branch: 'main', main module: 'heart_disease_app.py'
[16:42:14] 🐙 Cloning repository...
[16:42:16] 🐙 Cloning into '/mount/src/heart-disease-prediction-app'...
Warning: Permanently added the ED25519 host key for IP address '192.30.255.112' to the list of known hosts.
[16:42:16] 🐙 Cloned repository!
[16:42:16] 🐙 Pulling code changes from Github...
[16:42:17] 📦 Processing dependencies...

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

Collecting altair
  Downloading altair-5.2.0-py3-none-any.whl (996 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 996.9/996.9 KB 25.8 MB/s eta 0:00:00[2024-03-23 16:42:18.110823] 
Collecting anaconda-client
  Downloading anaconda-client-1.2.2.tar.gz (64 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.8/64.8 KB 112.8 MB/s eta 0:00:00[2024-03-23 16:42:18.156432] 
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting appdirs==1.4.4
  Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting asttokens==2.4.1
  Downloading asttokens-2.4.1-py2.py3-none-any.whl (27 kB)
Collecting atomicwrites==1.4.0
  Downloading atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
Collecting backports.weakref==1.0.post1
  Downloading backports.weakref-1.0.post1-py2.py3-none-any.whl (5.2 kB)
Collecting blinker==1.7.0
  Downloading blinker-1.7.0-py3-none-any.whl (13 kB)
Collecting brotlipy==0.7.0
  Downloading brotlipy-0.7.0-cp39-cp39-manylinux1_x86_64.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 194.1 MB/s eta 0:00:00[2024-03-23 16:42:18.794371] 
Collecting cachetools==5.3.3
  Downloading cachetools-5.3.3-py3-none-any.whl (9.3 kB)
Collecting clyent
  Downloading clyent-1.2.1.tar.gz (20 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting comm==0.2.0
  Downloading comm-0.2.0-py3-none-any.whl (7.0 kB)
Collecting constantly==15.1.0
  Downloading constantly-15.1.0-py2.py3-none-any.whl (7.9 kB)
Collecting cssselect==1.1.0
  Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting daal4py==2023.1.1
  Downloading daal4py-2023.1.1-py39-none-manylinux1_x86_64.whl (13.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.9/13.9 MB 182.8 MB/s eta 0:00:00[2024-03-23 16:42:19.506128] 
Collecting datashape
  Downloading datashape-0.5.2.tar.gz (76 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 76.5/76.5 KB 98.2 MB/s eta 0:00:00[2024-03-23 16:42:19.561990] 
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting debugpy==1.8.0
  Downloading debugpy-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 250.9 MB/s eta 0:00:00[2024-03-23 16:42:20.057268] 
Collecting decorator==5.1.1
  Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting et-xmlfile==1.1.0
  Downloading et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Collecting executing==2.0.1
  Downloading executing-2.0.1-py2.py3-none-any.whl (24 kB)
Collecting fonttools==4.25.0
  Downloading fonttools-4.25.0-py3-none-any.whl (867 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 867.9/867.9 KB 234.5 MB/s eta 0:00:00[2024-03-23 16:42:20.493197] 
Collecting gitdb==4.0.11
  Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 KB 156.9 MB/s eta 0:00:00[2024-03-23 16:42:20.535604] 
Collecting GitPython==3.1.42
  Downloading GitPython-3.1.42-py3-none-any.whl (195 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 195.4/195.4 KB 179.8 MB/s eta 0:00:00[2024-03-23 16:42:20.614280] 
Collecting inflection==0.5.1
  Downloading inflection-0.5.1-py2.py3-none-any.whl (9.5 kB)
Collecting ipykernel==6.27.1
  Downloading ipykernel-6.27.1-py3-none-any.whl (114 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.6/114.6 KB 99.9 MB/s eta 0:00:00[2024-03-23 16:42:20.830951] 
Collecting ipython==8.18.1
  Downloading ipython-8.18.1-py3-none-any.whl (808 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 808.2/808.2 KB 180.1 MB/s eta 0:00:00[2024-03-23 16:42:21.031465] 
Collecting jedi==0.19.1
  Downloading jedi-0.19.1-py2.py3-none-any.whl (1.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 91.7 MB/s eta 0:00:00
Collecting jsonpointer==2.1
  Downloading jsonpointer-2.1-py2.py3-none-any.whl (7.4 kB)
Collecting jupyter_client==8.6.0
  Downloading jupyter_client-8.6.0-py3-none-any.whl (105 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 105.9/105.9 KB 61.8 MB/s eta 0:00:00[2024-03-23 16:42:21.362325] 
Collecting jupyter_core==5.5.1
  Downloading jupyter_core-5.5.1-py3-none-any.whl (28 kB)
Collecting matplotlib-inline==0.1.6
  Downloading matplotlib_inline-0.1.6-py3-none-any.whl (9.4 kB)
Collecting mkl-fft==1.3.6
  Downloading mkl_fft-1.3.6-58-cp39-cp39-manylinux2014_x86_64.whl (223 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 223.6/223.6 KB 261.7 MB/s eta 0:00:00[2024-03-23 16:42:21.523617] 
Collecting mkl-service==2.4.0
  Downloading mkl_service-2.4.0-35-cp39-cp39-manylinux2014_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.7/56.7 KB 101.3 MB/s eta 0:00:00[2024-03-23 16:42:21.568909] 
Collecting mpmath==1.2.1
  Downloading mpmath-1.2.1-py3-none-any.whl (532 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 532.6/532.6 KB 148.5 MB/s eta 0:00:00[2024-03-23 16:42:21.620134] 
Collecting munkres==1.1.4
  Downloading munkres-1.1.4-py2.py3-none-any.whl (7.0 kB)
Collecting mypy-extensions==0.4.3
  Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting nest-asyncio==1.5.8
  Downloading nest_asyncio-1.5.8-py3-none-any.whl (5.3 kB)
Collecting openpyxl==3.0.10
  Downloading openpyxl-3.0.10-py2.py3-none-any.whl (242 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 242.1/242.1 KB 202.2 MB/s eta 0:00:00[2024-03-23 16:42:21.804339] 
Collecting parso==0.8.3
  Downloading parso-0.8.3-py2.py3-none-any.whl (100 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.8/100.8 KB 236.9 MB/s eta 0:00:00[2024-03-23 16:42:21.851326] 
Collecting patsy==0.5.3
  Downloading patsy-0.5.3-py2.py3-none-any.whl (233 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 233.8/233.8 KB 237.8 MB/s eta 0:00:00[2024-03-23 16:42:21.894185] 
Collecting pep8==1.7.1
  Downloading pep8-1.7.1-py2.py3-none-any.whl (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.5/41.5 KB 115.9 MB/s eta 0:00:00[2024-03-23 16:42:21.946728] 
Collecting platformdirs==4.1.0
  Downloading platformdirs-4.1.0-py3-none-any.whl (17 kB)
Collecting ply==3.11
  Downloading ply-3.11-py2.py3-none-any.whl (49 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.6/49.6 KB 162.3 MB/s eta 0:00:00[2024-03-23 16:42:22.031483] 
Collecting prompt-toolkit==3.0.43
  Downloading prompt_toolkit-3.0.43-py3-none-any.whl (386 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 386.1/386.1 KB 191.9 MB/s eta 0:00:00[2024-03-23 16:42:22.123316] 
Collecting protobuf==4.25.3
  Downloading protobuf-4.25.3-cp37-abi3-manylinux2014_x86_64.whl (294 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.6/294.6 KB 123.9 MB/s eta 0:00:00[2024-03-23 16:42:22.559444] 
Collecting psutil==5.9.7
  Downloading psutil-5.9.7-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (285 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 285.5/285.5 KB 218.2 MB/s eta 0:00:00[2024-03-23 16:42:22.840675] 
Collecting ptyprocess==0.7.0
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting pure-eval==0.2.2
  Downloading pure_eval-0.2.2-py3-none-any.whl (11 kB)
Collecting pyarrow==11.0.0
  Downloading pyarrow-11.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 34.9/34.9 MB 239.7 MB/s eta 0:00:00[2024-03-23 16:42:23.278483] 
Collecting pyasn1-modules==0.2.8
  Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 KB 159.7 MB/s eta 0:00:00[2024-03-23 16:42:23.375141] 
Collecting pycurl==7.45.2
  Downloading pycurl-7.45.2.tar.gz (234 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 234.2/234.2 KB 192.8 MB/s eta 0:00:00[2024-03-23 16:42:23.453954] 
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Traceback (most recent call last):
        File "/tmp/pip-install-xwd77a09/pycurl_d28ac7f77af94af1acd9f4641554e14c/setup.py", line 229, in configure_unix
          p = subprocess.Popen((self.curl_config(), '--version'),
        File "/usr/local/lib/python3.9/subprocess.py", line 951, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/usr/local/lib/python3.9/subprocess.py", line 1837, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'curl-config'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-xwd77a09/pycurl_d28ac7f77af94af1acd9f4641554e14c/setup.py", line 970, in <module>
          ext = get_extension(sys.argv, split_extension_source=split_extension_source)
        File "/tmp/pip-install-xwd77a09/pycurl_d28ac7f77af94af1acd9f4641554e14c/setup.py", line 634, in get_extension
          ext_config = ExtensionConfiguration(argv)
        File "/tmp/pip-install-xwd77a09/pycurl_d28ac7f77af94af1acd9f4641554e14c/setup.py", line 93, in __init__
          self.configure()
        File "/tmp/pip-install-xwd77a09/pycurl_d28ac7f77af94af1acd9f4641554e14c/setup.py", line 234, in configure_unix
          raise ConfigurationError(msg)
      __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details

Would pycurl==7.45.3 work for you? It is way easier to install.

no its not working for me

Hey @Vikas_Yadav . I have came across your GitHub repo. Presently you are using following requirements.txt :-

numpy
pandas
streamlit 
openpyxl
xlsxwriter

But your app.py using the following dependencies:-

streamlit
numpy
joblib
pandas

So just update your requirements.txt with updated dependencies which I had mentioned above. Don’t forget to reboot the application after updating the dependencies file.

Hope it works !!!

Happy Streamlit-ing :balloon:

In which way is it not working?

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