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

Error raised when I import lutorpy #26

Open
erogol opened this issue Oct 23, 2016 · 9 comments
Open

Error raised when I import lutorpy #26

erogol opened this issue Oct 23, 2016 · 9 comments

Comments

@erogol
Copy link

erogol commented Oct 23, 2016

...   
import lutorpy as lua
  File "/usr/local/lib/python2.7/dist-packages/lutorpy-1.3.6-py2.7-linux-x86_64.egg/lutorpy/__init__.py", line 18, in <module>
    THlib = ctypes.CDLL(os.path.join(TorchInstallPath, "lib/libTH.so"), mode=ctypes.RTLD_GLOBAL)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /root/torch/install/lib/libTH.so: undefined symbol: spotrs_

Any idea for resolving this ?

@oeway
Copy link
Collaborator

oeway commented Oct 23, 2016

@erogol
Copy link
Author

erogol commented Oct 23, 2016

I already install openblas. The strange thing is, I can import it in ipython but cannot when I run the code as a script.

@oeway
Copy link
Collaborator

oeway commented Oct 23, 2016

Then I guess it's a LD_LIBRARY_PATH problem, print LD_LIBRARY_PATH in ipython and compare with the one you get in bash or sh.

@erogol
Copy link
Author

erogol commented Oct 23, 2016

I do this in Docker container so for both of them LD_LIB... is only
/root/torch/install/lib:

@oeway
Copy link
Collaborator

oeway commented Oct 23, 2016

I would try to find where is openblas installed and put it in LD_LIBRARY_PATH.

@erogol
Copy link
Author

erogol commented Oct 23, 2016

Really thanks for your care. I add these to LD_LIB... /usr/lib/openblas-base/:/usr/lib/:/usr/local/lib/:
however still the same

@oeway
Copy link
Collaborator

oeway commented Oct 24, 2016

I think it's docker related, I can't reproduce the error.

@erogol
Copy link
Author

erogol commented Oct 25, 2016

I redeployed everything and it is solved :)

@erogol erogol closed this as completed Oct 25, 2016
@erogol
Copy link
Author

erogol commented Dec 29, 2016

FYI: This error occurs when you reinstall Torch after you installed lutorpy.

@erogol erogol reopened this Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants