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

module 'fb.torch.async_rng' not found #13

Open
vojtajina opened this issue Jul 5, 2016 · 5 comments
Open

module 'fb.torch.async_rng' not found #13

vojtajina opened this issue Jul 5, 2016 · 5 comments

Comments

@vojtajina
Copy link

Hi, I'm trying to train the model on AWS instance (Bitfusion Boost Ubuntu 14 Torch 7), but getting this error:

$ ./test_model.sh workind_dir/ model.th
/home/ubuntu/torch/install/bin/luajit: /home/ubuntu/torch/install/share/lua/5.1/trepl/init.lua:384: /home/ubuntu/torch/install/share/lua/5.1/trepl/init.lua:384: /home/ubuntu/torch/install/share/lua/5.1/trepl/init.lua:384: module 'fb.torch.async_rng' not found:No LuaRocks module found for fb.torch.async_rng
    no field package.preload['fb.torch.async_rng']
    no file '/home/ubuntu/.luarocks/share/lua/5.1/fb/torch/async_rng.lua'
    no file '/home/ubuntu/.luarocks/share/lua/5.1/fb/torch/async_rng/init.lua'
    no file '/home/ubuntu/torch/install/share/lua/5.1/fb/torch/async_rng.lua'
    no file '/home/ubuntu/torch/install/share/lua/5.1/fb/torch/async_rng/init.lua'
    no file './fb/torch/async_rng.lua'
    no file '/home/ubuntu/torch/install/share/luajit-2.1.0-beta1/fb/torch/async_rng.lua'
    no file '/usr/local/share/lua/5.1/fb/torch/async_rng.lua'
    no file '/usr/local/share/lua/5.1/fb/torch/async_rng/init.lua'
    no file '/home/ubuntu/code/NAMAS/fb/torch/async_rng.lua'
    no file 'fb/torch/async_rng.lua'
    no file '/home/ubuntu/.luarocks/lib/lua/5.1/fb/torch/async_rng.so'
    no file '/home/ubuntu/torch/install/lib/lua/5.1/fb/torch/async_rng.so'
    no file '/home/ubuntu/torch/install/lib/fb/torch/async_rng.so'
    no file './fb/torch/async_rng.so'
    no file '/usr/local/lib/lua/5.1/fb/torch/async_rng.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    no file '/home/ubuntu/.luarocks/lib/lua/5.1/fb.so'
    no file '/home/ubuntu/torch/install/lib/lua/5.1/fb.so'
    no file '/home/ubuntu/torch/install/lib/fb.so'
    no file './fb.so'
    no file '/usr/local/lib/lua/5.1/fb.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'error'
    /home/ubuntu/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
    summary/run.lua:17: in main chunk
    [C]: in function 'dofile'
    ...untu/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x00406670

I installed fbcunn and all the deps, as described in https://github.com/facebook/fbcunn/blob/master/INSTALL.md. I expect the missing module should be installed as a part of fblualibs (which I did install with fblualibs/build.sh), but looking into fblualib/build/Makefile (the makefile produced by the fblualibs/build.sh), there is nothing about fblualib/torch/AsyncRNG.cpp so it probably does not get build.

I tried to run cmake . under fblualibs/torch, but got this error:

$ cmake .
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Torch7 in /home/ubuntu/torch/install
-- Found Folly: /usr/local/include
-- Found Torch7 in /home/ubuntu/torch/install
CMake Error at CMakeLists.txt:45 (install):
  install TARGETS given no LIBRARY DESTINATION for module target "async_rng".


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/code/fblualib/fblualib/torch/CMakeFiles/CMakeOutput.log".

How should I install fb.torch.async_rng?
Thank you for any help.

@vojtajina
Copy link
Author

The only Cpp result (the modules compiled with make) from fblualib is /usr/local/lib/libfblualib.so -- does that contain fb.torch.async_rng Lua module?

Additional info: I first tried to install fblualib with curl -sk https://raw.githubusercontent.com/facebook/fblualib/master/install_all.sh | bash (which checks out v1.0 tag of fblualib, which does not have fblualib/torch/CMakeLists.txt). Then I tried the master and that's when I got the "install TARGETS given no LIBRARY DESTINATION" error.

@jeiranj
Copy link

jeiranj commented Sep 6, 2016

@vojtajina were you able to resolve this issue with fb.torch?

@lfzCarlosC
Copy link

Any updates? Is there other ways running the code of the paper?

@atana1
Copy link

atana1 commented Nov 19, 2016

Hi, I am trying to run NAMAS, and got the same error 'No LuaRocks module found for fb.torch.async_rng' so tried to install fblualib

I ran install_all.sh from v1.0 of fblualib with v1.0 of thpp

git clone -b v0.35.0 --depth 1 https://github.com/facebook/folly.git
git clone -b v0.24.0 --depth 1 https://github.com/facebook/fbthrift.git
git clone -b v1.0 https://github.com/facebook/thpp
git clone https://github.com/facebook/fblualib

but it throws error while building thpp as:

creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/runtests.sh
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.cc
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.h
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget_test.cc
creating: googletest-release-1.7.0/xcode/Scripts/
inflating: googletest-release-1.7.0/xcode/Scripts/runtests.sh
inflating: googletest-release-1.7.0/xcode/Scripts/versiongenerate.py
creating: googletest-release-1.7.0/xcode/gtest.xcodeproj/
inflating: googletest-release-1.7.0/xcode/gtest.xcodeproj/project.pbxproj
-- Found Torch7 in /home/atana/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/abhishek/thpp/thpp/build
[ 5%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
/home/atana/thpp/thpp/Storage.cpp: In function ‘void thpp::detail::applySharingMode(folly::IOBuf&, thpp::SharingMode)’:
/home/abhishek/thpp/thpp/Storage.cpp:70:9: error: ‘class folly::IOBuf’ has no member named ‘makeManagedOne’
iob.makeManagedOne();
^
make[2]: *** [CMakeFiles/thpp.dir/Storage.cpp.o] Error 1
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
make: *** [all] Error 2

I am Ubuntu 14.04
How to install it? Please help.

@msiraj83
Copy link

Dear @atana1 i have the same problem while compiling. The screen shot is attached...

thpp_error

Thanks

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

No branches or pull requests

5 participants