ocaml-in-python icon indicating copy to clipboard operation
ocaml-in-python copied to clipboard

Test suite fails

Open ejgallego opened this issue 1 year ago • 0 comments

Dear @thierry-martinez ,

dune runtest fails in main with:

/external/ocaml-in-python$ dune runtest
File "tests/examples/dune", line 6, characters 0-262:
 6 | (rule
 7 |   (alias runtest)
 8 |   (deps
 9 |      examples.py
10 | ;    examples.cmxs
11 |      ../../ocaml/ocaml_in_python.so
12 |      ../../ocaml/__init__.py)
13 |   (action
14 |    (setenv PYTHONPATH %{workspace_root}:%{env:PYTHONPATH=}
15 |    (run %{read-lines:../../python3-command} examples.py))))
Hello, world!
2
Node {label="a";children=[Node {label="b";children=[Node {label="c";children=[]}]}]}
Stdlib.Invalid_argument("of_list")
Traceback (most recent call last):
  File "/home/egallego/external/ocaml-in-python/_build/default/tests/examples/examples.py", line 41, in <module>
    from ocaml import Parmap
ImportError: Py.Err(10, "Py.Err(10, \"Dynlink.Error (Dynlink.Cannot_open_dll \\\"Dynlink.Error (Dynlink.Cannot_open_dll \\\\\\\"Failure(\\\\\\\\\\\\\\\"/tmp/build_0ae923_dune/ocaml-in-python4c7753.so: undefined symbol: camlParmap\\\\\\\\\\\\\\\")\\\\\\\")\\\")\")")

That could be a duplicate of #6 , but signalling separately.

ejgallego avatar Mar 15 '24 12:03 ejgallego