Giter VIP home page Giter VIP logo

Comments (4)

mrkn avatar mrkn commented on June 12, 2024

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.

golirev avatar golirev commented on June 12, 2024

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.

mrkn avatar mrkn commented on June 12, 2024

@avigard Please re-open if you want to continue this issue.

from pycall.rb.

wchinnapper avatar wchinnapper commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.