-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Description
I'm having an odd issue running lunatic-python-universal on the Windows Subsystem for Linux, specifically running the most recent Ubuntu 20.04 release, which runs Python 3.8.
I seem to have narrowed it down to Python 3.8 being the issue by installing a version of Python 3.6 and being able to run require "python" properly. I have also been able to install and run on another Windows machine with Ubuntu 18.04 on WSL, using Python 3.5.
I have installed using this method. It seems to work if python3 is Python 3.6, but not Python 3.8
apt install python3 python3-dev python3-pip lua5.1 liblua5.1-0-dev pkg-config
pip3 install lunatic-python-universal # I have also built this library from source
# Link the Lua module with the name ''python.so'' into a path lua will look for it
mkdir -p /usr/local/lib/lua/5.1/
chown -R root:staff /usr/local/lib/lua
chmod -R 2775 /usr/local/lib/lua
ln -s -T /usr/local/lib/python3.8/dist-packages/lua.cpython-38-x86_64-linux-gnu.so /usr/local/lib/lua/5.1/python.soAttempting to run inside Lua gives me this:
> require "python"
error loading module 'python' from file '/usr/local/lib/lua/5.1/python.so':
/usr/local/lib/lua/5.1/python.so: undefined symbol: PyFloat_Type
stack traceback:
[C]: ?
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels