Skip to content

lua-python import error #55

@Vogen

Description

@Vogen

I use cmake ./ and make to build lua.so and 'python.so'. And error occur while using.

user@host:~$ cat test.lua
python = package.loadlib("/path/to/lunatic-python/bin/lua.so", "luaopen_python")()
python.execute("import os")
python.execute("import multiprocessing")
user@host:~$ lua test.lua
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/multiprocessing/__init__.py", line 84, in <module>
    import _multiprocessing
ImportError: /usr/lib/python2.7/lib-dynload/_multiprocessing.x86_64-linux-gnu.so: undefined symbol: _Py_ZeroStruct

Actually, I don't know what is the right way to build and to use .so file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions