pycall.rb icon indicating copy to clipboard operation
pycall.rb copied to clipboard

Calling Python functions from the Ruby language

Results 55 pycall.rb issues
Sort by recently updated
recently updated
newest added

Testing with Python 3.10.4, I get the following deprecation warnings when importing a python library with `PyCall.import_module`: ``` ..../.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/pycall-1.4.1/lib/pycall/python/investigator.py:4: DeprecationWarning: The distutils package is deprecated and slated for removal in...

I'm getting the following error the first time that `sklearn` is imported: ``` /Users/stephen/.rvm/rubies/ruby-2.6.2/bin/ruby: No such file or directory -- from multiprocessing.semaphore_tracker import main;main(27) (LoadError) ``` I'm not a python...

when I want to deploy to heroku the application always failed to build with this error message ``` PyCall::LibPythonFunctionNotFound: Unable to find the required symbol in libpython: _Py_NoneStruct ``` `heroku...

question

Tentative patch for issue #128. Some DecRefs may not be valid.

As stated in https://qiita.com/yagshi/items/e3865fae585c348c5bfc (thank you @yagshi), I experience memory leak with the following code: ``` require "pycall" cv2 = PyCall.import_module("cv2") 1000 times do img = cv2.imread("foo.jpg") puts img.shape end...

``` irb(main):001:0> require 'pycall/import' => true irb(main):002:0> include PyCall::Import => Object irb(main):003:0> pyimport :os DEBUG(find_libpython) find_libpython("C:\\Users\\60026865.ICU_DOMAIN\\AppData\\Local\\Programs\\Python\\Python38-32\\Lib") DEBUG(find_libpython) investigate_python_config("C:\\Users\\60026865.ICU_DOMAIN\\AppData\\Local\\Programs\\Python\\Python38-32\\Lib") Traceback (most recent call last): 8: from C:/Ruby25-x64/bin/irb.cmd:19:in `' 7: from (irb):3...

question
windows

Iterating the result of `Pandas.DataFrame.groupby` fails with `pandas>=1.1.0`. This failure seems to be caused by [`PrettyDict`](https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/printing.py#L544-L548) which is the alternative type of `dict` and added on `pandas==1.1.0`. The log shows...

bug