Both Oracle and MySQL fail to run because of this error (on both 2.7
and 3.2):
File "/home/akaariai/Programming/django/tests/django/db/backends/
mysql/compiler.py", line 2, in <module>
from django.utils.itercompat import izip_longest
ImportError: cannot import name izip_longest
I get the following error when running the tests on any database on my
setup (Ubuntu 12.04, Python 3.2):
Traceback (most recent call last):
File "/home/akaariai/Programming/django/tests/regressiontests/
test_runner/tests.py", line 197, in
test_option_name_and_value_separated
self.assertNoOutput(err)
File "/home/akaariai/Programming/django/tests/regressiontests/
admin_scripts/tests.py", line 164, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually
contains '%s'" % stream)
AssertionError: 335 != 0 : Stream should be empty: actually contains
'b'\'import warnings\' failed; traceback:\nTraceback (most recent call
last):\n File "/home/akaariai/Programming/python3/lib/python3.2/
warnings.py", line 6, in <module>\n import linecache\n File "/home/
akaariai/Programming/python3/lib/python3.2/linecache.py", line 10, in
<module>\n import tokenize\nImportError: No module named tokenize
\n''
I used this to install my setup:
# sudo apt-get install python3 python3-dev virtualenv
# virtualenv -p python3 --distribute python3
# source python3/bin/activate
# pip install psycopg2
# run tests...
Am I missing some dependency?
PostgreSQL seems fine on 2.7 for the reduced test set ran
(introspection transactions inspectdb fixtures queries extra_regress
prefetch_related test_runner aggregation_regress). On 3.2 I get this
additional error:
Traceback (most recent call last):
File "/home/akaariai/Programming/django/tests/django/test/utils.py",
line 203, in inner
return test_func(*args, **kwargs)
File "/home/akaariai/Programming/django/tests/modeltests/
prefetch_related/tests.py", line 378, in test_child_link_prefetch
self.assertIn('authorwithage', connection.queries[-1]
['sql'].lower())
File "/usr/lib/python3.2/unittest/case.py", line 889, in assertIn
if member not in container:
TypeError: Type str doesn't support the buffer API
I do not have any GIS installations available on this machine.
- Anssi