I've just overcome a problem in a test app that's using activemapper.

At the top, the imports were done like this:
   from sqlalchemy.ext.activemapper import *
   from sqlalchemy import *

Running my script gave this error:
"""
$ python test.py
Traceback (most recent call last):
   File "test.py", line 4, in ?
     class release(ActiveMapper):
   File "test.py", line 5, in release
     class mapping:
   File "test.py", line 6, in mapping
     id = column(Integer, primary_key=True)
TypeError: column() got an unexpected keyword argument 'primary_key'
$
"""

When I changed around the imports to this:
   from sqlalchemy import *
   from sqlalchemy.ext.activemapper import *
.. it worked fine.

I'm not sure how this should be fixed (if at all), but thought the 
activemapper users might be interested in it. It's likely I should be 
doing my imports differently. I had strict 'import blah' statements 
originally but shied away from it because it wasn't clear which bits 
were coming from where.

   - C

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

Reply via email to