'list_get()' always returns empty list

8 views
Skip to first unread message

Phoenix Sol

unread,
Apr 18, 2009, 3:50:43 PM4/18/09
to LightCloud
First of all, thanks for sharing, Plurk; this is frigging cool... 8)

But for some reason I'm getting this:
(straight from the example 'test.py' on the 'usage' page)

>>lightcloud.list_add('f_list', [1,2,3])
>>print lightcloud.list_get('f_list')
[]

Am I missing something?

Joe Tyson

unread,
Apr 18, 2009, 3:51:42 PM4/18/09
to light...@googlegroups.com
Have you installed lua on your system?
--
Joe Tyson
Samuel Goldwyn  - "A wide screen just makes a bad film twice as bad."

Phoenix Sol

unread,
Apr 18, 2009, 4:45:20 PM4/18/09
to light...@googlegroups.com
Thanks, Joe.

Yeah I've got lua5.1.3 (installed from a .deb), and compiled tyrant "--with-lua"...

(i just noticed the recipe calls for 5.1.4... but it also says lua is optional...)

Phoenix Sol

unread,
Apr 19, 2009, 1:13:08 AM4/19/09
to light...@googlegroups.com
So I installed on another machine (this time careful of my lua version).

Same issue persists.

Another symptom I guess I overlooked before is this:

>>lightcloud.incr("something")
>>print lightcloud.get("something")
None

'set' and 'get', on the other hand, seem to work fine so far...

amix

unread,
Apr 21, 2009, 5:31:41 PM4/21/09
to light...@googlegroups.com
Hi Phoenix

I don't think your Lua binding is correctly set.
incr is also implemented via Lua btw.

Regards,
Amir ( http://amix.dk/ )


2009/4/19 Phoenix Sol <pho...@burninglabs.com>:

Phoenix Sol

unread,
Apr 22, 2009, 12:45:19 AM4/22/09
to light...@googlegroups.com
Okay, thanks Amir.

On the first machine install I had a slightly older version of lua than called for, installed via .deb. But on the second try, I followed the guide exactly, and saw the same result.

Oh well, I'm sure I'll figure it out when I look through it more; thanks again =)

Suhail Doshi

unread,
May 2, 2009, 5:33:19 PM5/2/09
to LightCloud
Interestingly, incr works for me but list_add doesn't, I get None and
I've installed Lua 5.0 as well as ran configure --with-lua

On Apr 21, 9:45 pm, Phoenix Sol <phoe...@burninglabs.com> wrote:
> Okay, thanks Amir.
>
> On the first machine install I had a slightly older version of lua than
> called for, installed via .deb. But on the second try, I followed the guide
> exactly, and saw the same result.
>
> Oh well, I'm sure I'll figure it out when I look through it more; thanks
> again =)
>
> On Tue, Apr 21, 2009 at 2:31 PM, amix <ami...@gmail.com> wrote:
>
> > Hi Phoenix
>
> > I don't think your Lua binding is correctly set.
> > incr is also implemented via Lua btw.
>
> > Regards,
> > Amir (http://amix.dk/)
>
> > 2009/4/19 Phoenix Sol <phoe...@burninglabs.com>:
> > > So I installed on another machine (this time careful of my lua version).
>
> > > Same issue persists.
>
> > > Another symptom I guess I overlooked before is this:
>
> > >>>lightcloud.incr("something")
> > >>>print lightcloud.get("something")
> > > None
>
> > > 'set' and 'get', on the other hand, seem to work fine so far...
>
> > > On Sat, Apr 18, 2009 at 1:45 PM, Phoenix Sol <phoe...@burninglabs.com>
> > > wrote:
>
> > >> Thanks, Joe.
>
> > >> Yeah I've got lua5.1.3 (installed from a .deb), and compiled tyrant
> > >> "--with-lua"...
>
> > >> (i just noticed the recipe calls for 5.1.4... but it also says lua is
> > >> optional...)
>
> > >> On Sat, Apr 18, 2009 at 12:51 PM, Joe Tyson <joety...@gmail.com> wrote:
>
> > >>> Have you installed lua on your system?
>
> > >>> On Sat, Apr 18, 2009 at 3:50 PM, Phoenix Sol <phoe...@burninglabs.com>

amix

unread,
May 4, 2009, 9:36:33 AM5/4/09
to light...@googlegroups.com
On what system does this happen on?
It sounds weird.

Regards,
Amir

2009/5/2 Suhail Doshi <Digital...@gmail.com>:

Phoenix Sol

unread,
May 4, 2009, 10:57:47 AM5/4/09
to light...@googlegroups.com
64bit linux

Suhail Doshi

unread,
May 4, 2009, 1:17:30 PM5/4/09
to light...@googlegroups.com
I was running it on Mac OSX 10.5.6 (32-bit system) just as a test bed.

Suhail
--
http://mixpanel.com
Blog: http://blog.mixpanel.com

Hrunting

unread,
May 13, 2009, 11:25:13 PM5/13/09
to LightCloud
I too had this problem. It turns out by following the instructions on
the LightCloud installation page, Tokyo Tyrant doesn't build with Lua
support. The correct option is --enable-lua. Once Tokyo Tyrant was
rebuilt with this and the instances restarted, the test.py program ran
fine.

Use --with-lua=DIR if you want to direct the configure script to a
specific installation of Lua. If you're using Ubuntu with the
installed packages, --enable-lua is all you need.

On May 4, 12:17 pm, Suhail Doshi <digitalwarf...@gmail.com> wrote:
> I was running it on Mac OSX 10.5.6 (32-bit system) just as a test bed.
>
> Suhail
>
>
>
> On Mon, May 4, 2009 at 6:36 AM, amix <ami...@gmail.com> wrote:
>
> > On what system does this happen on?
> > It sounds weird.
>
> > Regards,
> > Amir
>
> > 2009/5/2 Suhail Doshi <DigitalWarf...@gmail.com>:

Phoenix Sol

unread,
May 14, 2009, 6:11:44 AM5/14/09
to light...@googlegroups.com
Hey, thanks a heap for that...

No offense to anyone, I hope.. but I have *fallen in love* with Lua,
and have practically dropped Python like a hot stone ;-)

amix

unread,
May 15, 2009, 5:25:59 AM5/15/09
to light...@googlegroups.com
Great find. This is now updated.

Kind regards,
Amir ( http://amix.dk/ )

2009/5/14 Hrunting <hrun...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages