lua---csv
                                
                                 lua---csv copied to clipboard
                                
                                    lua---csv copied to clipboard
                            
                            
                            
                        csvigo not working in php apache
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
Seems it is trying to look for home when it should not exist    path = path:gsub('^~',os.getenv('HOME'))
I had to comment  out -- path = path:gsub('^~',os.getenv('HOME'))