[Python-modules-team] Bug#915626: python-django: FTBFS: _pickle.PicklingError: Can't pickle <function paginator_number at 0x7f9ba2bcca60>: it's not the same object as django.contrib.admin.templatetags.admin_list.paginator_number

Andreas Beckmann anbe at debian.org
Wed Dec 5 12:28:44 GMT 2018


Source: python-django
Version: 2:2.1.4-1
Severity: serious
Justification: fails to build from source

Hi,

python-django/experimental FTBFS in a current sid+experimental pbuilder
chroot (on both amd64 and i386):

[...]
test_no_remote_user (auth_tests.test_remote_user.RemoteUserNoCreateTest) ... ok
test_unknown_user (auth_tests.test_remote_user.RemoteUserNoCreateTest) ... ok
test_user_switch_forces_new_login (auth_tests.test_remote_user.RemoteUserNoCreateTest) ... ok
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/build/python-django-2.1.4/django/test/runner.py", line 309, in _run_subsuite
    result = runner.run(subsuite)
  File "/build/python-django-2.1.4/django/test/runner.py", line 256, in run
    test(result)
  File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.6/unittest/suite.py", line 122, in run
    test(result)
  File "/build/python-django-2.1.4/django/test/testcases.py", line 206, in __call__
    super().__call__(result)
  File "/usr/lib/python3.6/unittest/case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.6/unittest/case.py", line 613, in run
    self._feedErrorsToResult(result, outcome.errors)
  File "/usr/lib/python3.6/unittest/case.py", line 543, in _feedErrorsToResult
    result.addError(test, exc_info)
  File "/build/python-django-2.1.4/django/test/runner.py", line 197, in addError
    self.check_picklable(test, err)
  File "/build/python-django-2.1.4/django/test/runner.py", line 130, in check_picklable
    self._confirm_picklable(err)
  File "/build/python-django-2.1.4/django/test/runner.py", line 104, in _confirm_picklable
    pickle.loads(pickle.dumps(obj))
_pickle.PicklingError: Can't pickle <function paginator_number at 0x7f9ba2bcca60>: it's not the same object as django.contrib.admin.templatetags.admin_list.paginator_number
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "./runtests.py", line 481, in <module>
    options.exclude_tags,
  File "./runtests.py", line 286, in django_tests
    extra_tests=extra_tests,
  File "/build/python-django-2.1.4/django/test/runner.py", line 606, in run_tests
    result = self.run_suite(suite)
  File "/build/python-django-2.1.4/django/test/runner.py", line 572, in run_suite
    return runner.run(suite)
  File "/usr/lib/python3.6/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/build/python-django-2.1.4/django/test/runner.py", line 373, in run
    subsuite_index, events = test_results.next(timeout=0.1)
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 761, in next
    raise value
_pickle.PicklingError: Can't pickle <function paginator_number at 0x7f9ba2bcca60>: it's not the same object as django.contrib.admin.templatetags.admin_list.paginator_number
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/util.py", line 262, in _run_finalizers
    finalizer()
  File "/usr/lib/python3.6/multiprocessing/util.py", line 186, in __call__
    res = self._callback(*self._args, **self._kwargs)
  File "/usr/lib/python3.6/shutil.py", line 471, in rmtree
    onerror(os.lstat, path, sys.exc_info())
  File "/usr/lib/python3.6/shutil.py", line 469, in rmtree
    orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/django_szizzrp7/pymp-2hvt6srf'
make[1]: *** [debian/rules:23: override_dh_auto_test] Error 1


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-django_2%2.1.4-1.log.gz
Type: application/gzip
Size: 140388 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20181205/19a8e0f9/attachment-0001.gz>


More information about the Python-modules-team mailing list