Bug 195316 - File "/usr/local/lib/python2.7/hashlib.py", line 139,
Summary: File "/usr/local/lib/python2.7/hashlib.py", line 139,
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.1-RELEASE
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-23 21:43 UTC by martin
Modified: 2014-11-29 13:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2014-11-23 21:43:56 UTC
Hi there,

Sorry to bother and I'd be willing to pay here... I'm having the most difficult time trying to install Postgis - ... it requires a dependency of gtk+ (which is does not install as a dependency) which requires the use of py-sphix.

I've tried everything to try and get this installed. I am not a programmer by trade. hashlib.py seems to be having issues finding encryption modules. I've installed openssl. I've added paths to by ldconfig file:

ldconfig_paths="/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/lib /usr/local/pgsql/lib /usr/local/include"

I tried setenv for the path. If you have time to respond, it'd be greatly appreciated. Else, I'm off to corporate support. :P My system is FreeBSD10.1 btw.

root@database:/usr/local/lib/python2.7 # which openssl
/usr/bin/openssl
root@database:/usr/local/lib/python2.7 # pkg info | grep openssl
openssl-1.0.1_16 SSL and crypto library
root@database:/usr/local/lib/python2.7 #


root@database:/usr/ports/textproc/py-sphinx # make
===> py27-sphinx-1.2.3 depends on package: py27-Jinja2>=2.3 - found
===> py27-sphinx-1.2.3 depends on package: py27-docutils>=0.7 - found
===> py27-sphinx-1.2.3 depends on package: py27-setuptools27>0 - found
===> py27-sphinx-1.2.3 depends on file: /usr/local/bin/python2.7 - found
===> Configuring for py27-sphinx-1.2.3
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Comment 1 martin 2014-11-29 13:49:27 UTC
I manage to fix this one on my own - I think I had to uninstall a few associate dependencies and reinstall everything after upgrading from 9.1 to 10.1

Martin