Page MenuHomeSoftware Heritage
Paste P429

error message without pyblake2
ActivePublic

Authored by twitu on Jun 12 2019, 6:27 PM.
______________________________________________ TestGitLoader.test_load_unchanged ______________________________________________
self = <swh.loader.git.tests.test_loader.TestGitLoader testMethod=test_load_unchanged>
def test_load_unchanged(self):
"""Checks loading a repository a second time does not add
any extra data."""
res = self.load()
> self.assertEqual(res['status'], 'eventful')
E AssertionError: 'failed' != 'eventful'
E - failed
E + eventful
swh/loader/git/tests/test_from_disk.py:173: AssertionError
---------------------------------------------------- Captured stderr call -----------------------------------------------------
counting objects: 18
------------------------------------------------------ Captured log call ------------------------------------------------------
loader.py 909 ERROR Loading failure, updating to `partial` status
Traceback (most recent call last):
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/loader/core/loader.py", line 896, in load
self.store_data()
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/loader/core/loader.py", line 1003, in store_data
self.send_batch_contents(self.get_contents())
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/loader/core/loader.py", line 649, in send_batch_contents
packet_size_bytes=packet_size_bytes)
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/loader/core/loader.py", line 34, in send_in_packets
for obj in objects:
File "/home/twitu/Code/swh-environment/swh-loader-git/swh/loader/git/loader.py", line 379, in get_contents
self.get_content_ids(), 'sha1_git'))
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/storage/in_memory.py", line 316, in content_missing
for cont in content:
File "/home/twitu/Code/swh-environment/swh-loader-git/swh/loader/git/loader.py", line 372, in get_content_ids
yield converters.dulwich_blob_to_content_id(raw_obj)
File "/home/twitu/Code/swh-environment/swh-loader-git/swh/loader/git/converters.py", line 32, in dulwich_blob_to_content_id
hashes = MultiHash.from_data(data, HASH_ALGORITHMS).digest()
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/model/hashutil.py", line 126, in from_data
return cls.from_file(fobj, hash_names=hash_names, length=length)
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/model/hashutil.py", line 107, in from_file
ret = cls(length=length, hash_names=hash_names)
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/model/hashutil.py", line 97, in __init__
self.state[name] = _new_hash(name, length)
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/model/hashutil.py", line 275, in _new_hash
return _new_hashlib_hash(algo)
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/model/hashutil.py", line 211, in _new_hashlib_hash
return _new_blake2_hash(algo)
File "/home/twitu/Code/swh-environment/swh-loader-git/.tox/py3/lib/python3.5/site-packages/swh/model/hashutil.py", line 197, in _new_blake2_hash
import pyblake2
ImportError: No module named 'pyblake2'

Event Timeline

twitu created this object in space S1 Public.