
Traceback (most recent call last):


 "<stdin>", line 3, in <module>


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Util/number.py", line 138, in getRandomNBitInteger

value = getRandomInteger (N-1, randfunc)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Util/number.py", line 104, in getRandomInteger

S = randfunc(N>>3)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 202, in read

return self._singleton.read(bytes)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 178, in read

return _UserFriendlyRNG.read(self, bytes)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 132, in read

retval = self._fa.random_data(N)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Random/Fortuna/FortunaAccumulator.py", line 146, in random_data

self._reseed(current_time)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Random/Fortuna/FortunaAccumulator.py", line 161, in _reseed

self.generator.reseed(seed)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Random/Fortuna/FortunaGenerator.py", line 82, in reseed

self._set_key(SHAd256.new(self.key + seed).digest())


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Random/Fortuna/FortunaGenerator.py", line 101, in _set_key

self._cipher = AES.new(key, AES.MODE_CTR, counter=self.counter)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Cipher/AES.py", line 95, in new

return AESCipher(key, *args, **kwargs)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Cipher/AES.py", line 59, in __init__

blockalgo.BlockAlgo.__init__(self, _AES, key, *args, **kwargs)


 "/usr/local/Cellar/pypy3/5.5.0/libexec/site-packages/Crypto/Cipher/blockalgo.py", line 141, in __init__

self._cipher = factory.new(key, *args, **kwargs)

TypeError: argument 1 must be contiguous buffer, not bytes

Traceback (most recent call last):


 "/usr/lib64/python3.6/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)
TypeError: test_view_image() missing 1 required positional argument: 'tdata'
