Loading Sano library for data structures -- Getting "Attempt to call nil value error"

I have a directory called Starter2 which stores all of my app data. I downloaded a library called sano.lua which implements a variety of data structures that I want to use. This is all i have in my main.lua, which is the exact implementation spelled out in the Sano API:
 
 
[lua]
 
local sano = require “sano”

local v = sano.Vector:new()
 
 
[/lua]
 
If I run via the Corona Simulator i get the error:
 --------------------------------------------------------------------------------------------------------------
File: …eorgetown/Computer Science/GameDev/Starter2/sano.lua
Line: 7386
 
Attempt to call a nil value

stack traceback:
 
    [C]: ?
 
    …eorgetown/Computer Science/GameDev/Starter2/sano.lua:7386: in function <…eorgetown/Computer Science/GameDev/Starter2/sano.lua:7378>
 
    (tail call): ?
 
    …eorgetown/Computer Science/GameDev/Starter2/main.lua:8: in main chunk
 

 --------------------------------------------------------------------------------------------------------------

 
The reason I am really confused is that if I navigate to the Starter2 folder in terminal and run :

lua main.lua

It runs with no errors.
 
Is this a bug in the Corona Simulator? Could it be related to the fact that I am still using the Free starter version?

Is sano.lua in the same folder as your main.lua?

Yes. There is no error for the interpreter being unable to find the file, it also works via using the command line lua interpreter on the same main.lua file in my directory.

I downloaded sano.lua dropped it into a project with a main.lua that contains:

local sano = require(“sano”)
local v = sano.Vector:new()

and ran it with Corona as well as command line lua and got no errors.   The error you post refers to a line 8 in your main chunk, but you don’t have 8 lines posted above.

I just want to make sure your corona SDK projects is your Starter2 folder and that Starter2 is not a sub folder of GameDev and your Corona SDK is pointing to the Starter2 folder.

On a side note, looking at the place where it had the error, you are not going to be able to use this with Corona SDK.  It uses a lua feature known as loadstring, which we do not allow because Apple doesn’t permit use to use it.

Rob

Is sano.lua in the same folder as your main.lua?

Yes. There is no error for the interpreter being unable to find the file, it also works via using the command line lua interpreter on the same main.lua file in my directory.

I downloaded sano.lua dropped it into a project with a main.lua that contains:

local sano = require(“sano”)
local v = sano.Vector:new()

and ran it with Corona as well as command line lua and got no errors.   The error you post refers to a line 8 in your main chunk, but you don’t have 8 lines posted above.

I just want to make sure your corona SDK projects is your Starter2 folder and that Starter2 is not a sub folder of GameDev and your Corona SDK is pointing to the Starter2 folder.

On a side note, looking at the place where it had the error, you are not going to be able to use this with Corona SDK.  It uses a lua feature known as loadstring, which we do not allow because Apple doesn’t permit use to use it.

Rob