lua-spore - beginner's question

106 views
Skip to first unread message

P Solver

unread,
Dec 22, 2012, 3:20:26 PM12/22/12
to spore...@googlegroups.com
Hi,

I'm trying to learn how to use spore with lua.

When I try to run the example, 'GitHub via http' from the website http://fperrad.github.com/lua-Spore/spore.html#examples

I get the following output:
404
lua5.1: (error object is not a string)

With spore.debug enabled i get:
lua5.1: /usr/share/lua/5.1/Spore/Protocols.lua:130: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
/usr/share/lua/5.1/Spore/Protocols.lua:130: in function 'request'
/usr/share/lua/5.1/Spore/Protocols.lua:42: in function 'slurp'
/usr/share/lua/5.1/Spore.lua:246: in function 'new_from_spec'
/.../.../.../.../githubvaihttp.lua:4: in main chunk
[C]: ?

Also, is it possible to use spore with lua5.2?
I created the folder /usr/lib/lua/5.2 and copied all the lua5.1 luarock files, but i still get the following error msg:
lua: error loading module 'mine.core' from file '/usr/lib/lua/5.2/mime/core.so':
/usr/lib/lua/5.2/mime/core.so: undefined symbol: luaL_prepbuffer

Any help will be appreciated.

François Perrad

unread,
Jan 11, 2013, 12:22:17 PM1/11/13
to spore...@googlegroups.com
2012/12/22 P Solver <agentdu...@gmail.com>:
> Hi,
>
> I'm trying to learn how to use spore with lua.
>
> When I try to run the example, 'GitHub via http' from the website
> http://fperrad.github.com/lua-Spore/spore.html#examples
>
> I get the following output:
> GET http://github.com/api/v2/json/user/show/schacon

api v2 is obsolete, the current one is v3.

> 404
> lua5.1: (error object is not a string)
>
> With spore.debug enabled i get:
> GET https://raw.github.com/SPORE/api-description/master/services/github.json
> lua5.1: /usr/share/lua/5.1/Spore/Protocols.lua:130: bad argument #1 to
> 'pairs' (table expected, got nil)

fixed in HEAD
Reply all
Reply to author
Forward
0 new messages