hughperkins / pytorch

Python wrappers for torch and lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

got below error while initiating the class

tiru1930 opened this issue · comments

commented

Traceback (most recent call last):
File "pythonwrap.py", line 5, in
tansclass=Torchclass()
File "/home/tiru/qgencode/qgen/lib/python3.5/site-packages/PyTorch-4.1.1_SNAPSHOT-py3.5-linux-x86_64.egg/PyTorchHelpers.py", line 20, in init
PyTorchAug.LuaClass.init(self, splitName, *args)
File "/home/tiru/qgencode/qgen/lib/python3.5/site-packages/PyTorch-4.1.1_SNAPSHOT-py3.5-linux-x86_64.egg/PyTorchAug.py", line 255, in init
raise Exception(errorMessage)
Exception: attempt to call a nil value

I think it looks like it cant find Torchclass in the LUA_PATH/LUA_CPATH etc. I think you might want to double-check how these env vars look, maybe try running the unit tests, check they run ok, ie https://github.com/hughperkins/pytorch/blob/master/run_tests.sh

commented

Ok. You mean, all is working ok now?

commented

Ok, great! :)