emonoda icon indicating copy to clipboard operation
emonoda copied to clipboard

ModuleNotFoundError: No module named 'Cython' на Python 3.13 с установленным модулем Cython

Open omgiafs opened this issue 5 months ago • 1 comments

Добрый день!

Во время установки модуля emonoda pip3 выдаёт ошибку ModuleNotFoundError: No module named 'Cython'.

Environment:

  • Debian 13
  • Python 3.13 venv
  • rTorrent 0.15.5
  • ruTorrent v5.2.10

Чистый venv на Python 3.13

11:32:57  [~]
user@server $ python3 -m venv ~/venv/emonoda
11:33:09  [~]
user@server $ source ~/venv/emonoda/bin/activate
(emonoda) 11:33:19  [~]
user@server $ pip --version
pip 25.1.1 from /home/user/venv/emonoda/lib/python3.13/site-packages/pip (python 3.13)

Ставим модуль Cython. Ставим emonoda - получаем ошибку ModuleNotFoundError: No module named 'Cython' Emonoda версии 2.1.33, на pypi.org это последняя вресия.

(emonoda) 11:33:43  [~]
user@server $ pip install --no-cache Cython
Collecting Cython
  Downloading cython-3.1.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (4.7 kB)
Downloading cython-3.1.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 10.1 MB/s eta 0:00:00
Installing collected packages: Cython
Successfully installed Cython-3.1.3
(emonoda) 11:33:58  [~]
user@server $ pip install --no-cache emonoda
Collecting emonoda
  Downloading emonoda-2.1.33.tar.gz (138 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Traceback (most recent call last):
        File "/home/user/venv/emonoda/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/home/user/venv/emonoda/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/user/venv/emonoda/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-z3oj11we/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-z3oj11we/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-z3oj11we/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 512, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-z3oj11we/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 28, 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.

omgiafs avatar Sep 14 '25 04:09 omgiafs

Привет. Может, в дебиане как-то иначе оно ставится? В арче, скажем, пакет называется cython. Я только что проверил - оно работает. PyPI пока не обновляется, попробуйте склонировать репозиторий и запустить python setup.py install --local, оно поставит его в локальный ~/.local и ~/.local/bin`. Сработает ли?

mdevaev avatar Oct 13 '25 02:10 mdevaev