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.

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