Comments (4)
Show your code as is.
And, to investigate the reason why pycall cannot find python, show the value of the environment variable PATH, and try the same code with the environment variable PYCALL_DEBUG_FIND_LIBPYTHON=1
.
from pycall.rb.
I got the same error without adding PATH setting for Python environment.
ex.
set PATH=C:\Anaconda3;C:\Anaconda3\Library\mingw-w64\bin;C:\Anaconda3\Library\usr\bin;C:\Anaconda3\Library\bin;C:\Anaconda3\Scripts;%PATH%
If you use RubyInstaller2, you also need to set RUBY_DLL_PATH environment variable.
Without RUBY_DLL_PATH setting, I got 'DLL load failed' ... (PyCall::PyError) when I use scikit-learn, etc.
ex.
set RUBY_DLL_PATH=%PATH%
from pycall.rb.
@avigard Please re-open if you want to continue this issue.
from pycall.rb.
With: PYCALL_DEBUG_FIND_LIBPYTHON=1
Fast Debugger (ruby-debug-ide 0.7.0.beta6, debase 0.2.3.beta2, file filtering is supported) listens on 0.0.0.0:57273
DEBUG(find_libpython) find_libpython(nil)
DEBUG(find_libpython) investigate_python_config("python")
DEBUG(find_libpython) libs: ["python37", "python"]
DEBUG(find_libpython) libpaths: ["C:\Users\774782\AppData\Local\Programs\Python\Python37-32", "C:\Users\774782\AppData\Local\Programs\Python\Python37-32", "C:\Users\774782\AppData\Local\Programs\Python\Python37-32/lib"]
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/python37
DEBUG(find_libpython) Fiddle::DLError: Exec format error
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/python37
DEBUG(find_libpython) Fiddle::DLError: Exec format error
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/lib/python37
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/lib/python37.dll
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/python
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/python.dll
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/python
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/python.dll
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/lib/python
DEBUG(find_libpython) Unable to find C:\Users\774782\AppData\Local\Programs\Python\Python37-32/lib/python.dll
DEBUG(find_libpython) Fiddle::DLError: Exec format error
DEBUG(find_libpython) Fiddle::DLError: No such file or directory
Uncaught exception: PyCall::PythonNotFound
from pycall.rb.
Related Issues (20)
- PyCall::LibPythonFunctionNotFound (Unable to find the required symbol in libpython: _Py_NoneStruct) HOT 5
- _Py_NoneStruct (PyCall::LibPythonFunctionNotFound) HOT 1
- how to deploy to heroku? HOT 9
- import_module from other folder than lib? HOT 1
- Question about loading a subclass HOT 1
- exceptions not raised from within without_gvl block HOT 1
- pycall freezes and never resolves during a controller function HOT 1
- DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
- Catching python STDOUT
- Memory issue HOT 2
- Memory leak with numpy HOT 1
- Unable to find required symbol in libpython when using a conda env HOT 1
- call with docx module, GIL is released (the current Python thread state is NULL) HOT 1
- cannot move cursor
- Test failure on 3.12 HOT 2
- [BUG] pycall/pytypeobject_wrapper.rb:24: [BUG] Segmentation fault at 0x0000000000000010 HOT 4
- Problems to run PyCall in WSL2 HOT 2
- SEGV occurs in the finalizer
- Test failures on Ruby >= 3.3
- Not working after updating pycall to 1.5.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycall.rb.