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

empty rockspec? #340

Closed
montyhall opened this issue Sep 9, 2016 · 2 comments
Closed

empty rockspec? #340

montyhall opened this issue Sep 9, 2016 · 2 comments

Comments

@montyhall
Copy link

Hi

I pulled the latest rockspec file from the github repo and tried to install directly against that.

[root@admin ~]# luarocks install rnn-scm-1.rockspec
Cloning into 'rnn'...
...

The output indicates a successful installation. But the files it says that it installed are not actually present:

...
-- Installing: /usr/local/pkg/LuaJIT/2.0.4/lib/luarocks/rocks/rnn/scm-1/lua/rnn/test/test.lua
-- Installing: /usr/local/pkg/LuaJIT/2.0.4/lib/luarocks/rocks/rnn/scm-1/lua/rnn/test/GRU_test.lua
-- Installing: /usr/local/pkg/LuaJIT/2.0.4/lib/luarocks/rocks/rnn/scm-1/lua/rnn/test/bigtest.lua
-- Installing: /usr/local/pkg/LuaJIT/2.0.4/lib/luarocks/rocks/rnn/scm-1/lua/rnn/test/test_trimzero.lua
rnn scm-1 is now installed in /usr/local/pkg/LuaJIT/2.0.4 (license: BSD)

But if you check for the existence of anything it said it installed, none of it is there:

[root@admin rnn]# ls -l /usr/local/pkg/LuaJIT/2.0.4/lib/luarocks/rocks/rnn/scm-1/lua/rnn/test/bigtest.lua
ls: cannot access /usr/local/pkg/LuaJIT/2.0.4/lib/luarocks/rocks/rnn/scm-1/lua/rnn/test/bigtest.lua: No such file or directory

It also lists "cunnx" as a dependency which is one we didn't have installed, yet I can't find anything on Google about this --- no github repo, no installation instructions, etc. I went ahead and just blindly installed it using the general repo we used yesterday (https://raw.githubusercontent.com/torch/rocks/master). After successful installation of cunnx, I tried to install rnn again, only to get the same results above.

Am I doing something wrong here?

@nicholas-leonard
Copy link
Member

@montyhall Were you able to resolve this?

@montyhall
Copy link
Author

montyhall commented Sep 11, 2016

even though the installation process was reporting that it was installing to a certain location, it actually installed to another location successfully. Confusing.

i am still experiencing an error which according to issue 313 #313 is cutorch breaks backward compatibility of rnn (in MaskZero).

LuaJIT-2.0.4/share/lua/5.1/rnn/MaskZero.lua:76: invalid arguments: CudaByteTensor CudaTensor number
expected arguments: [CudaTensor] CudaTensor float | [CudaTensor] CudaTensor CudaTensor
stack traceback:
[C]: in function 'eq'
/usr/local/stow/LuaJIT-2.0.4/share/lua/5.1/rnn/MaskZero.lua:76: in function 'updateOutput'
/usr/local/stow/LuaJIT-2.0.4/share/lua/5.1/rnn/LSTM.lua:162: in function 'updateOutput'
.../local/stow/LuaJIT-2.0.4/share/lua/5.1/rnn/Sequencer.lua:59: in function <.../local/stow/LuaJIT-2.0.4/share/lua/5.1/rnn/Sequencer.lua:40>
[C]: in function 'xpcall'
/usr/local/stow/LuaJIT-2.0.4/share/lua/5.1/nn/Container.lua:65: in function 'rethrowErrors'
.../local/stow/LuaJIT-2.0.4/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
train.lua:103: in function 'gradientUpgrade'
train.lua:184: in function 'main'
train.lua:192: in main chunk
[C]: in function 'dofile'
.../stow/LuaJIT-2.0.4/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00404ac0

WARNING: If you see a stack trace below, it doesn't point to the place where this error occured. Please use only the one above.
stack traceback:
[C]: in function 'error'
/usr/local/stow/LuaJIT-2.0.4/share/lua/5.1/nn/Container.lua:69: in function 'rethrowErrors'
.../local/stow/LuaJIT-2.0.4/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'

bug was supposedly fixed here

#319 #319

with merged commit bbec157 bbec157 into Element-Research:masteron August 9 in rnn package.

installed rnn using

luarocks install rnn-scm-1.rockspec

any ideas why this is?

best

Peyman

On Sep 10, 2016, at 4:23 AM, Nicholas Léonard notifications@github.com wrote:

@montyhall https://github.com/montyhall Were you able to resolve this?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #340 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AAMVYQj6I3zHRAPxisp5-2WE_gSviXiWks5qomjwgaJpZM4J5OSk.

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