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

Unable to find required symbol in libpython when using a conda env #170

Open
hkf opened this issue Sep 2, 2023 · 1 comment
Open

Unable to find required symbol in libpython when using a conda env #170

hkf opened this issue Sep 2, 2023 · 1 comment
Assignees
Labels

Comments

@hkf
Copy link

hkf commented Sep 2, 2023

Looking at some code that used to work in earlier versions of conda and/or python, I get the error in the title using the test command that appears in the README. Thank you in advance for any direction!

PYCALL_DEBUG_FIND_LIBPYTHON=1 ruby -rpycall -ePyCall.builtins        1 cruby!?
DEBUG(find_libpython) find_libpython(nil)
DEBUG(find_libpython) investigate_python_config("python3")
DEBUG(find_libpython) Candidate: 
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) libpaths: ["/Users/harold.figueroa/opt/anaconda3/envs/conda_env/lib/python3.11/config-3.11-darwin", "/Users/harold.figueroa/opt/anaconda3/envs/conda_env/lib", "/Users/harold.figueroa/opt/anaconda3/envs/conda_env"]
DEBUG(find_libpython) candidate_names: ["libpython3.11.a", "libpython3.11.so", "libpython.so"]
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/lib/python3.11/config-3.11-darwin/libpython3.11.a
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/lib/python3.11/config-3.11-darwin/libpython3.11.so
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/lib/python3.11/config-3.11-darwin/libpython.so
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/lib/libpython3.11.a
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/lib/libpython3.11.so
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/lib/libpython.so
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/libpython3.11.a
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/libpython3.11.so
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: /Users/harold.figueroa/opt/anaconda3/envs/conda_env/libpython.so
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: libpython3.11.a
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: libpython3.11.so
DEBUG(find_libpython) Not found.
DEBUG(find_libpython) Candidate: libpython.so
DEBUG(find_libpython) Not found.
Traceback (most recent call last):
	5: from -e:1:in `<main>'
	4: from /Users/harold.figueroa/.rvm/gems/ruby-2.7.5/gems/pycall-1.4.2/lib/pycall.rb:14:in `builtins'
	3: from /Users/harold.figueroa/.rvm/gems/ruby-2.7.5/gems/pycall-1.4.2/lib/pycall/init.rb:16:in `const_missing'
	2: from /Users/harold.figueroa/.rvm/gems/ruby-2.7.5/gems/pycall-1.4.2/lib/pycall/init.rb:39:in `init'
	1: from /Users/harold.figueroa/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
/Users/harold.figueroa/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': Unable to find the required symbol in libpython: _Py_NoneStruct (PyCall::LibPythonFunctionNotFound)
@mrkn mrkn added the bug label Sep 9, 2023
@mrkn mrkn self-assigned this Sep 9, 2023
@piclez
Copy link

piclez commented Dec 19, 2023

I'm having the exact same issue reported by @hkf.

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

No branches or pull requests

3 participants