C:\Python25>python c:\gae\app\rocket\daemon.py
Traceback (most recent call last):
File "c:\gae\app\rocket\daemon.py", line 190, in <module>
run_services(in_loop)
File "c:\gae\app\rocket\daemon.py", line 114, in run_services
exec "from %s import %s" % (service_package, service_class)
File "<string>", line 1, in <module>
File "c:\gae\app\rocket\rocket.py", line 19, in <module>
from google.appengine.api import datastore, datastore_types,
datastore_errors
ImportError: No module named google.appengine.api
Now when I change to SEND_RECEIVE, I get this error:
Traceback (most recent call last):
File "c:\gae\app\rocket\daemon.py", line 51, in <module>
exec import_config
File "<string>", line 1, in <module>
File "c:\gae\app\rocket\config.py", line 19, in <module>
"ReplicateLevel": {TYPE: REPLICATION_SERVICE, KIND: "Level", MODE:
SEND_RECEIVE, TIMESTAMP_FIELD: "modified_at", RECEIVE_FIELDS: ["k",
+"name", "number", "c
reated_at"],},
TypeError: bad operand type for unary +: 'str'
The missing module error is the one I get for every type of MODE.
python daemon.py
doesn't do anything - is there another command other than "python"?
SERVICES = {
# Define replication services for entities that you want to be
replicated here.
# Example:
# "ReplicateNotAComment": {TYPE: REPLICATION_SERVICE, KIND:
"NotAComment",},
# "ReplicateComment": {TYPE: REPLICATION_SERVICE, KIND: "Comment",
EMBEDDED_LIST_FIELDS: ["list2"]},
"ReplicateLevel": {TYPE: REPLICATION_SERVICE, KIND: "Level", MODE:
RECEIVE, TIMESTAMP_FIELD: "modified_at",},
i added a new entry to the datastore via the online admin, and
approcket transferred this and wrote the data just fine.
But I have hundreds of entries for my models that I've entered in the
past 3 months - how can I get these transferred?
2009-12-23 18:48:10
to this:
2009-12-23 18:48:10.579000
And the new approcket won't write any entries for entries that have
this long timestamp version. Anybody have a clue where this could be
happening? It's someplace in my app Python code, not approcket - as I
confirmed that these times are now being entered when you use the
online admin to enter a record, and not just via mysql via approcket.
Seems my programmer did something to change our timestamps.