(lp) ┌─(~/Documents/GitHub/lpython/integration_tests)─────(brian@MacBook-Pro:s001)─┐
└─(19:22:41 on vector-backend)──> lpython bindc_11.py ──(Mon,Feb05)─┘
semantic error: Could not find the module 'ctypes'. If an import path is available, please use the `-I` option to specify it
--> bindc_11.py:1:1
|
1 | import numpy, ctypes
| ^^^^^^^^^^^^^^^^^^^^
The module ctypes is not in evidence in the directory tree:
So I have no idea how this could ever work under any circumstances, and no idea how to tell lpython via the -I option how to find ctypes. It's some kind of magical thing
Running standalone, the following all work in the directory
integration_tests
However,
bindc_11.py
produces an errorThe module
ctypes
is not in evidence in the directory tree:Nor in the
lp
environment:So I have no idea how this could ever work under any circumstances, and no idea how to tell lpython via the -I option how to find
ctypes
. It's some kind of magical thingHOWEVER,
bindc_11
works underrun_tests.py
:I have no idea how to find out what actual command that
run_tests
uses to launchbindc_11
or any other of its tests until I reverse engineer it.To deepen the mystery,
bindc_11
works in CPython: