Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Lua installation is broken in develop #276

Open
edran opened this issue Jul 9, 2018 · 2 comments
Open

Lua installation is broken in develop #276

edran opened this issue Jul 9, 2018 · 2 comments

Comments

@edran
Copy link
Contributor

edran commented Jul 9, 2018

Tried a fresh install of torch7 + torchcraft on MacOS.

Traces:

$ luarocks make *.rockspec
Warning: unmatched variable LUALIB
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   torchcraft

This warning is for project developers.  Use -Wno-dev to suppress it.

Warning: /Users/nantas/torch/install/share/lua/5.1/torchcraft/replayer.lua is not tracked by this installation of LuaRocks. Moving it to /Users/nantas/torch/install/share/lua/5.1/torchcraft/replayer.lua~~~~
Warning: /Users/nantas/torch/install/share/lua/5.1/torchcraft/init.lua is not tracked by this installation of LuaRocks. Moving it to /Users/nantas/torch/install/share/lua/5.1/torchcraft/init.lua~~~~
Warning: /Users/nantas/torch/install/share/lua/5.1/torchcraft/_env.lua is not tracked by this installation of LuaRocks. Moving it to /Users/nantas/torch/install/share/lua/5.1/torchcraft/_env.lua~~~~
Warning: /Users/nantas/torch/install/share/lua/5.1/torchcraft/utils.lua is not tracked by this installation of LuaRocks. Moving it to /Users/nantas/torch/install/share/lua/5.1/torchcraft/utils.lua~~~~
Warning: /Users/nantas/torch/install/lib/lua/5.1/libtorchcraft.1.4.0.dylib is not tracked by this installation of LuaRocks. Moving it to /Users/nantas/torch/install/lib/lua/5.1/libtorchcraft.1.4.0.dylib~~~~
cp: /Users/nantas/torch/install/lib/luarocks/rocks/torchcraft/1.4-0/lib/libtorchcraft.dylib: No such file or directory

Error: Failed copying /Users/nantas/torch/install/lib/luarocks/rocks/torchcraft/1.4-0/lib/libtorchcraft.dylib to /Users/nantas/torch/install/lib/lua/5.1/libtorchcraft.dylib

and obviously later:

$ th simple_dll.lua -t localhost
hostname:       localhost
port:   11111
/Users/nantas/torch/install/bin/luajit: /Users/nantas/torch/install/share/lua/5.1/trepl/init.lua:389: /Users/nantas/torch/install/share/lua/5.1/trepl/init.lua:389: /Users/nantas/torch/install/share/lua/5.1/trepl/init.lua:389: module 'torchcraft.tc_lib' not found:No LuaRocks module found for torchcraft.tc_lib
        no field package.preload['torchcraft.tc_lib']
        no file '/Users/nantas/.luarocks/share/lua/5.1/torchcraft/tc_lib.lua'
        no file '/Users/nantas/.luarocks/share/lua/5.1/torchcraft/tc_lib/init.lua'
        no file '/Users/nantas/torch/install/share/lua/5.1/torchcraft/tc_lib.lua'
        no file '/Users/nantas/torch/install/share/lua/5.1/torchcraft/tc_lib/init.lua'
        no file './torchcraft/tc_lib.lua'
        no file '/Users/nantas/torch/install/share/luajit-2.1.0-beta1/torchcraft/tc_lib.lua'
        no file '/usr/local/share/lua/5.1/torchcraft/tc_lib.lua'
        no file '/usr/local/share/lua/5.1/torchcraft/tc_lib/init.lua'
        no file '/Users/nantas/.luarocks/lib/lua/5.1/torchcraft/tc_lib.so'
        no file '/Users/nantas/torch/install/lib/lua/5.1/torchcraft/tc_lib.so'
        no file '/Users/nantas/torch/install/lib/torchcraft/tc_lib.dylib'
        no file './torchcraft/tc_lib.so'
        no file '/usr/local/lib/lua/5.1/torchcraft/tc_lib.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/Users/nantas/.luarocks/lib/lua/5.1/torchcraft.so'
        no file '/Users/nantas/torch/install/lib/lua/5.1/torchcraft.so'
        no file '/Users/nantas/torch/install/lib/torchcraft.dylib'
        no file './torchcraft.so'
        no file '/usr/local/lib/lua/5.1/torchcraft.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'error'
        /Users/nantas/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
        simple_dll.lua:34: in main chunk
        [C]: in function 'dofile'
        ...ntas/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
        [C]: at 0x010166dce0
@jchassoul
Copy link

jchassoul commented Jan 2, 2019

I wonder if its also reported to be broken on 1.4.0 I tried a clean install without success, I'm still in 1.3-0 where luarocks make *.rockspec works just because I can't figure it out how to update correctly. )=

@ebetica
Copy link
Contributor

ebetica commented Jan 7, 2019

I think it probably is still broken. We have not used the lua frontend for over a year now, ever since we moved to PyTorch. I am considering deprecating or removing its support in a later version, but if it's important to you, could you perhaps submit a PR? I don't think there are a lot of code changes, but probably some in the CMakeLists.txt or .luarocks.

@TorchCraft TorchCraft deleted a comment Jul 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants