Open nilsbecker opened 3 years ago
I noticed this same error when i was using the dune rule (copy# ...)
to copy the compiled .bc.so
file to a .so
loadable in python -- python does not like the extra information written at the beginning of the binary by dune. that might be another reason for the error.
finally, i was initially under the impression that i have to install this pip package in order to use pythonlib, which is not true. it's unclear to me now for what exactly it is needed? is it only an example provided with the blog post? or is it necessary to use the magic commands in a jupyter notebook? it would be nice if this were documented somewhere
I tried the following on manjaro linux
❯ pip install ocaml
Defaulting to user installation because normal site-packages is not writeable
Collecting ocaml
Downloading ocaml-0.0.11-py3-none-any.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 1.1 MB/s
Collecting wurlitzer
Downloading wurlitzer-2.1.0-py2.py3-none-any.whl (6.2 kB)
Installing collected packages: wurlitzer, ocaml
Successfully installed ocaml-0.0.11 wurlitzer-2.1.0
❯ python -c "import ocaml"
Fatal error: executable program file not found
Hello, I'm getting the same error "Fatal error: executable program file not found" with ubuntu 24.04, and some Docker containers I'm trying to build for using with jupyterlab. Any hints on how to get ocaml magics to work with jupyter ?
hi,
at least i think that's what's happening. i do
pip install ocaml
and then inIPython
i try toimport ocaml
. this gives:i'm on macos; could it be that pip install installs a .so for linux?