App deployment failed - issue with library youtokentome>=1.0.5 - cython

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…

Please help.

1 Like

Hi @Dr_Anoop, welcome to the Streamlit community!

Can you post the code repo you are deploying from?

Best,
Randy

@randyzwitch Thank you so much for your reply. The code can be accessed from the URL - GitHub - anoop-vs/speaker-diarization: Speaker Diarization Demo

I am also facing an issue with the permission for creating files/folders in streamlit. It would be great if you check the same as well.

Your help is much appreciated.

I’ll take a look at it, but in the meantime, you almost certainly shouldn’t be using this version of session state:

This was from prior to having an officially supported solution, and using this will likely cause more issues than it solves.

Best,
Randy

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]

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