==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_dbc75dfb-10c0-4c6d-a94f-597687efa924]...done ==> Making package: ruby-pycall 1.5.2-1.1 (Fri Aug 9 21:11:32 2024) ==> Retrieving sources... -> Cloning pycall.rb git repo... Cloning into bare repository '/home/alhp/workspace/build/x86-64-v3/ruby-pycall-1.5.2-1/pycall.rb'... ==> Validating source files with sha512sums... pycall.rb ... Skipped ==> Making package: ruby-pycall 1.5.2-1.1 (Fri Aug 9 21:11:35 2024) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... warning: dependency cycle detected: warning: rubygems will be installed before its ruby dependency Package (6) New Version Net Change core/expat 2.6.2-1 0.41 MiB extra/libyaml 0.2.5-3 0.18 MiB core/mpdecimal 4.0.0-2 0.32 MiB extra/rubygems 3.4.19-1 2.26 MiB core/python 3.12.4-1 70.24 MiB extra/ruby 3.2.4-1 16.12 MiB Total Installed Size: 89.54 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libyaml... installing rubygems... installing ruby... Optional dependencies for ruby tk: for Ruby/TK ruby-docs: Documentation for Ruby ruby-default-gems: Default gems which are part of Ruby StdLib ruby-bundled-gems: Bundled gems which are part of Ruby StdLib ruby-stdlib: Full Ruby StdLib including default gems, bundled gems and tools installing expat... installing mpdecimal... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] xz: for lzma [installed] tk: for tkinter ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Package (26) New Version Net Change extra/blas 3.12.0-5 0.65 MiB extra/cblas 3.12.0-5 0.34 MiB extra/lapack 3.12.0-5 7.48 MiB extra/perl-error 0.17029-6 0.04 MiB extra/perl-mailtools 2.21-8 0.10 MiB extra/perl-timedate 2.33-6 0.08 MiB extra/ruby-byebug 11.1.3-3 0.73 MiB extra/ruby-coderay 1.1.3-4 0.52 MiB extra/ruby-diff-lcs 1.5.0-2 0.32 MiB extra/ruby-erb 4.0.4-4 0.09 MiB extra/ruby-method_source 1.0.0-3 0.06 MiB extra/ruby-power_assert 2.0.3-3 0.09 MiB extra/ruby-rdoc 6.5.1.1-2 2.82 MiB extra/ruby-rspec-core 3.12.2-3 1.27 MiB extra/ruby-rspec-expectations 3.12.3-2 0.77 MiB extra/ruby-rspec-mocks 3.12.6-2 0.71 MiB extra/ruby-rspec-support 3.12.1-2 0.23 MiB extra/git 2.46.0-1 28.04 MiB extra/python-numpy 2.0.1-1 47.29 MiB extra/ruby-bundler 2.5.11-2 1.58 MiB extra/ruby-pry 0.14.2-3 1.10 MiB extra/ruby-pry-byebug 3.10.1-3 0.09 MiB extra/ruby-rake 13.0.6-3 0.26 MiB extra/ruby-rake-compiler 1.2.5-2 0.23 MiB extra/ruby-rspec 3.12.0-2 0.01 MiB extra/ruby-test-unit 3.6.1-3 0.48 MiB Total Installed Size: 95.37 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui openssh: ssh transport and crypto perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing ruby-bundler... installing ruby-coderay... installing ruby-method_source... installing ruby-pry... installing ruby-byebug... installing ruby-pry-byebug... installing ruby-rake... installing ruby-rake-compiler... installing ruby-erb... installing ruby-rdoc... installing ruby-rspec-support... installing ruby-rspec-core... installing ruby-diff-lcs... installing ruby-rspec-expectations... installing ruby-rspec-mocks... installing ruby-rspec... installing ruby-power_assert... installing ruby-test-unit... installing blas... installing cblas... installing lapack... installing python-numpy... Optional dependencies for python-numpy blas-openblas: faster linear algebra :: Running post-transaction hooks... (1/1) Warn about old perl modules ==> Retrieving sources... ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Creating working copy of pycall.rb git repo... Cloning into 'pycall.rb'... done. Switched to a new branch 'makepkg' ==> Starting prepare()... ==> Starting build()... pycall 1.5.2 built to pkg/pycall-1.5.2.gem. /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/.github/dependabot.yml /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/.github/workflows/ci.yml /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/.github/workflows/windows.yml /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/.gitignore /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/.rspec /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/CHANGES.md /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/Gemfile /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/LICENSE.txt /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/README.md /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/Rakefile /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/bin/console /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/bin/guard /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/bin/rspec /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/bin/runner /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/bin/setup /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ci/travis_before_script.sh /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ci/travis_install.sh /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ci/travis_retry.sh /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/config/Guardfile /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/docker/Dockerfile /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/docker/Gemfile /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/docker/README.md /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/classifier_comparison.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/datascience_rb_20170519.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/hist.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/notebooks/classifier_comparison.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/notebooks/forest_importances.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/notebooks/iruby_integration.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/notebooks/leaflet.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/notebooks/lorenz_attractor.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/notebooks/polar_axes.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/notebooks/sum_benchmarking.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/notebooks/xkcd_style.ipynb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/plot_forest_importances_faces.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/examples/sum_benchmarking.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/extconf.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/gc.c /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/libpython.c /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/pycall.c /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/pycall.h /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/pycall_internal.h /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/range.c /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/ruby_wrapper.c /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall/thread.c /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/images/pycallrb_logo.png /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/images/pycallrb_logo_200.png /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/dict.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/error.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/gc_guard.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/import.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/init.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/iruby_helper.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/iterable_wrapper.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/libpython.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/libpython/finder.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/libpython/pyobject_struct.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/libpython/pytypeobject_struct.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/list.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/pretty_print.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/pyerror.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/pymodule_wrapper.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/pyobject_wrapper.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/python/PyCall/__init__.py /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/python/PyCall/six.py /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/python/investigator.py /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/pytypeobject_wrapper.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/set.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/slice.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/version.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/lib/pycall/wrapper_object_cache.rb /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/pycall.gemspec /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/tasks/docker.rake /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/tasks/pycall.rake Building native extensions. This could take a while... current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall ["/usr/bin/ruby", "extconf.rb"] checking for RTYPEDDATA_GET_DATA()... no creating Makefile current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall ["make", "DESTDIR=", "sitearchdir=./.gem.20240809-1229-htx96c", "sitelibdir=./.gem.20240809-1229-htx96c", "clean"] current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall ["make", "DESTDIR=", "sitearchdir=./.gem.20240809-1229-htx96c", "sitelibdir=./.gem.20240809-1229-htx96c"] compiling gc.c compiling pycall.c compiling libpython.c compiling thread.c compiling range.c compiling ruby_wrapper.c linking shared-object pycall.so current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall ["make", "DESTDIR=", "sitearchdir=./.gem.20240809-1229-htx96c", "sitelibdir=./.gem.20240809-1229-htx96c", "install"] /usr/bin/install -c -m 0755 pycall.so ./.gem.20240809-1229-htx96c current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall ["make", "DESTDIR=", "sitearchdir=./.gem.20240809-1229-htx96c", "sitelibdir=./.gem.20240809-1229-htx96c", "clean"] current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall /usr/bin/ruby extconf.rb current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall make DESTDIR\= sitearchdir\=./.gem.20240809-1229-htx96c sitelibdir\=./.gem.20240809-1229-htx96c clean current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall make DESTDIR\= sitearchdir\=./.gem.20240809-1229-htx96c sitelibdir\=./.gem.20240809-1229-htx96c current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall make DESTDIR\= sitearchdir\=./.gem.20240809-1229-htx96c sitelibdir\=./.gem.20240809-1229-htx96c install current directory: /startdir/src/pycall.rb/tmp_install/usr/lib/ruby/gems/3.2.0/gems/pycall-1.5.2/ext/pycall make DESTDIR\= sitearchdir\=./.gem.20240809-1229-htx96c sitelibdir\=./.gem.20240809-1229-htx96c clean Successfully installed pycall-1.5.2 Parsing documentation for pycall-1.5.2 Parsing sources... 2% [ 1/35] ext/pycall/Makefile 5% [ 2/35] ext/pycall/extconf.rb 8% [ 3/35] ext/pycall/gc.c 11% [ 4/35] ext/pycall/libpython.c 14% [ 5/35] ext/pycall/pycall.c 17% [ 6/35] ext/pycall/pycall.h 20% [ 7/35] ext/pycall/pycall_internal.h 22% [ 8/35] ext/pycall/range.c 25% [ 9/35] ext/pycall/ruby_wrapper.c 28% [10/35] ext/pycall/thread.c 31% [11/35] lib/pycall.rb 34% [12/35] lib/pycall/dict.rb 37% [13/35] lib/pycall/error.rb 40% [14/35] lib/pycall/gc_guard.rb 42% [15/35] lib/pycall/import.rb 45% [16/35] lib/pycall/init.rb 48% [17/35] lib/pycall/iruby_helper.rb 51% [18/35] lib/pycall/iterable_wrapper.rb 54% [19/35] lib/pycall/libpython.rb 57% [20/35] lib/pycall/libpython/finder.rb 60% [21/35] lib/pycall/libpython/pyobject_struct.rb 62% [22/35] lib/pycall/libpython/pytypeobject_struct.rb 65% [23/35] lib/pycall/list.rb 68% [24/35] lib/pycall/pretty_print.rb 71% [25/35] lib/pycall/pyerror.rb 74% [26/35] lib/pycall/pymodule_wrapper.rb 77% [27/35] lib/pycall/pyobject_wrapper.rb 80% [28/35] lib/pycall/python/PyCall/__init__.py 82% [29/35] lib/pycall/python/PyCall/six.py 85% [30/35] lib/pycall/python/investigator.py 88% [31/35] lib/pycall/pytypeobject_wrapper.rb 91% [32/35] lib/pycall/set.rb 94% [33/35] lib/pycall/slice.rb 97% [34/35] lib/pycall/version.rb 100% [35/35] lib/pycall/wrapper_object_cache.rb Installing ri documentation for pycall-1.5.2 Done installing documentation for pycall after 0 seconds 1 gem installed ==> Starting check()... /usr/bin/ruby /startdir/src/pycall.rb/ext/pycall/extconf.rb cd /startdir/src/pycall.rb/ext/pycall checking for RTYPEDDATA_GET_DATA()... no creating Makefile /usr/bin/ruby -I. ../../../../../ext/pycall/spec_helper/extconf.rb cd - mkdir -p tmp/x86_64-linux/pycall/spec_helper/3.2.4/pycall cd tmp/x86_64-linux/pycall/spec_helper/3.2.4 creating Makefile /usr/bin/make cd - cd tmp/x86_64-linux/pycall/spec_helper/3.2.4 compiling ../../../../../ext/pycall/spec_helper/spec_helper.c linking shared-object pycall/spec_helper.so /usr/bin/make install sitearchdir=../../../../../lib/pycall sitelibdir=../../../../../lib/pycall target_prefix= cp spec_helper.so pycall/spec_helper.so cd - mkdir -p tmp/x86_64-linux/stage/lib/pycall /usr/bin/install -c -m 0755 spec_helper.so ../../../../../lib/pycall /usr/bin/make cp tmp/x86_64-linux/pycall/spec_helper/3.2.4/pycall/spec_helper.so tmp/x86_64-linux/stage/lib/pycall/spec_helper.so cd /startdir/src/pycall.rb/ext/pycall compiling libpython.c compiling gc.c compiling pycall.c compiling range.c compiling ruby_wrapper.c compiling thread.c linking shared-object pycall.so cd - /usr/bin/ruby -I/startdir/src/pycall.rb/ext/pycall -I/usr/lib/ruby/gems/3.2.0/gems/rspec-support-3.12.1/lib:/usr/lib/ruby/gems/3.2.0/gems/rspec-core-3.12.2/lib /usr/lib/ruby/gems/3.2.0/gems/rspec-core-3.12.2/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Environment variables: - ANACONDA= - LIBPYTHON= - PYENV_VERSION= - PYTHON= - PYTHON_VERSION= - PYTHONPATH= - PYCALL_DEBUG_FIND_LIBPYTHON= The following version of Python is used: 3.12.4 (main, Jun 7 2024, 06:33:07) [GCC 14.1.1 20240522] Randomized with seed 58969 PyCall::LibPython::Finder .find_python_config when the given python command is not python is expected to raise PyCall::PythonNotFound .investigate_python_config is expected to be a kind of Hash PyCall::LibPython::Helpers .import_module is a wrapper method of PyImport_ImportModule (PENDING: Not yet implemented) .getattr is a wrapper method of PyObject_GetAttrString .hasattr? is a wrapper method of PyObject_HasAttrString .define_wrapper_method defines a wrapper method of a instance method of a Python object (PENDING: Not yet implemented) PyCall has a version number .init returns true if initialization was succeeded (FAILED - 1) returns false if already initialized raises PyCall::PythonNotFound error if unable to find libpython library .wrap_module the wrapped module object can respond to read attributes returns a Module that wraps a Python object returns the first-created wrapper module when called twice the wrapped module object can respond to callable attributes as methods .wrap_class returns a new wrapper class extends the resulting wrapper class by PyTypeObjectWrapper returns the first-created wrapper class when called twice .sys .path is expected to be a kind of LibPython::API::None is expected to be a kind of PyCall::PyPtr is expected to eq true is expected to be nil PYTHON_VERSION has a Python's version number .hasattr? is expected to eq false .builtins is a wrapper object of Python's builtins module .dir returns a list object containing the attribute names of the given Python object .same? is expected to eq false .callable? detects whether the given object is callable .import_module returns a wrapper object of Python module with the specified name .getattr is expected to equal # PyCall::Conversion .from_ruby for -Infinity is expected to be a kind of # is expected to eq -Infinity for a Proc object is expected to be a kind of PyCall::PyRubyPtr for false is expected to equal false is expected to be a kind of # for a binary string is expected to be a kind of # for an ascii string is expected to be a kind of # for 0.0 is expected to be a kind of # is expected to eq 0.0 for true is expected to be a kind of # is expected to equal true for Infinity is expected to eq Infinity is expected to be a kind of # for an Array is expected to eq [0, 1, 2, "a", "b", "c"] is expected to be a kind of # is expected to be a kind of for :ascii_symbol is expected to be a kind of # for 1.0 is expected to be a kind of # is expected to eq 1.0 for -1.0 is expected to be a kind of # is expected to eq -1.0 for 0 is expected to be a kind of # is expected to eq 0 for 1 is expected to eq 1 is expected to be a kind of # for an Hash is expected to be a kind of is expected to eq {"a"=>1, "b"=>2, "c"=>3} is expected to be a kind of # for :マルチバイトシンボル is expected to be a kind of # for a unicode string is expected to be a kind of # for NaN is expected to be nan is expected to be a kind of # for -1 is expected to be a kind of # is expected to eq -1 .register_python_type_mapping returns true and registers a given type mapping when no type mapping for a given Python type is registered returns false when there is a type mapping for a given Python type when a given Ruby class at the 2nd argument is not a PyCall::PyTypeObjectWrapper raises TypeError when the 2nd argument is not a Ruby class raises TypeError when the 1st argument is not a PyCall::PyTypePtr raises TypeError .unregister_python_type_mapping returns true and unregisters the type mapping for a given Python type when the type mapping for a given Python type is not registered returns false when the 1st argument is not a PyCall::PyTypePtr raises TypeError .to_ruby for a large size string is expected to eq "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" for a unicode string is expected to eq "☃" inheritance support when the super class was registered to python type mapping is expected to be an instance of when the subclass was also registered to python type mapping is expected to be an instance of for a Python type object is expected to be a kind of PyCall::PyTypeObjectWrapper is expected to be a kind of Class for a Python module object is expected to be a kind of Module is expected to be a kind of PyCall::PyObjectWrapper PyCall::PyError #to_s when traceback is null does not contain traceback when traceback is nil does not contain traceback PyCall::PyTypeObjectWrapper .extend_object @__pyptr__ of the extended object is a PyCall::PyTypePtr extends the given object @__pyptr__ of the extended object is not a PyCall::PyPtr raises TypeError @__pyptr__ of the extended object is nil raises TypeError @__pyptr__ of the extended object is a PyCall::PyPtr raises TypeError .new returns an instance of the extended class object calls the corresponding Python type object with the given arguments to instantiate its Python object the returned object has a Python object pointer whose type is its __pyptr__ #=== is expected to eq true .register_python_type_mapping example at ./spec/pycall/pytypeobject_wrapper_spec.rb:89 (PENDING: Not yet implemented) #< is expected to eq false is expected to eq true is expected to raise TypeError with "compared with non class/module" PyCall .eval without globals with locals of a Hash example at ./spec/pycall/eval_spec.rb:28 (PENDING: Not yet implemented) without locals evaluates immediate values correctly raises an exception occurred in Python side .exec without globals with locals of a Hash example at ./spec/pycall/eval_spec.rb:64 (PENDING: Not yet implemented) without locals is expected to be a kind of Class raises an exception occurred in Python side start, stop, and step are all nil is expected to eq [1, 2, 3, 4, 5] initialize with two arguments is expected to eq [2, 3] initialize with one argument is expected to eq [1, 2, 3] initialize with three arguments is expected to eq [2, 4] initialize with one nil is expected to eq nil PyCall .wrap_ruby_object guards the ruby object by GC while the wrapper python object is alive (PENDING: Temporarily skipped with xit) is expected to yield with args(42) returns a PyCall::PyRubyPtr the argument is not callable is expected to raise PyCall::PyError the argument is callable is expected to yield with args("42") PyCall::Import #pyfrom there is not the attribute specified in import: argument but there is a module with the same name and it has the attribute with the same name imports the attribute there is not the module with the given name raises an error the import: argument is an Array defines methods with the given names in the Array the import: argument is a String defines a methodswith the given name the import: argument is a Hash defines methods with the given names in the Hash values #pyimport the given module name does not include "." the as: argument is given defines a method with the specified name by as: argument the as: argument is not given defines a method with the specified module name the given module name includes "." the as: argument is given defines a method with the specified name by as: argument the as: argument is not given raises ArgumentError PyCall.with is expected to yield with args(42) in a normal case is expected to be nil in an exception occurred in Ruby when __exit__ returns not True is expected to be all when __exit__ returns True is expected not to be nil in an exception occurred in Python when __exit__ returns not True is expected not to be nil when __exit__ returns True is expected not to be nil #delete deletes a value for a given key when key is a python object deletes a value for a given key #[]= stores a given value for a given key when key is a python object stores a given value for a given key #has_key? is expected not to have key "d" when key is a python object is expected not to have key time.struct_time(tm_year=2024, tm_mon=8, tm_mday=9, tm_hour=21, tm_min=11, tm_sec=42, tm_wday=4, tm_yday=222, tm_isdst=1) #[] increments the returned python object returns a value corresponding to a given key when key is a python object returns a value corresponding to a given key #length is expected to eq 3 .new accepts python object as a key is expected to eq 3 #inspect example at ./spec/pycall/tuple_spec.rb:34 (PENDING: Not yet implemented) #length returns its size #to_ary is used for multiple assignment #to_a returns an array that contains all the items in the subject PyCall::PyModuleWrapper is expected to be a kind of PyCall::PyObjectWrapper #[] is expected to eq 42 #sort does not change the list returns a new sorted PyCall::List #<< appends the given object #push appends all the given objects #length is expected to eq 3 #each with a block enumerates each item without a block returns an Enumerator #sort! sorts the list in place .tuple is expected to eq (1, 2, 3) PyCall::LibPython::API .builtins_module_ptr returns the different instance but the same address is expected to be a kind of PyCall::PyPtr PyCall inside of .without_gvl PyCall acquires GVL during calling Ruby from Python PyCall releases GVL during Python C API invocation outside of PyCall.without_gvl PyCall does not releases GVL during Python C API invocation PyCall::PyObjectWrapper #to_i delegates to builtins.int (PENDING: Not yet implemented) #!= example at ./spec/pycall/pyobject_wrapper_spec.rb:126 (PENDING: Not yet implemented) #> example at ./spec/pycall/pyobject_wrapper_spec.rb:138 (PENDING: Not yet implemented) #call when the receiver is callable is expected not to raise Exception when the receiver is not callable is expected to raise TypeError #kind_of? is expected to be a kind of #[]= when the given index is an Enumerable that is created by Range#step is expected to eq [1, 100, 3, 200, 5, 300, 7, 8, 9, 10] when the given index is a Range is expected to eq [1, 100, 200, 300, 9, 10] #coerce is expected to be a kind of Object #== example at ./spec/pycall/pyobject_wrapper_spec.rb:122 (PENDING: Not yet implemented) #dup returns a duped instance with a copy of the Python object #method_missing when the name is :| delegates to :__or__ (PENDING: Not yet implemented) the Python object has the attribute of the given name the value of the attribute is callable the value of the attribute is not a type object initialize attribute is mapped †o __initialize__ in Ruby side returns the result of calling the Python object from the attribute the value of the attribute is a type object returns the Python object from the attribute the value of the attribute is not callable returns the Python object from the attribute when the name is :^ delegates to :__xor__ (PENDING: Not yet implemented) when the name is :<< delegates to :__lshift__ (PENDING: Not yet implemented) when the name is :** delegates to :__pow__ (PENDING: Not yet implemented) when the name is :& delegates to :__and__ (PENDING: Not yet implemented) when the name is :% delegates to :__mod__ (PENDING: Not yet implemented) the Python object does not have the attribute of the given name raises NameError when the name is :+ delegates to :__add__ (PENDING: Not yet implemented) when the name is :/ delegates to :__truediv__ (PENDING: Not yet implemented) when the name is :* delegates to :__mul__ (PENDING: Not yet implemented) when the name is :- delegates to :__sub__ (PENDING: Not yet implemented) when the name is :>> delegates to :__rshift__ (PENDING: Not yet implemented) #to_f delegates to builtins.float (PENDING: Not yet implemented) #>= example at ./spec/pycall/pyobject_wrapper_spec.rb:142 (PENDING: Not yet implemented) #< example at ./spec/pycall/pyobject_wrapper_spec.rb:130 (PENDING: Not yet implemented) #<= example at ./spec/pycall/pyobject_wrapper_spec.rb:134 (PENDING: Not yet implemented) #to_s returns a string generated by global function str #[] when the given index is an Enumerable that is created by Range#step is expected to eq [9, 7, 5] when the given index is a Range is expected to eq [2, 3, 4, 5, 6, 7, 8] .extend_object @__pyptr__ of the extended object is not a PyCall::PyPtr raises TypeError @__pyptr__ of the extended object is nil raises TypeError @__pyptr__ of the extended object is a PyCall::PyPtr extends the given object Pending: (Failures listed here are expected and do not affect your suite's status) 1) PyCall::LibPython::Helpers.import_module is a wrapper method of PyImport_ImportModule # Not yet implemented # ./spec/pycall/libpython/helpers_spec.rb:7 2) PyCall::LibPython::Helpers.define_wrapper_method defines a wrapper method of a instance method of a Python object # Not yet implemented # ./spec/pycall/libpython/helpers_spec.rb:32 3) PyCall::PyTypeObjectWrapper.register_python_type_mapping # Not yet implemented # ./spec/pycall/pytypeobject_wrapper_spec.rb:89 4) PyCall.eval without globals with locals of a Hash # Not yet implemented # ./spec/pycall/eval_spec.rb:28 5) PyCall.exec without globals with locals of a Hash # Not yet implemented # ./spec/pycall/eval_spec.rb:64 6) PyCall.wrap_ruby_object guards the ruby object by GC while the wrapper python object is alive # Temporarily skipped with xit # ./spec/pycall/ruby_object_spec.rb:27 7) #inspect # Not yet implemented # ./spec/pycall/tuple_spec.rb:34 8) PyCall::PyObjectWrapper#to_i delegates to builtins.int # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:252 9) PyCall::PyObjectWrapper#!= # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:126 10) PyCall::PyObjectWrapper#> # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:138 11) PyCall::PyObjectWrapper#== # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:122 12) PyCall::PyObjectWrapper#method_missing when the name is :| delegates to :__or__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:117 13) PyCall::PyObjectWrapper#method_missing when the name is :^ delegates to :__xor__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:113 14) PyCall::PyObjectWrapper#method_missing when the name is :<< delegates to :__lshift__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:101 15) PyCall::PyObjectWrapper#method_missing when the name is :** delegates to :__pow__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:97 16) PyCall::PyObjectWrapper#method_missing when the name is :& delegates to :__and__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:109 17) PyCall::PyObjectWrapper#method_missing when the name is :% delegates to :__mod__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:93 18) PyCall::PyObjectWrapper#method_missing when the name is :+ delegates to :__add__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:77 19) PyCall::PyObjectWrapper#method_missing when the name is :/ delegates to :__truediv__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:89 20) PyCall::PyObjectWrapper#method_missing when the name is :* delegates to :__mul__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:85 21) PyCall::PyObjectWrapper#method_missing when the name is :- delegates to :__sub__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:81 22) PyCall::PyObjectWrapper#method_missing when the name is :>> delegates to :__rshift__ # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:105 23) PyCall::PyObjectWrapper#to_f delegates to builtins.float # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:256 24) PyCall::PyObjectWrapper#>= # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:142 25) PyCall::PyObjectWrapper#< # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:130 26) PyCall::PyObjectWrapper#<= # Not yet implemented # ./spec/pycall/pyobject_wrapper_spec.rb:134 Failures: 1) PyCall.init returns true if initialization was succeeded Failure/Error: expect(out.chomp).to eq('true') expected: "true" got: "Resolving dependencies...\ntrue" (compared using ==) Diff: @@ -1 +1,2 @@ +Resolving dependencies... true # ./spec/pycall_spec.rb:155:in `block (3 levels) in ' Finished in 2.43 seconds (files took 0.0915 seconds to load) 193 examples, 1 failure, 26 pending Failed examples: rspec ./spec/pycall_spec.rb:149 # PyCall.init returns true if initialization was succeeded Randomized with seed 58969 /usr/bin/ruby -I/startdir/src/pycall.rb/ext/pycall -I/usr/lib/ruby/gems/3.2.0/gems/rspec-support-3.12.1/lib:/usr/lib/ruby/gems/3.2.0/gems/rspec-core-3.12.2/lib /usr/lib/ruby/gems/3.2.0/gems/rspec-core-3.12.2/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed ==> ERROR: A failure occurred in check(). Aborting... ==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_dbc75dfb-10c0-4c6d-a94f-597687efa924/build