I was trying to deploy an app to Streamlit cloud but getting the following error:
Collecting youtokentome>=1.0.5
Downloading youtokentome-1.0.6.tar.gz (86 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.7/86.7 KB 176.5 MB/s eta 0:00:00[2022-06-04 18:10:59.459950]
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
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-l5rmqfka/youtokentome_3617ac5910c343b488b17ff65bc481b2/setup.py", line 5, in <module>
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
[end of output]
I have tried adding cython in the requirements.txt file as well but no luck…
I get exactly the same error. Could anyone solve it? The code works on my machine and even though I specified exact packages in the requirements.txt as on my machine, the cloud version of the app returns this error:
Collecting youtokentome==1.0.6
Downloading youtokentome-1.0.6.tar.gz (86 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.7/86.7 KB 264.1 MB/s eta 0:00:00[2022-08-05 07:28:37.360629]
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
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-djcqfp_n/youtokentome_54e416c2c89e481ba25c77a262bfafba/setup.py", line 5, in <module>
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
[end of output]