django-admin.py test

52 views
Skip to first unread message

Aljoša Mohorović

unread,
Mar 22, 2012, 8:30:50 AM3/22/12
to ibm...@googlegroups.com
everything looks ok but starts failing after it creates tables and
starts handling fixtures.
attached file is full output of "django-admin.py test"

$ java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)

$ jython --version
Jython 2.5.2

$ pip freeze
Django==1.3.1
distribute==0.6.19
ibm-db-django==1.0.3
wsgiref==0.1.2

$ django-admin.py test
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Installing custom SQL ...
Installing indexes ...
No fixtures found.
....Problem installing fixture
'/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/django/contrib/auth/fixtures/authtestdata.json':
Traceback (most recent call last):
File "/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/django/core/management/commands/loaddata.py",
line 174, in handle
obj.save(using=using)
File "/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/django/core/serializers/base.py",
line 165, in save
models.Model.save_base(self.object, using=using, raw=True)
File "/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/django/db/models/base.py",
line 521, in save_base
if (force_update or (not force_insert and
File "/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/django/db/models/query.py",
line 496, in exists
return self.query.has_results(using=self.db)
File "/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/django/db/models/sql/query.py",
line 424, in has_results
return bool(compiler.execute_sql(SINGLE))
File "/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/django/db/models/sql/compiler.py",
line 742, in execute_sql
return cursor.fetchone()
File "/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/ibm_db_django/jybase.py",
line 119, in fetchone
return self._fix_return_data_type( row )
File "/home/aljosa/Projects/<PROJECT>/env/Lib/site-packages/ibm_db_django/jybase.py",
line 145, in _fix_return_data_type
row = list( row )
TypeError: 'NoneType' object is not iterable

out.txt

Rahul

unread,
Mar 22, 2012, 12:44:00 PM3/22/12
to ibm_db
The error you are getting because your Django version is 1.3.x but
currently ibm_db_django only supports Django v1.0.x and v1.1.x on
Jython.

Thanks,
Rahul Priyadarshi

On Mar 22, 5:30 pm, Aljoša Mohorović <aljosa.mohoro...@gmail.com>
wrote:
>  out.txt
> 222KViewDownload
Reply all
Reply to author
Forward
0 new messages