Bug#915626: python-django: FTBFS: _pickle.PicklingError: Can't pickle : it's not the same object as django.contrib.admin.templatetags.admin_list.paginator_

2018-12-06 Thread GCS
Hi Chris,

On Thu, Dec 6, 2018 at 5:05 PM Chris Lamb  wrote:
> I can reproduce this with libsqlite3-0 3.26.0-1 (currently in sid) but
> not with 3.25.3-2 (currently in buster). I've forwarded the test part
> to Django upstream here:
>
>   https://code.djangoproject.com/ticket/30016
>
> … but it might an upstream SQLite bug. Laszlo, any ideas at this stage?
 Indeed, there's a bug in SQLite3 in 'ALTER TABLE' handling with views
and triggers[1]. I'm going to backport the fix and upload it soon.
It's a bit late and I can't test now if it fixes your issue, but will
check it tomorrow after work.

Regards,
Laszlo/GCS
[1] https://www.sqlite.org/src/info/f44bc7a8b3fac82a



Bug#915626: python-django: FTBFS: _pickle.PicklingError: Can't pickle : it's not the same object as django.contrib.admin.templatetags.admin_list.paginator_

2018-12-06 Thread Chris Lamb
forwarded 915626 https://code.djangoproject.com/ticket/30016
thanks

[Adding sqli...@packages.debian.org to CC]

I can reproduce this with libsqlite3-0 3.26.0-1 (currently in sid) but
not with 3.25.3-2 (currently in buster). I've forwarded the test part
to Django upstream here:

  https://code.djangoproject.com/ticket/30016

… but it might an upstream SQLite bug. Laszlo, any ideas at this stage?


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#915626: python-django: FTBFS: _pickle.PicklingError: Can't pickle : it's not the same object as django.contrib.admin.templatetags.admin_list.paginator_

2018-12-05 Thread Chris Lamb
Chris Lamb wrote:

>   $ PYTHONPATH=.. python3 ./runtests.py --parallel=1 --failfast
>   […]
>   Testing against Django installed in '/home/lamby/git/debian/python-
> team/modules/python-django/django'
>   Creating test database for alias 'default'...
>   Creating test database for alias 'other'...
>   System check identified no issues (14 silenced).
>   
[…]
>   ==
>   ERROR: test_dumpdata_with_excludes (fixtures.tests.FixtureLoadingTests)

I can reproduce this on upstream's master branch, as well as the 2.1.3
tag and 2.1.2. (I will hunt a bit more later, but it's now looking
like some toolchain issue.)


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#915626: python-django: FTBFS: _pickle.PicklingError: Can't pickle : it's not the same object as django.contrib.admin.templatetags.admin_list.paginator_

2018-12-05 Thread Chris Lamb
Hi Andreas,

Curiously:

  $ cd tests
  $ PYTHONPATH=.. python3 ./runtests.py --parallel=1 --failfast
  […]
  Testing against Django installed in 
'/home/lamby/git/debian/python-team/modules/python-django/django'
  Creating test database for alias 'default'...
  Creating test database for alias 'other'...
  System check identified no issues (14 silenced).
  
.sss..ssss..s..s..sss.sE
  ==
  ERROR: test_dumpdata_with_excludes (fixtures.tests.FixtureLoadingTests)
  --
  Traceback (most recent call last):
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/backends/utils.py",
 line 85, in _execute
  return self.cursor.execute(sql, params)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/backends/sqlite3/base.py",
 line 296, in execute
  return Database.Cursor.execute(self, query, params)
  sqlite3.OperationalError: no such table: main.django_site__old
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
File 
"/home/lamby/git/debian/python-team/modules/python-django/tests/fixtures/tests.py",
 line 330, in test_dumpdata_with_excludes
  Site.objects.all().delete()
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/models/query.py",
 line 663, in delete
  deleted, _rows_count = collector.delete()
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/models/deletion.py",
 line 282, in delete
  count = qs._raw_delete(using=self.using)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/models/query.py",
 line 677, in _raw_delete
  return sql.DeleteQuery(self.model).delete_qs(self, using)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/models/sql/subqueries.py",
 line 75, in delete_qs
  cursor = self.get_compiler(using).execute_sql(CURSOR)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/models/sql/compiler.py",
 line 1065, in execute_sql
  cursor.execute(sql, params)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/backends/utils.py",
 line 68, in execute
  return self._execute_with_wrappers(sql, params, many=False, 
executor=self._execute)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/backends/utils.py",
 line 77, in _execute_with_wrappers
  return executor(sql, params, many, context)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/backends/utils.py",
 line 85, in _execute
  return self.cursor.execute(sql, params)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/utils.py", 
line 89, in __exit__
  raise dj_exc_value.with_traceback(traceback) from exc_value
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/backends/utils.py",
 line 85, in _execute
  return self.cursor.execute(sql, params)
File 
"/home/lamby/git/debian/python-team/modules/python-django/django/db/backends/sqlite3/base.py",
 line 296, in execute
  return Database.Cursor.execute(self, query, params)
  django.db.utils.OperationalError: no such table: main.django_site__old
  
  --
  Ran 572 tests in 3.948s
  
  FAILED (errors=1, skipped=13)

... but running just this test does not result in a failure:

  $ cd tests
  $ PYTHONPATH=.. python3 ./runtests.py --parallel=1 --failfast 
fixtures.tests.FixtureLoadingTests.test_dumpdata_with_excludes
   Testing against Django installed in 
'/home/lamby/git/debian/python-team/modules/python-django/django'
  Creating test database for alias 'default'...
  Creating test database for alias 'other'...
  System check identified no issues (0 silenced).
  .
  --
  Ran 1 test in 0.020s
  
  OK

(Note that this is an entirely different failure to the one you are
seeing...)


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-