Skip to content

pip install not work #312

Open
Open
@dwk601

Description

@dwk601

Windows wsl2 Ubuntu evn

pip install -r requirements.txt
Collecting en-core-web-md@ https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.6.0/en_core_web_md-3.6.0-py3-none-any.whl#sha256=1618fc62e7aedc2b778caa3ea6e9c8280beac3b83fe7b93316cbb9e8f3abe7c5 (from -r requirements.txt (line 17))
Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.6.0/en_core_web_md-3.6.0-py3-none-any.whl (42.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.8/42.8 MB 13.5 MB/s eta 0:00:00
Collecting en-core-web-sm@ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.6.0/en_core_web_sm-3.6.0-py3-none-any.whl#sha256=83276fc78a70045627144786b52e1f2728ad5e29e5e43916ec37ea9c26a11212 (from -r requirements.txt (line 18))
Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.6.0/en_core_web_sm-3.6.0-py3-none-any.whl (12.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.8/12.8 MB 17.9 MB/s eta 0:00:00
Collecting altair==5.0.1 (from -r requirements.txt (line 1))
Using cached altair-5.0.1-py3-none-any.whl.metadata (8.5 kB)
Collecting attrs==23.1.0 (from -r requirements.txt (line 2))
Using cached attrs-23.1.0-py3-none-any.whl.metadata (11 kB)
Collecting beautifulsoup4==4.12.2 (from -r requirements.txt (line 3))
Using cached beautifulsoup4-4.12.2-py3-none-any.whl.metadata (3.6 kB)
Collecting blinker==1.6.2 (from -r requirements.txt (line 4))
Using cached blinker-1.6.2-py3-none-any.whl.metadata (2.0 kB)
Collecting blis==0.7.9 (from -r requirements.txt (line 5))
Using cached blis-0.7.9.tar.gz (2.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting cachetools==5.3.1 (from -r requirements.txt (line 6))
Using cached cachetools-5.3.1-py3-none-any.whl.metadata (5.2 kB)
Collecting catalogue==2.0.8 (from -r requirements.txt (line 7))
Using cached catalogue-2.0.8-py3-none-any.whl.metadata (14 kB)
Collecting certifi==2024.7.4 (from -r requirements.txt (line 8))
Using cached certifi-2024.7.4-py3-none-any.whl.metadata (2.2 kB)
Collecting charset-normalizer==3.2.0 (from -r requirements.txt (line 9))
Using cached charset_normalizer-3.2.0-py3-none-any.whl.metadata (31 kB)
Collecting click==8.1.5 (from -r requirements.txt (line 10))
Using cached click-8.1.5-py3-none-any.whl.metadata (3.0 kB)
Collecting confection==0.1.0 (from -r requirements.txt (line 11))
Using cached confection-0.1.0-py3-none-any.whl.metadata (19 kB)
Collecting contourpy==1.1.0 (from -r requirements.txt (line 12))
Using cached contourpy-1.1.0.tar.gz (13.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting cycler==0.11.0 (from -r requirements.txt (line 13))
Using cached cycler-0.11.0-py3-none-any.whl.metadata (785 bytes)
Collecting cymem==2.0.7 (from -r requirements.txt (line 14))
Using cached cymem-2.0.7.tar.gz (9.9 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting cytoolz==0.12.1 (from -r requirements.txt (line 15))
Using cached cytoolz-0.12.1.tar.gz (503 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
╰─> [86 lines of output]

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef readonly object func
      cdef readonly tuple args
      cdef readonly dict keywords
      cdef public object __doc__
      cdef public object __name__
      cdef public object __module__
                         ^
  ------------------------------------------------------------
  
  cytoolz/functoolz.pxd:18:23: '__module__' redeclared
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef readonly object func
      cdef readonly tuple args
      cdef readonly dict keywords
      cdef public object __doc__
      cdef public object __name__
      cdef public object __module__
           ^
  ------------------------------------------------------------
  
  cytoolz/functoolz.pxd:18:9: Compiler crash in AnalyseDeclarationsTransform
  
  File 'ModuleNode.py', line 203, in analyse_declarations: ModuleNode(functoolz.pxd:1:0,
      full_module_name = 'cytoolz.functoolz',
      is_pxd = True)
  File 'Nodes.py', line 393, in analyse_declarations: StatListNode(functoolz.pxd:1:0)
  File 'Nodes.py', line 5509, in analyse_declarations: CClassDefNode(functoolz.pxd:10:5,
      as_name = 'curry',
      class_name = 'curry',
      in_pxd = True,
      module_name = '',
      punycode_class_name = 'curry',
      visibility = 'private')
  File 'Nodes.py', line 393, in analyse_declarations: StatListNode(functoolz.pxd:11:4)
  File 'Nodes.py', line 1546, in analyse_declarations: CVarDefNode(functoolz.pxd:18:9,
      in_pxd = True,
      modifiers = [...]/0,
      visibility = 'public')
  
  Compiler crash traceback from this point on:
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 1546, in analyse_declarations
      self.entry = dest_scope.declare_var(
                   ^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/Cython/Compiler/Symtab.py", line 2413, in declare_var
      entry = self.declare(name, cname, type, pos, visibility)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/Cython/Compiler/Symtab.py", line 551, in declare
      entries[name].already_declared_here()
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/Cython/Compiler/Symtab.py", line 263, in already_declared_here
      error(self.pos, "Previous declaration is here")
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/Cython/Compiler/Errors.py", line 178, in error
      raise InternalError(message)
  InternalError: Internal compiler error: Previous declaration is here
  [1/5] Cythonizing cytoolz/dicttoolz.pyx
  [2/5] Cythonizing cytoolz/functoolz.pyx
  Traceback (most recent call last):
    File "/home/linux_dwk/code/Resume-Matcher/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/home/linux_dwk/code/Resume-Matcher/env/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/linux_dwk/code/Resume-Matcher/env/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-zy3utmo_/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
      exec(code, locals())
    File "<string>", line 85, in <module>
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-zy3utmo_/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: cytoolz/functoolz.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.

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