Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install insightface by python-cinder #129

Open
HShan886 opened this issue Nov 21, 2023 · 2 comments
Open

Cannot install insightface by python-cinder #129

HShan886 opened this issue Nov 21, 2023 · 2 comments

Comments

@HShan886
Copy link

Hello
build python cinder version with nvcr.io/nvidia/pytorch:22.08-py3 container, then install insightface by pip in virtual environment. however, pip reports a error:

(cpython3.10-a3c6e07ed141-compat-2d3356be745c) root@SINIAN-01:/opt/insightface# python --version
Python 3.10.5+cinder

(cpython3.10-a3c6e07ed141-compat-2d3356be745c) root@SINIAN-01:/opt# pip install -U insightface
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting insightface
  Downloading insightface-0.7.3.tar.gz (439 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 439.5/439.5 kB 8.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
  ╰─> [30 lines of output]
      WARNING: pandoc not enabled
      Traceback (most recent call last):
        File "/opt/venv/cpython3.10-a3c6e07ed141-compat-2d3356be745c/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/venv/cpython3.10-a3c6e07ed141-compat-2d3356be745c/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/venv/cpython3.10-a3c6e07ed141-compat-2d3356be745c/lib/python3.10/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-z9mcptwz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 75, in <module>
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1008, in cythonize
          ctx = Context.from_options(c_options)
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 100, in from_options
          return cls(options.include_path, options.compiler_directives,
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 80, in __init__
          self.cython_scope = CythonScope.create_cython_scope(self)
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/Cython/Compiler/CythonScope.py", line 154, in create_cython_scope
          return CythonScope(context)
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/Cython/Compiler/CythonScope.py", line 17, in __init__
          ModuleScope.__init__(self, u'cython', None, None)
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/Cython/Compiler/Symtab.py", line 1324, in __init__
          self.process_include(Code.IncludeCode("Python.h", initial=True))
        File "/tmp/pip-build-env-z9mcptwz/overlay/lib/python3.10/site-packages/Cython/Compiler/Symtab.py", line 1493, in process_include
          key = inc.mainpiece()
      TypeError: mainpiece() takes exactly one argument (1152921504606846977 given)
      [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.

Thanks for any help

@tekknolagi
Copy link
Contributor

Hmmm

>>> hex(1152921504606846977)
'0x1000000000000001'
>>>

Looks like some nargsf issue

@HShan886
Copy link
Author

HShan886 commented Nov 22, 2023

Hmmm

>>> hex(1152921504606846977)
'0x1000000000000001'
>>>

Looks like some nargsf issue

original python-3.10.5 install insightface, it works correctly.
Maybe this is a bug of cinder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants