lua---csv icon indicating copy to clipboard operation
lua---csv copied to clipboard

csvigo not working in php apache

Open kenkit opened this issue 8 years ago • 2 comments

From php cli it loads the csv fine, but when you get to the webpage it doesn't work. I try even getting a c++ program to execute the lua file but same error. from shell prompt it works fine. /home/cosmo/OpenBLAS/bin/luajit: /home/cosmo/OpenBLAS/share/lua/5.1/csvigo/init.lua:85: bad argument #2 to 'gsub' (string/function/table expected) stack traceback: [C]: in function 'gsub' /home/cosmo/OpenBLAS/share/lua/5.1/csvigo/init.lua:85: in function 'load' /home/cosmo/Desktop/rnn-sin/f_train.lua:52: in main chunk [C]: in function 'dofile' /home/cosmo/OpenBLAS/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00405d50

kenkit avatar Oct 18 '17 09:10 kenkit

Seems it is trying to look for home when it should not exist path = path:gsub('^~',os.getenv('HOME'))

kenkit avatar Oct 18 '17 10:10 kenkit

I had to comment out -- path = path:gsub('^~',os.getenv('HOME'))

kenkit avatar Oct 18 '17 10:10 kenkit