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

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

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,但为什么找不到?

完整错误信息:

  1. 安装构建依赖项...完成
  2. 正在运行命令以获取构建轮的要求
  3. 追溯(最近的调用最早):
  4. 文件 "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",行 353,在 <module>
  5. main()
  6. 文件 "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",行 335,在 main
  7. json_out['return_val'] = hook(**hook_input['kwargs'])
  8. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  9. 文件 "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
  10. return hook(config_settings)
  11. ^^^^^^^^^^^^^^^^^^^^^
  12. 文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 341,在 get_requires_for_build_wheel
  13. return self._get_build_requires(config_settings, requirements=['wheel'])
  14. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15. 文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 323,在 _get_build_requires
  16. self.run_setup()
  17. 文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 338,在 run_setup
  18. exec(code, locals())
  19. 文件 "<string>", 206,在 <module>
  20. 文件 "python3/3.11.1/lib/python3.11/ctypes/__init__.py",行 376,在 __init__
  21. self._handle = _dlopen(self._name, mode)
  22. ^^^^^^^^^^^^^^^^^^^^^^^^^
  23. 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: 无法打开共享对象文件:没有那个文件或目录
  24. 错误:subprocess-exited-with-error
  25. × 获取构建轮的要求未成功运行。
  26. 退出代码:1
  27. ╰─> 请参阅上文的输出。
  28. 注意:此错误源自子进程,可能与pip无关。
  29. 完整命令: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
  30. 当前工作目录:/tmp/pip-install-l9aynml0/gssapi_40233975a0f24def9d5db604f4e4b0bd
  31. 获取构建轮的要求...错误
  32. 错误:subprocess-exited-with-error
  33. × 获取构建轮的要求未成功运行。
  34. 退出代码:1
  35. ╰─> 请参阅上文的输出。

提前感谢。

英文:

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

  1. Installing build dependencies ... done
  2. Running command Getting requirements to build wheel
  3. Traceback (most recent call last):
  4. 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;
  5. main()
  6. 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
  7. json_out[&#39;return_val&#39;] = hook(**hook_input[&#39;kwargs&#39;])
  8. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  9. 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
  10. return hook(config_settings)
  11. ^^^^^^^^^^^^^^^^^^^^^
  12. 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
  13. return self._get_build_requires(config_settings, requirements=[&#39;wheel&#39;])
  14. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15. File &quot;/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 323, in _get_build_requires
  16. self.run_setup()
  17. File &quot;/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 338, in run_setup
  18. exec(code, locals())
  19. File &quot;&lt;string&gt;&quot;, line 206, in &lt;module&gt;
  20. File &quot;python3/3.11.1/lib/python3.11/ctypes/__init__.py&quot;, line 376, in __init__
  21. self._handle = _dlopen(self._name, mode)
  22. ^^^^^^^^^^^^^^^^^^^^^^^^^
  23. 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
  24. error: subprocess-exited-with-error
  25. &#215; Getting requirements to build wheel did not run successfully.
  26. exit code: 1
  27. ╰─&gt; See above for output.
  28. note: This error originates from a subprocess, and is likely not a problem with pip.
  29. 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
  30. cwd: /tmp/pip-install-l9aynml0/gssapi_40233975a0f24def9d5db604f4e4b0bd
  31. Getting requirements to build wheel ... error
  32. error: subprocess-exited-with-error
  33. &#215; Getting requirements to build wheel did not run successfully.
  34. exit code: 1
  35. ╰─&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:

确定