SQLAlchemy seems broken with current Python trunk

Issue #1100 resolved
Former user created an issue

I don't know if you're already interested in 2.6 compatibility, but I thought I'd just report this: when I try to run the SQLAlchemy tests with a current Python 2.6 checkout, I get the following traceback:

$ export PYTHONPATH=./test/
$ python2.6 test/alltests.py
/Users/lukas/tmp/sqlalchemy/lib/sqlalchemy/util.py:7: DeprecationWarning: the sets module is deprecated
  import inspect, itertools, new, operator, sets, sys, warnings, weakref
Traceback (most recent call last):
  File "test/alltests.py", line 24, in <module>
testenv.main(suite())
  File "test/alltests.py", line 19, in suite
alltests.addTest(suite.suite())
  File "/Users/lukas/tmp/sqlalchemy/test/sql/alltests.py", line 31, in suite
mod = __import__(name)
  File "/Users/lukas/tmp/sqlalchemy/test/sql/select.py", line 33, in <module>
schema = 'remote_owner'
  File "/Users/lukas/tmp/sqlalchemy/test/testlib/schema.py", line 62, in Table
return schema.Table(*args, **kw)
  File "/Users/lukas/tmp/sqlalchemy/lib/sqlalchemy/schema.py", line 113, in __call__
return type.__call__(self, name, metadata, *args, **kwargs)
  File "/Users/lukas/tmp/sqlalchemy/lib/sqlalchemy/schema.py", line 211, in __init__
self.primary_key = PrimaryKeyConstraint()
  File "/Users/lukas/tmp/sqlalchemy/lib/sqlalchemy/schema.py", line 300, in _set_primary_key
self.constraints.add(pk)
TypeError: unhashable type: 'PrimaryKeyConstraint'

This is on OS X 10.5, currently I don't have any other machines or operating systems available for testing, sorry. That bug does not occur with Python 2.5.

Comments (3)

  1. Log in to comment