Your message dated Tue, 12 Nov 2013 15:34:15 +0000
with message-id <[email protected]>
and subject line Bug#690425: fixed in python-django-extensions 1.2.5-1
has caused the Debian Bug report #690425,
regarding sqldiff commands is incompatible with current Django
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
690425: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690425
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-django-extensions
Version: 0.6+git201107051902-1
Severity: serious

Hello,

it looks like sqldiff in django_extensions has bitrotten considerably:

$ ./manage.py sqldiff 
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 443, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 
196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 
232, in execute
    output = self.handle(*args, **options)
  File 
"/usr/lib/pymodules/python2.7/django_extensions/management/commands/sqldiff.py",
 line 583, in handle
    if settings.DATABASE_ENGINE == 'dummy':
  File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 185, 
in inner
    return func(self._wrapped, *args)
AttributeError: 'Settings' object has no attribute 'DATABASE_ENGINE'

See: https://docs.djangoproject.com/en/1.2/ref/settings/#deprecated-settings

I replaced DATABASE_ENGINE with DATABASES["default"]["ENGINE"], and now I hit:
http://stackoverflow.com/questions/7042463/django-postgres-transaction-managed-block-ended-with-pending-commit-rollback

I commented out transaction usage and now I get this:

$ ./manage.py sqldiff services
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 443, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 
196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 
232, in execute
    output = self.handle(*args, **options)
  File 
"/usr/lib/pymodules/python2.7/django_extensions/management/commands/sqldiff.py",
 line 612, in handle
    sqldiff_instance.find_differences()
  File 
"/usr/lib/pymodules/python2.7/django_extensions/management/commands/sqldiff.py",
 line 359, in find_differences
    self.find_field_type_differ(meta, table_description, table_name)
  File 
"/usr/lib/pymodules/python2.7/django_extensions/management/commands/sqldiff.py",
 line 279, in find_field_type_differ
    model_type = self.strip_parameters(self.get_field_model_type(field))
  File 
"/usr/lib/pymodules/python2.7/django_extensions/management/commands/sqldiff.py",
 line 164, in get_field_model_type
    return field.db_type()
TypeError: db_type() takes exactly 2 arguments (1 given)

Finally, I passed django.db.connection to all db_type calls in sqldiff.py, and
the command works, limited to the 'default' database.

I copied 
https://raw.github.com/django-extensions/django-extensions/master/django_extensions/management/commands/sqldiff.py
to /usr/share/pyshared/django_extensions/management/commands/sqldiff.py and it
also worked, so a saner fix could probably be to just fetch the new sqldiff.py
from upstream.


Ciao,

Enrico


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-django-extensions depends on:
ii  python          2.7.3~rc2-1
ii  python-django   1.4.1-2
ii  python-support  1.0.15

Versions of packages python-django-extensions recommends:
ii  libjs-jquery  1.7.2+debian-2.1

Versions of packages python-django-extensions suggests:
ii  python [python-profiler]  2.7.3~rc2-1
pn  python-boto               <none>
pn  python-keyczar            <none>
ii  python-pygraphviz         1.1-2
ii  python-werkzeug           0.8.3+dfsg-1

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: python-django-extensions
Source-Version: 1.2.5-1

We believe that the bug you reported is fixed in the latest version of
python-django-extensions, which is due to be installed in the Debian FTP 
archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stephan Sürken <[email protected]> (supplier of updated 
python-django-extensions package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 12 Nov 2013 16:14:34 +0100
Source: python-django-extensions
Binary: python-django-extensions
Architecture: source all
Version: 1.2.5-1
Distribution: unstable
Urgency: low
Maintainer: Stephan Sürken <[email protected]>
Changed-By: Stephan Sürken <[email protected]>
Description: 
 python-django-extensions - Useful extensions for Django projects
Closes: 690425
Changes: 
 python-django-extensions (1.2.5-1) unstable; urgency=low
 .
   [ Stephan Sürken ]
   * [9a4f8dd] Imported Upstream version 1.2.5 (Closes: #690425).
   * [563777b] patches/01-werkzeug-package.diff: Refresh for upstream 1.2.5.
   * [ce22404] control: New upstream needs python-six.
   * [336ae49] control: Taking over package, fix Maintainer field.
   * [10707a6] control: Update Stds-Ver to 3.9.5 (no changes needed).
Checksums-Sha1: 
 95aa8cc9bdb7b5e04df365262beb4fdb8af6cca4 1378 
python-django-extensions_1.2.5-1.dsc
 a718b254dac13a2171a3af71e69dc021ad2e619d 133492 
python-django-extensions_1.2.5.orig.tar.gz
 f519d3686bd19f82e941e7d19dcd08c10bf0acb6 4108 
python-django-extensions_1.2.5-1.debian.tar.gz
 d37d925aac538d0d9bee854819c25595d16fbe3f 98152 
python-django-extensions_1.2.5-1_all.deb
Checksums-Sha256: 
 f2c7da13f85d195ad5cbc04b991a44349b39bf2d762069e7e5421d73c978041e 1378 
python-django-extensions_1.2.5-1.dsc
 99f0c588a91c9677c6a77bd9517f2a5ee5287ca23008e90724004fca2c76d21e 133492 
python-django-extensions_1.2.5.orig.tar.gz
 f4a4452816b582ddb86d93fb3130fe61133018a1560a381311ba5b4a7b83d4f0 4108 
python-django-extensions_1.2.5-1.debian.tar.gz
 8308656d69099ad1ca234b1e11326c0072338f1cb1550847e9dd142ac1983093 98152 
python-django-extensions_1.2.5-1_all.deb
Files: 
 5648c4e8affee7138c8bcea1702dec98 1378 python optional 
python-django-extensions_1.2.5-1.dsc
 5a8f9ed4d00bd6b4e7502946a75a3317 133492 python optional 
python-django-extensions_1.2.5.orig.tar.gz
 c9d4b7871ba8c6d69cf827c8ec1acaf4 4108 python optional 
python-django-extensions_1.2.5-1.debian.tar.gz
 991c40084e9535351492745b87e0dfab 98152 python optional 
python-django-extensions_1.2.5-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFSgkfpzCVHePKM0QIRAkG4AJ4/T+Akd2rys/R2tegYvLSNgb9PYACfeEVF
bfDIkG4yKHEcUejLZbQRGKA=
=t66d
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to