Page MenuHomeSoftware Heritage
Paste P103

[Fixed] packaging swh-storage: problem with transitive runtime dependency from swh.core on python3-yaml
ActivePublic

Authored by ardumont on Aug 23 2016, 4:16 PM.
TL;DR Problem with swh-core/requirements.txt with the wrong package name
Fixed in rDCOREfd7f8845a6a710fe80cb91dd85deab3826f86907
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage
copying swh/storage/converters.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage
copying swh/storage/db.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage
copying swh/storage/listener.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage
copying swh/storage/exc.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage
copying swh/storage/storage.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage
copying swh/storage/common.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage
copying swh/storage/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver
copying swh/storage/archiver/storage.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver
copying swh/storage/archiver/director.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver
copying swh/storage/archiver/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver
copying swh/storage/archiver/worker.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver
copying swh/storage/archiver/tasks.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver
copying swh/storage/archiver/copier.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/api
copying swh/storage/api/client.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/api
copying swh/storage/api/server.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/api
copying swh/storage/api/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/api
package init file 'swh/storage/tests/__init__.py' not found (or not a regular file)
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests
copying swh/storage/tests/test_archiver.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests
copying swh/storage/tests/test_converters.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests
copying swh/storage/tests/server_testing.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests
copying swh/storage/tests/test_api_client.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests
copying swh/storage/tests/test_db.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests
copying swh/storage/tests/test_storage.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests
running egg_info
writing top-level names to swh.storage.egg-info/top_level.txt
writing dependency_links to swh.storage.egg-info/dependency_links.txt
writing requirements to swh.storage.egg-info/requires.txt
writing swh.storage.egg-info/PKG-INFO
reading manifest file 'swh.storage.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'swh.storage.egg-info/SOURCES.txt'
running build_scripts
creating build
creating build/scripts-3.5
copying and adjusting bin/swh-storage-add-dir -> build/scripts-3.5
changing mode of build/scripts-3.5/swh-storage-add-dir from 664 to 775
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="cd {build_dir}; python{version} -m nose swh -sva '!db'" \
dh_auto_test
I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build; python3.5 -m nose swh -sva '!db'
Failure: ImportError (No module named 'yaml') ... ERROR
Failure: ImportError (No module named 'yaml') ... ERROR
Failure: ImportError (No module named 'yaml') ... ERROR
db_to_author (test_converters.TestConverters) ... ok
db_to_git_headers (test_converters.TestConverters) ... ok
db_to_release (test_converters.TestConverters) ... ok
db_to_revision (test_converters.TestConverters) ... ok
======================================================================
ERROR: Failure: ImportError (No module named 'yaml')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python3.5/imp.py", line 244, in load_module
return load_package(name, filename)
File "/usr/lib/python3.5/imp.py", line 216, in load_package
return _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver/__init__.py", line 1, in <module>
from .director import ArchiverDirector # NOQA
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver/director.py", line 6, in <module>
from swh.core import config
File "/usr/lib/python3/dist-packages/swh/core/config.py", line 8, in <module>
import yaml
ImportError: No module named 'yaml'
======================================================================
ERROR: Failure: ImportError (No module named 'yaml')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests/test_api_client.py", line 12, in <module>
from swh.storage.api.server import app
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/api/server.py", line 12, in <module>
from swh.core import config
File "/usr/lib/python3/dist-packages/swh/core/config.py", line 8, in <module>
import yaml
ImportError: No module named 'yaml'
======================================================================
ERROR: Failure: ImportError (No module named 'yaml')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/tests/test_archiver.py", line 19, in <module>
from swh.storage.archiver import ArchiverDirector, ArchiverWorker
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver/__init__.py", line 1, in <module>
from .director import ArchiverDirector # NOQA
File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/swh/storage/archiver/director.py", line 6, in <module>
from swh.core import config
File "/usr/lib/python3/dist-packages/swh/core/config.py", line 8, in <module>
import yaml
ImportError: No module named 'yaml'
----------------------------------------------------------------------
Ran 7 tests in 0.134s
FAILED (errors=3)
E: pybuild pybuild:276: test: plugin custom failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build; python3.5 -m nose swh -sva '!db'
dh_auto_test: pybuild --test --test-nose -i python{version} -p 3.5 returned exit code 13
debian/rules:18: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:6: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
--------------------------------------------------------------------------------
Build finished at 2016-08-23T14:07:22Z
Finished
--------
+------------------------------------------------------------------------------+
| Cleanup |
+------------------------------------------------------------------------------+
Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
E: Build failure (dpkg-buildpackage died)
+------------------------------------------------------------------------------+
| Summary |
+------------------------------------------------------------------------------+
Build Architecture: amd64
Build-Space: 0
Build-Time: 2
Distribution: unstable-swh
Fail-Stage: build
Host Architecture: amd64
Install-Time: 45
Job: /tmp/tmp.DzK8xExGYl/swh-storage_0.0.50-1.dsc
Machine Architecture: amd64
Package: swh-storage
Package-Time: 51
Source-Version: 0.0.50-1
Space: 0
Status: failed
Version: 0.0.50-1
--------------------------------------------------------------------------------
Finished at 2016-08-23T14:07:22Z
Build needed 00:00:00, 0k disc space
E: Build failure (dpkg-buildpackage died)

Event Timeline

ardumont created this paste.Aug 23 2016, 4:16 PM
ardumont changed the title of this paste from packaging swh-storage: problem with transitive runtime dependency from swh.core on python3-yaml to [Fixed] packaging swh-storage: problem with transitive runtime dependency from swh.core on python3-yaml.Aug 23 2016, 4:28 PM
ardumont edited the content of this paste. (Show Details)