its likely a line which needs a PY3K/PY2K directive.    

On Jan 5, 2010, at 10:16 AM, batok wrote:

> Hi,
> 
> I have python 3.1.1 installed in my mac book pro.
> 
> I also have installed sqlalchemy from svn repository and run the
> sa2to3.py script to do the refactoring.
> 
> I can import and use sql expression related code without a problem
> ( indeed using pg8000 ).  But when I try to use orm features there's a
> problem.
> 
>>>> from sqlalchemy.orm import mapper
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/local/p311/lib/python3.1/site-packages/sqlalchemy/orm/
> __init__.py", line 40, in <module>
>    from sqlalchemy.orm.properties import (
>  File "/usr/local/p311/lib/python3.1/site-packages/sqlalchemy/orm/
> properties.py", line 26, in <module>
>    from types import NoneType
> ImportError: cannot import name NoneType
> 
> When I import types in python 2.6 NoneType is included but when
> imported from python 3 NoneType is not.
> 
> Is this a bug?  A line not refactored by sa2to3.py ?
> 
> Tks in advance and happy new year.
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To post to this group, send email to sqlalch...@googlegroups.com.
> To unsubscribe from this group, send email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.
> 
> 

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


Reply via email to