[ckan-dev] Datastore & filestore via API

Sean Hammond sean.hammond at okfn.org
Tue Aug 14 09:35:52 UTC 2012


> Hi Sean,
> thanks for the useful hints!

No problem!

> First thing I cleaned the db and started from scratch. While using
> paster to reinitialize, add users, etc, I keep getting this error over
> and over:
>
> File "/home/ckan/pyenv/src/ckan/ckan/lib/activity.py", line 44, in
> before_commit
>      revision = session.revision
> AttributeError: 'Session' object has no attribute 'revision'

I don't think that's actually an error, it's an exception that the code 
deliberately catches and then logs. I think you have to have debug-level 
logging enabled to see it. I had considered removing or changing that 
log message because it is confusing.

> Having seen it before, I suspect this is somehow related to not being
> able to upload.
> Is it possible? Any pointer for solving this?

It don't think it's related. Are you still not able to upload after 
cleaning the db? Same error?




More information about the ckan-dev mailing list