failing on OSError libgssapi_krb5.so: cannot open shared object file while installing using pip python 3.11

huangapple go评论70阅读模式
英文:

failing on OSError libgssapi_krb5.so: cannot open shared object file while installing using pip python 3.11

问题

我试图安装requests-kerberos包 pip install requests-kerberos,但在 OSError: ...:/libgssapi_krb5.so: cannot open shared object file: No such file or directory 处失败。

我在../python/lib/中有libgssapi_krb5.so。我尝试将../python/lib/添加到我的LD_LIBRARY_PATH,但没有成功。

我使用的是Python 3.11.1版本。

问题可能是什么?尽管LD_LIBRARY_PATH包含lib,但为什么找不到?

完整错误信息:

安装构建依赖项...完成
  正在运行命令以获取构建轮的要求
  追溯(最近的调用最早):
    文件 "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",行 353,在 <module>
      main()
    文件 "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",行 335,在 main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    文件 "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",行 118,在 get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 341,在 get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 323,在 _get_build_requires
      self.run_setup()
    文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 338,在 run_setup
      exec(code, locals())
    文件 "<string>", 行 206,在 <module>
    文件 "python3/3.11.1/lib/python3.11/ctypes/__init__.py",行 376,在 __init__
      self._handle = _dlopen(self._name, mode)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
  OSError: python3/3.11.1/lib64:python3/3.11.1/lib:python3/3.11.1/lib64:python3/3.11.1/lib:python3/3.11.1/lib:python3/3.11.1/lib64:/libgssapi_krb5.so: 无法打开共享对象文件:没有那个文件或目录
  错误:subprocess-exited-with-error

× 获取构建轮的要求未成功运行。
│ 退出代码:1
╰─> 请参阅上文的输出。

注意:此错误源自子进程,可能与pip无关。
完整命令:my_area/python_tst/my_py/bin/python3 my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcq6mx3_f
当前工作目录:/tmp/pip-install-l9aynml0/gssapi_40233975a0f24def9d5db604f4e4b0bd
获取构建轮的要求...错误
错误:subprocess-exited-with-error

× 获取构建轮的要求未成功运行。
│ 退出代码:1
╰─> 请参阅上文的输出。

提前感谢。

英文:

I'm trying to install requests-kerberos package pip install requests-kerberos, but failing on
OSError: ...:/libgssapi_krb5.so: cannot open shared object file: No such file or directory

I have libgssapi_krb5.so in my ../python/lib/. I have tried to add the ../python/lib/ to my LD_LIBRARY_PATH but no success.

I'm using python 3.11.1 version

what can be the issue ? and how come it could not found although LD_LIBRARY_PATH include the lib ?

full er

Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Traceback (most recent call last):
    File &quot;my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py&quot;, line 353, in &lt;module&gt;
      main()
    File &quot;my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py&quot;, line 335, in main
      json_out[&#39;return_val&#39;] = hook(**hook_input[&#39;kwargs&#39;])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File &quot;my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py&quot;, line 118, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File &quot;/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[&#39;wheel&#39;])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File &quot;/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 323, in _get_build_requires
      self.run_setup()
    File &quot;/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 338, in run_setup
      exec(code, locals())
    File &quot;&lt;string&gt;&quot;, line 206, in &lt;module&gt;
    File &quot;python3/3.11.1/lib/python3.11/ctypes/__init__.py&quot;, line 376, in __init__
      self._handle = _dlopen(self._name, mode)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
  OSError: python3/3.11.1/lib64:python3/3.11.1/lib:python3/3.11.1/lib64:python3/3.11.1/lib:python3/3.11.1/lib:python3/3.11.1/lib64:/libgssapi_krb5.so: cannot open shared object file: No such file or directory
  error: subprocess-exited-with-error
  
  &#215; Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─&gt; See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: my_area/python_tst/my_py/bin/python3 my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcq6mx3_f
  cwd: /tmp/pip-install-l9aynml0/gssapi_40233975a0f24def9d5db604f4e4b0bd
  Getting requirements to build wheel ... error
error: subprocess-exited-with-error

&#215; Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─&gt; See above for output.


Thanks in advance

答案1

得分: 0

关于我,这个错误是我在使用 csh xterm 时遇到的,当我切换到 bash xterm 时,一切都正常了!

英文:

As for me this error I got when I worked on csh xterm, when I moved to bash xterm everything worked!!!

huangapple
  • 本文由 发表于 2023年7月4日 22:57:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76613856.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定