* Aleksey Kravchenko <rhash.ad...@gmail.com>, 2011-12-18, 14:05:
Can't reproduce the bug.
The following script perfectly works after installing python-rhash and
librhash0:
--- start of test_rhash.py ---
import rhash
hasher = rhash.RHash(rhash.CRC32, rhash.MD5)
hasher.update('Hello, ')
hasher.update('world!')
hasher.finish()
print hasher.HEX(rhash.CRC32)
print hasher.hex(rhash.MD5)
--- end of test_rhash.py ---
Oh, does it? Full transcript attached.
--
Jakub Wilk
# apt-get install -qq python-rhash
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package librhash0.
(Reading database ... 10615 files and directories currently installed.)
Unpacking librhash0 (from .../librhash0_1.2.8-2+b1_i386.deb) ...
Selecting previously unselected package python-rhash.
Unpacking python-rhash (from .../python-rhash_1.2.8-2_all.deb) ...
Setting up librhash0 (1.2.8-2+b1) ...
Setting up python-rhash (1.2.8-2) ...
# python test_rhash.py
bash: python: command not found
# apt-get install -qq python
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libncursesw5.
(Reading database ... 10625 files and directories currently installed.)
Unpacking libncursesw5 (from .../libncursesw5_5.9-4_i386.deb) ...
Selecting previously unselected package libssl1.0.0.
Unpacking libssl1.0.0 (from .../libssl1.0.0_1.0.0e-3_i386.deb) ...
Selecting previously unselected package libexpat1.
Unpacking libexpat1 (from .../libexpat1_2.0.1-7.2_i386.deb) ...
Selecting previously unselected package libdb4.8.
Unpacking libdb4.8 (from .../libdb4.8_4.8.30-11_i386.deb) ...
Selecting previously unselected package libsqlite3-0.
Unpacking libsqlite3-0 (from .../libsqlite3-0_3.7.9-2_i386.deb) ...
Selecting previously unselected package mime-support.
Unpacking mime-support (from .../mime-support_3.51-1_all.deb) ...
Selecting previously unselected package python2.7-minimal.
Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.2-8_i386.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.2-8_i386.deb) ...
Selecting previously unselected package python-minimal.
Unpacking python-minimal (from .../python-minimal_2.7.2-9_all.deb) ...
Selecting previously unselected package python.
Unpacking python (from .../python_2.7.2-9_all.deb) ...
Setting up libncursesw5 (5.9-4) ...
Setting up libssl1.0.0 (1.0.0e-3) ...
Setting up libexpat1 (2.0.1-7.2) ...
Setting up libdb4.8 (4.8.30-11) ...
Setting up libsqlite3-0 (3.7.9-2) ...
Setting up mime-support (3.51-1) ...
update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto
mode.
Setting up python2.7-minimal (2.7.2-8) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python2.7 (2.7.2-8) ...
Setting up python-minimal (2.7.2-9) ...
Setting up python (2.7.2-9) ...
# python test_rhash.py
Traceback (most recent call last):
File "test_rhash.py", line 1, in <module>
import rhash
ImportError: No module named rhash