karpathy / char-rnn

Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch
11.59k stars 2.58k forks source link

Global var 'path' is null in utils #93

Closed craigpfeifer closed 9 years ago

craigpfeifer commented 9 years ago

Sorry, I'm a bit of a luaN00b, trying to run the tinyshakespeare sample with the command line:

th train.lua -data_dir data/tinyshakespeare -gpuid -1 on OSX 10.10.5

and I'm getting: /usr/local/bin/luajit: ./util/CharSplitLMMinibatchLoader.lua:14: attempt to index global 'path' (a nil value) stack traceback: ./util/CharSplitLMMinibatchLoader.lua:14: in function 'create' train.lua:110: in main chunk [C]: in function 'dofile' /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk [C]: at 0x01030930f0

it is failing when the create function references the variable path, I assume this is a global variable? Is there something I'm missing?

craigpfeifer commented 9 years ago

Sorry for the question, turns out penlight wasn't installed properly. Solved!