Skip to content

lutorpy, importing Error: #30

Description

@aquibjaved

I've installed torch 7 and then I fire the command
sudo ~/torch/install/bin/luarocks install image
sudo ~/torch/install/bin/luarocks install nn
sudo pip install lutorpy
But now when I am in terminal python:
`aquib@javed:~$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import lutorpy
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/lutorpy/init.py", line 17, in
lualib = ctypes.CDLL(os.path.join(TorchInstallPath, "lib/libluajit.so"), mode=ctypes.RTLD_GLOBAL)
File "/usr/lib/python2.7/ctypes/init.py", line 362, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/aquib/torch/install/lib/libluajit.so: cannot open shared object file: No such file or directory

import lutorpy as lua
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/lutorpy/init.py", line 12, in
from lutorpy import torch_path
ImportError: cannot import name torch_path
`
how can I fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions