FTBFS: AssertionError: seek() missing 1 required positional argument: 'whence'

Bug #1480548 reported by Hans Joachim Desserud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-zipstream (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

python-zipstream 1.1.0-2 currently fails to build from source with the following errors:
test_write_unicode (tests.test_pointerio.PointerIOTestCase) ... ok
test_init_mode (tests.test_zipstream.ZipStreamTestCase) ... FAIL
test_init_no_args (tests.test_zipstream.ZipStreamTestCase) ... ERROR
test_write_file (tests.test_zipstream.ZipStreamTestCase) ... ERROR
test_write_iterable (tests.test_zipstream.ZipStreamTestCase) ... ERROR
test_write_iterable_no_archive (tests.test_zipstream.ZipStreamTestCase) ... ERROR

======================================================================
ERROR: test_init_no_args (tests.test_zipstream.ZipStreamTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/tests/test_zipstream.py", line 28, in test_init_no_args
    zipstream.ZipFile()
  File "/«PKGBUILDDIR»/zipstream/__init__.py", line 167, in __init__
    zipfile.ZipFile.__init__(self, fileobj, mode=mode, compression=compression, allowZip64=allowZip64)
  File "/usr/lib/python3.5/zipfile.py", line 1037, in __init__
    self.fp.seek(self.start_dir)
TypeError: seek() missing 1 required positional argument: 'whence'

======================================================================
ERROR: test_write_file (tests.test_zipstream.ZipStreamTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/tests/test_zipstream.py", line 43, in test_write_file
    z = zipstream.ZipFile(mode='w')
  File "/«PKGBUILDDIR»/zipstream/__init__.py", line 167, in __init__
    zipfile.ZipFile.__init__(self, fileobj, mode=mode, compression=compression, allowZip64=allowZip64)
  File "/usr/lib/python3.5/zipfile.py", line 1037, in __init__
    self.fp.seek(self.start_dir)
TypeError: seek() missing 1 required positional argument: 'whence'

======================================================================
ERROR: test_write_iterable (tests.test_zipstream.ZipStreamTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/tests/test_zipstream.py", line 58, in test_write_iterable
    z = zipstream.ZipFile(mode='w')
  File "/«PKGBUILDDIR»/zipstream/__init__.py", line 167, in __init__
    zipfile.ZipFile.__init__(self, fileobj, mode=mode, compression=compression, allowZip64=allowZip64)
  File "/usr/lib/python3.5/zipfile.py", line 1037, in __init__
    self.fp.seek(self.start_dir)
TypeError: seek() missing 1 required positional argument: 'whence'

======================================================================
ERROR: test_write_iterable_no_archive (tests.test_zipstream.ZipStreamTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/tests/test_zipstream.py", line 78, in test_write_iterable_no_archive
    z = zipstream.ZipFile(mode='w')
  File "/«PKGBUILDDIR»/zipstream/__init__.py", line 167, in __init__
    zipfile.ZipFile.__init__(self, fileobj, mode=mode, compression=compression, allowZip64=allowZip64)
  File "/usr/lib/python3.5/zipfile.py", line 1037, in __init__
    self.fp.seek(self.start_dir)
TypeError: seek() missing 1 required positional argument: 'whence'

======================================================================
FAIL: test_init_mode (tests.test_zipstream.ZipStreamTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/tests/test_zipstream.py", line 32, in test_init_mode
    zipstream.ZipFile(mode='w')
TypeError: seek() missing 1 required positional argument: 'whence'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/«PKGBUILDDIR»/tests/test_zipstream.py", line 34, in test_init_mode
    self.fail(err)
AssertionError: seek() missing 1 required positional argument: 'whence'

----------------------------------------------------------------------
Ran 11 tests in 0.026s

FAILED (failures=1, errors=4)
E: pybuild pybuild:256: test: plugin distutils failed with: exit code=1: python3.5 setup.py test

(see https://launchpadlibrarian.net/211978288/buildlog_ubuntu-wily-amd64.python-zipstream_1.1.0-2_BUILDING.txt.gz for complete log)

I get the same errors when I attempt to build the package on Ubuntu Wily, but I was not able to reproduce the issue on Debian unstable. Might be related to the on-going python3.5 issues.

Tags: ftbfs wily
Revision history for this message
Aigars Mahinovs (aigarius) wrote :
Changed in python-zipstream (Ubuntu):
status: New → Confirmed
Changed in python-zipstream (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Aigars Mahinovs (aigarius) wrote :

Fixed in sid in 1.1.3-1

Changed in python-zipstream (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

1.1.3-1 has been synced and built successfully in Xenial now. Thanks for forwarding this issue upstream :)

Changed in python-zipstream (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.