Issue with Pyjnius dependency installation

Hi,

I’m getting following issue when I tried to deploy my app:

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

Using standard pip install.
Collecting attr==0.3.2 (from -r /mount/src/chssy/src/requirements.txt (line 1))
Downloading attr-0.3.2-py2.py3-none-any.whl.metadata (1.2 kB)
Collecting colorama==0.4.6 (from -r /mount/src/chssy/src/requirements.txt (line 2))
Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting ConfigParser==7.1.0 (from -r /mount/src/chssy/src/requirements.txt (line 3))
Downloading configparser-7.1.0-py3-none-any.whl.metadata (5.4 kB)
Collecting cryptography==43.0.3 (from -r /mount/src/chssy/src/requirements.txt (line 4))
Downloading cryptography-43.0.3-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.4 kB)
Collecting docutils==0.21.2 (from -r /mount/src/chssy/src/requirements.txt (line 5))
Downloading docutils-0.21.2-py3-none-any.whl.metadata (2.8 kB)
Collecting filelock==3.16.1 (from -r /mount/src/chssy/src/requirements.txt (line 6))
Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Collecting HTMLParser==0.0.2 (from -r /mount/src/chssy/src/requirements.txt (line 7))
Downloading HTMLParser-0.0.2.tar.gz (6.0 kB)
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 ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Collecting ipython==8.12.3 (from -r /mount/src/chssy/src/requirements.txt (line 8))
Downloading ipython-8.12.3-py3-none-any.whl.metadata (5.7 kB)
Collecting ipywidgets==8.1.5 (from -r /mount/src/chssy/src/requirements.txt (line 9))
Downloading ipywidgets-8.1.5-py3-none-any.whl.metadata (2.3 kB)
Collecting jnius==1.1.0 (from -r /mount/src/chssy/src/requirements.txt (line 10))
Downloading jnius-1.1.0.tar.gz (28 kB)
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]

  You need Cython to compile Pyjnius.
  
  
  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-vk320exf/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-vk320exf/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-vk320exf/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 516, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-vk320exf/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 53, in <module>
  ModuleNotFoundError: No module named 'Cython'
  [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.2
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[23:36:35] :exclamation: installer returned a non-zero exit code
[23:36:35] :exclamation: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

Any insights to resolve this issue would be very helpful.

I tried to include Cython in the requirements.txt, still getting following error:

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

Using standard pip install.
Collecting attr==0.3.2 (from -r /mount/src/chssy/src/requirements.txt (line 1))
Downloading attr-0.3.2-py2.py3-none-any.whl.metadata (1.2 kB)
Collecting colorama==0.4.6 (from -r /mount/src/chssy/src/requirements.txt (line 2))
Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting ConfigParser==7.1.0 (from -r /mount/src/chssy/src/requirements.txt (line 3))
Downloading configparser-7.1.0-py3-none-any.whl.metadata (5.4 kB)
Collecting cryptography==43.0.3 (from -r /mount/src/chssy/src/requirements.txt (line 4))
Downloading cryptography-43.0.3-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.4 kB)
Collecting docutils==0.21.2 (from -r /mount/src/chssy/src/requirements.txt (line 5))
Downloading docutils-0.21.2-py3-none-any.whl.metadata (2.8 kB)
Collecting filelock==3.16.1 (from -r /mount/src/chssy/src/requirements.txt (line 6))
Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Collecting HTMLParser==0.0.2 (from -r /mount/src/chssy/src/requirements.txt (line 7))
Downloading HTMLParser-0.0.2.tar.gz (6.0 kB)
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 ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Collecting Cython==3.0.10 (from -r /mount/src/chssy/src/requirements.txt (line 8))
Downloading Cython-3.0.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
Collecting ipython==8.12.3 (from -r /mount/src/chssy/src/requirements.txt (line 9))
Downloading ipython-8.12.3-py3-none-any.whl.metadata (5.7 kB)
Collecting ipywidgets==8.1.5 (from -r /mount/src/chssy/src/requirements.txt (line 10))
Downloading ipywidgets-8.1.5-py3-none-any.whl.metadata (2.3 kB)
Collecting jnius==1.1.0 (from -r /mount/src/chssy/src/requirements.txt (line 11))
Downloading jnius-1.1.0.tar.gz (28 kB)
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]

  You need Cython to compile Pyjnius.
  
  
  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-_ry2c7ou/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-_ry2c7ou/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-_ry2c7ou/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 516, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-_ry2c7ou/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 53, in <module>
  ModuleNotFoundError: No module named 'Cython'
  [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.2
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[23:47:52] :exclamation: installer returned a non-zero exit code
[23:47:52] :exclamation: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

My requirements
attr==0.3.2

colorama==0.4.6

ConfigParser==7.1.0

cryptography==43.0.3

docutils==0.21.2

filelock==3.16.1

HTMLParser==0.0.2

Cython==0.29.37

ipython==8.12.3

ipywidgets==8.1.5

jnius==1.1.0

keyring==25.5.0

openai==1.52.2

Pillow==11.0.0

protobuf==5.28.3

pyOpenSSL==24.2.1

PyPDF2==3.0.1

python-dotenv==1.0.1

python_docx==1.1.2

redis==5.2.0

reportlab==4.2.5

Sphinx==8.1.3

tenacity==8.5.0

thread==2.0.5

urllib3_secure_extra==0.1.0

xmlrpclib==1.0.1

streamlit==1.39.0