Home My Page Projects py.ml
Summary Activity Tracker SCM

[#20918] Error: The external function 'Python3_PyUnicode_AsUCS4Copy_wrapper' is not available

Date:
2016-10-22 02:10
Priority:
3
State:
Open
Submitted by:
Nobody
Assigned to:
Nobody (None)
Summary:
Error: The external function 'Python3_PyUnicode_AsUCS4Copy_wrapper' is not available

Detailed description
Anonymous message posted by shenghaozou@yahoo.com

When I use #load "pyml.cma", ocaml told me:
Error: The external function 'Python3_PyUnicode_AsUCS4Copy_wrapper' is not available.

And I cannot load pyml module.

The same error on 2 Macs, and one ubuntu PC.

Python: 3.5.1
Ocaml Version: 4.02
Linux Version: Ubuntu 14.04
macOS: 10.12 Sierra

Add A Comment: Notepad

Message  ↓
Date: 2017-03-13 14:15
Sender: Thierry Martinez

The master version now installs pymltop, you can try it with
opam pin add pyml http://pyml.gforge.inria.fr/pyml.git

I will think about what I can do for utop.

Date: 2017-03-13 10:11
Sender: N Becker

ok, so installation requires: opam install pyml, then go to the build directory within .opam, then make the custom toplevel there.

if this is the easiest way, this needs to be described in the README at least. would it be possible to have opam build and install the custom toplevel, also in a utop version if utop is installed?

Date: 2017-03-11 01:35
Sender: Thierry Martinez

Sorry for answering so late! As Pyml uses C bindings, you need to use a custom toplevel: run "make pymltop" and then use "./pymltop".

Date: 2017-03-08 13:24
Sender: N Becker

i see the same bug when calling from utop:
#require "pyml"

os x 10.11, ocaml 4.04.0

Field Old Value Date By
detailsAnonymous message posted by shenghaozou@yahoo.com When I use #load "pyml.cma", ocaml told me: Error: The external function 'Python3_PyUnicode_AsUCS4Copy_wrapper' is not available. And I cannot load pyml module. The same error on 2 Macs, and one ubuntu PC. Python: 3.5.1 Ocaml Version: 4.02 Linux Version: Ubuntu 14.04 macOS: 10.12 Sierra2017-03-11 01:35tmartine