Local SimpleDB Install

61 views
Skip to first unread message

Ian

unread,
Jun 6, 2010, 5:26:37 AM6/6/10
to Panda
I've followed the instructions for installing panda locally from here:
http://pandastream.tumblr.com/post/52779609/playing-with-panda-without-simpledb-account
and here http://pandastream.org/docs/getting_started.

simpledb_dev.py actually required some modification due to differences
between web.py in the 0.22 and 0.3 versions. However, on attempting to
start panda, I get the following from simple_db:

127.0.0.1:50307 - - [06/Jun/2010 09:57:37] "HTTP/1.1 GET /" - 400 Bad
Request
<?xml version="1.0"?>
<Response>
<Errors>
<Error>
<Code>NoSuchDomain</Code>
<Message>The specified domain does not exist.</
Message>
<BoxUsage>0.0000219907</BoxUsage>
</Error>
</Errors>
<RequestID>0d4b2972-2a1c-49c9-8673-ca2b222761a1</RequestID>
</Response>

At the same time, panda outputs the following:

/Users/ian/src/panda/lib/simple_db.rb:104:in `query': undefined method
`each' for nil:NilClass (NoMethodError)
from /Users/ian/src/panda/app/models/profile.rb:6:in
`warn_if_no_encodings'
from /Users/ian/src/panda/config/init.rb:52
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/lib/merb-core/
bootloader.rb:1257:in `call'
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/lib/merb-core/
bootloader.rb:1257:in `run'
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/lib/merb-core/
bootloader.rb:1257:in `each'
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/lib/merb-core/
bootloader.rb:1257:in `run'
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/lib/merb-core/
bootloader.rb:99:in `run'
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/lib/merb-core/
server.rb:172:in `bootup'
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/lib/merb-core/
server.rb:42:in `start'
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/lib/merb-core.rb:
170:in `start'
from /Library/Ruby/Gems/1.8/gems/merb-core-1.0.11/bin/merb:11
from /usr/bin/merb:19:in `load'
from /usr/bin/merb:19

Anyone able able to help out? I presume the two errors are related and
the simple_db.rb error seems to be down to an empty array (which I
guess is because it can't query my local simpledb instance).

Thanks!

FYI: I changed the last few lines of simpledb_dev.py to the following,
which I think is correct given the changes in 0.22 and 0.3:

elif DEV_MODE:
app = web.application(urls,globals(),web.reloader)
app.run()
else :
app = web.application(urls,globals())
app.run()

Damien Tanner

unread,
Jun 7, 2010, 2:09:44 PM6/7/10
to panda...@googlegroups.com
Hi,

Sorry to say you're having some issues. The instructions in that post are quite old and simpledb -dev has probably changed somewhat. Right now we're focused on the new codebase which is powering the hosted version, and in time will be released as the new open source version.

At present I would highly recommend either using the AMI on EC2, or trying out the new hosted service.

Best,
Damien Tanner Damien Tanner - Co-Founder and Director, Panda
+44 (0)20 7099 7486 - pandastream.com - @pandastream
Try our new Realtime web service: http://pusherapp.com



--
You received this message because you are subscribed to the Google Groups "Panda" group.
To post to this group, send email to panda...@googlegroups.com.
To unsubscribe from this group, send email to pandastream...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pandastream?hl=en.


Ian Wootten

unread,
Jun 7, 2010, 4:28:43 PM6/7/10
to panda...@googlegroups.com
Thanks for the response Damien.

Unfortunately, my particular use case won't allow me to use amazons services. I had hoped I may be able to go some way to build a local solution that might meet my needs.

Do you guys have any idea when this distributing this latest version is likely to happen?

Damien Tanner

unread,
Jun 9, 2010, 9:29:05 AM6/9/10
to panda...@googlegroups.com
Hi Ian,

It won't be till later this year I'm afraid.

Damien Tanner Damien Tanner - Co-Founder and Director, Panda
+44 (0)20 7099 7486 - pandastream.com - @pandastream
Try our new Realtime web service: http://pusherapp.com


Ian Wootten

unread,
Jun 16, 2010, 8:45:04 AM6/16/10
to panda...@googlegroups.com
I actually found the problem was down to running an old version of simpledb dev, caused by copying and pasting the old instructions over here: http://pandastream.tumblr.com/post/52779609/playing-with-panda-without-simpledb-account

Using the latest version (0.1.10) everything installs and works fine (except for h.264 encoding). However on another snow leopard machine I found I had to tweak init files in order to get it work with bundler nicely.
Reply all
Reply to author
Forward
0 new messages