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

class nn.SpatialGlimpse has been already assigned a parent class #95

Open
ahmadmobeen opened this issue Nov 2, 2017 · 4 comments
Open

Comments

@ahmadmobeen
Copy link

ahmadmobeen commented Nov 2, 2017

When I run command th> require 'dpnn' or when I try to run th main.lua --help from feedback networks, I get the following error:

/home/mobeen/torch/install/bin/luajit: /home/mobeen/torch/install/share/lua/5.1/trepl/init.lua:389: /home/mobeen/torch/install/share/lua/5.1/trepl/init.lua:389: /home/mobeen/torch/install/share/lua/5.1/trepl/init.lua:389: /home/mobeen/torch/install/share/lua/5.1/trepl/init.lua:389: /home/mobeen/torch/install/share/lua/5.1/torch/init.lua:102: class nn.SpatialGlimpse has been already assigned a parent class

stack traceback:
	[C]: in function 'error'
	/home/mobeen/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
	main.lua:14: in main chunk
	[C]: in function 'dofile'
	...been/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
	[C]: at 0x00406500

I have installed

luarocks install rnn
luarocks install dpnn
luarocks install nn
luarocks install cutorch

but still not working.

@itaiperi
Copy link

itaiperi commented Nov 6, 2017

Having the exact same problem here.

@itaiperi
Copy link

itaiperi commented Nov 14, 2017

@ahmadmobeen So apparently the problem is with the 'rnn' package. It used to be based on https://github.com/Element-Research/rnn but that package is now deprecated, and rnn is now from https://github.com/torch/rnn. The problem is, that torch's rnn ALSO implements some of the functionalities in 'dpnn', while Element-Research's rnn does not implement these functionalities! Therefore, if you want to use both rnn and dpnn, you have to use the deprecated package of Element-Research for now using:

git clone [email protected]:Element-Research/rnn.git
cd rnn
luarocks make rocks/rnn-scm-1.rockspec

instead of

luarocks install rnn

cause that will install torch/rnn.

@ahmadmobeen
Copy link
Author

Thank you for replying @noodlez04 but when I try to run:
git clone [email protected]:Element-Research/rnn.git

I get the following error:

Cloning into 'rnn'...
The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.255.112' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@itaiperi
Copy link

itaiperi commented Nov 29, 2017

My bad. Use the HTTPS version, and not the SSH one:
git clone https://github.com/Element-Research/rnn.git

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