Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Lua5.2 #32

Open
oeway opened this issue Nov 28, 2016 · 2 comments
Open

Support Lua5.2 #32

oeway opened this issue Nov 28, 2016 · 2 comments

Comments

@oeway
Copy link
Collaborator

oeway commented Nov 28, 2016

We received users using lua5.2 instead of luajit with torch, and that will cause errors as #31 and #30 etc.

@oeway
Copy link
Collaborator Author

oeway commented Nov 28, 2016

I tried to do fresh installation with lua5.2 but still have problem with lutorpy:

ctypes.CDLL(os.path.join( "/home/wei/torch/install/lib/liblua.so"), mode=ctypes.RTLD_GLOBAL)
ctypes.CDLL(os.path.join( "/home/wei/torch/install/lib/libluaT.so"), mode=ctypes.RTLD_GLOBAL)
ctypes.CDLL(os.path.join( "/home/wei/torch/install/lib/libTH.so"), mode=ctypes.RTLD_GLOBAL)

Then I got the following error:

In [27]: import lutorpy
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-27-db94a7dcb3df> in <module>()
----> 1 import lutorpy

/usr/local/lib/python2.7/dist-packages/lutorpy-1.3.7-py2.7-linux-x86_64.egg/lutorpy/__init__.py in <module>()
     42 # the following is all that should stay in the namespace:
     43 
---> 44 from lutorpy._lupa import *
     45 
     46 try:

ImportError: /usr/local/lib/python2.7/dist-packages/lutorpy-1.3.7-py2.7-linux-x86_64.egg/lutorpy/_lupa.so: undefined symbol: luaL_openlib
``

@sagarwaghmare69
Copy link

Hi,
Any possibility of supporting Lua5.2 ? I am using Lua5.2 to bypass limit on table size from luajit.
Kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants