Skip to content

Build fails on Linux (Debian Testing) #21

Description

@tcrass

Hi there,

just tried to build MISST V3.1.0 on an up-to-date Debian Testing (to this date: aka Trixie) installation, which uses python 3.13 by default, following the instructions from https://github.com/Frikallo/MISST/#manual-installation.

First two remarks regarding the instuctions (step 3):

  1. It says that the commands should be run from the MISST directory. This is somewhat misleading since the directory containing the requirements.txt file is the archive's root directory MISST-x.y.z, of which MISST is a sub-directory. So step 3 should rather be something along the lines of "Open the command prompt from the MISST-x.y.z directory [...]".
  2. After creation, the venv should also be activated prior to calling pip install: $ source venv/bin/activate.

Unfortunately, the install command fails for me with the following output:

Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting antlr4-python3-runtime==4.9.3 (from -r requirements.txt (line 1))
  Using cached antlr4_python3_runtime-4.9.3-py3-none-any.whl
Collecting beautifulsoup4==4.12.2 (from -r requirements.txt (line 2))
  Downloading beautifulsoup4-4.12.2-py3-none-any.whl.metadata (3.6 kB)
Collecting certifi==2023.5.7 (from -r requirements.txt (line 3))
  Downloading certifi-2023.5.7-py3-none-any.whl.metadata (2.2 kB)
Collecting cffi==1.15.1 (from -r requirements.txt (line 4))
  Downloading cffi-1.15.1.tar.gz (508 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting charset-normalizer==3.1.0 (from -r requirements.txt (line 5))
  Downloading charset_normalizer-3.1.0-py3-none-any.whl.metadata (30 kB)
Collecting cloudpickle==2.2.1 (from -r requirements.txt (line 6))
  Downloading cloudpickle-2.2.1-py3-none-any.whl.metadata (6.9 kB)
Collecting colorama==0.4.6 (from -r requirements.txt (line 7))
  Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting customtkinter==5.1.2 (from -r requirements.txt (line 8))
  Downloading customtkinter-5.1.2-py3-none-any.whl.metadata (691 bytes)
Collecting Cython==0.29.36 (from -r requirements.txt (line 9))
  Downloading Cython-0.29.36-py2.py3-none-any.whl.metadata (3.1 kB)
Collecting darkdetect==0.8.0 (from -r requirements.txt (line 10))
  Downloading darkdetect-0.8.0-py3-none-any.whl.metadata (3.6 kB)
Collecting demucs==4.0.0 (from -r requirements.txt (line 11))
  Downloading demucs-4.0.0.tar.gz (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 5.1 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting diffq==0.2.4 (from -r requirements.txt (line 12))
  Downloading diffq-0.2.4.tar.gz (157 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting dora-search==0.1.12 (from -r requirements.txt (line 13))
  Using cached dora_search-0.1.12-py3-none-any.whl
Collecting einops==0.6.1 (from -r requirements.txt (line 14))
  Downloading einops-0.6.1-py3-none-any.whl.metadata (12 kB)
Collecting filelock==3.12.2 (from -r requirements.txt (line 15))
  Downloading filelock-3.12.2-py3-none-any.whl.metadata (2.7 kB)
Collecting future==0.18.3 (from -r requirements.txt (line 16))
  Downloading future-0.18.3.tar.gz (840 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 840.9/840.9 kB 11.1 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting gevent==22.10.2 (from -r requirements.txt (line 17))
  Downloading gevent-22.10.2.tar.gz (6.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 12.4 MB/s eta 0:00:00
  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
  ╰─> [57 lines of output]
      Compiling src/gevent/resolver/cares.pyx because it changed.
      [1/1] Cythonizing src/gevent/resolver/cares.pyx
      performance hint: src/gevent/libev/corecext.pyx:1339:0: Exception check on '_syserr_cb' will always require the GIL to be acquired.
      Possible solutions:
          1. Declare '_syserr_cb' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
          2. Use an 'int' return type on '_syserr_cb' to allow an error code to be returned.
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      cdef tuple integer_types
      
      if sys.version_info[0] >= 3:
          integer_types = int,
      else:
          integer_types = (int, long)
                                ^
      ------------------------------------------------------------
      
      src/gevent/libev/corecext.pyx:60:26: undeclared name not builtin: long
      Compiling src/gevent/libev/corecext.pyx because it changed.
      [1/1] Cythonizing src/gevent/libev/corecext.pyx
      Traceback (most recent call last):
        File "/home/tcrass/tmp/misst/MISST-3.1.0/.venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/home/tcrass/tmp/misst/MISST-3.1.0/.venv/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/tcrass/tmp/misst/MISST-3.1.0/.venv/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-9u_4d9lq/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-9u_4d9lq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-9u_4d9lq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 61, in <module>
        File "/tmp/pip-install-vxag2jda/gevent_af228cb52bd34071836f3af4a2523809/_setuputils.py", line 237, in cythonize1
          new_ext = cythonize(
                    ~~~~~~~~~^
              [ext],
              ^^^^^^
          ...<46 lines>...
              # cache="build/cycache",
              ^^^^^^^^^^^^^^^^^^^^^^^^
          )[0]
          ^
        File "/tmp/pip-build-env-9u_4d9lq/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1145, in cythonize
          cythonize_one(*args)
          ~~~~~~~~~~~~~^^^^^^^
        File "/tmp/pip-build-env-9u_4d9lq/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1289, in cythonize_one
          raise CompileError(None, pyx_file)
      Cython.Compiler.Errors.CompileError: src/gevent/libev/corecext.pyx
      [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.

Cheers -- tcrass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions