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()