[gtk-osx-users] Setting up GTK getting build errors in hashlib



Hey,

Haven't ever used a mailing list so not sure what the format is so sorry in advance. 

Im on OSX 10.11.6 trying to install gtk2

Im in the process of setting up gtk so i can use opencv, so far the steps i have taken:

1: gtk-osx-build-setup.sh 

3: jhbuild bootstrap

4: jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-core


At this point I'm getting errors: 

ERROR:root:code for hash md5 was not found.

Traceback (most recent call last):

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type md5

ERROR:root:code for hash sha1 was not found.

Traceback (most recent call last):

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha1

ERROR:root:code for hash sha224 was not found.

Traceback (most recent call last):

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha224

ERROR:root:code for hash sha256 was not found.

Traceback (most recent call last):

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha256

ERROR:root:code for hash sha384 was not found.

Traceback (most recent call last):

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha384

ERROR:root:code for hash sha512 was not found.

Traceback (most recent call last):

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 147, in <module>

    globals()[__func_name] = __get_hash(__func_name)

  File "/Users/pingpang/gtk/inst/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor

    raise ValueError('unsupported hash type ' + name)

ValueError: unsupported hash type sha512

  GICOMP   gir/xrandr-1.3.gir

  GICOMP   gir/win32-1.0.gir

  GICOMP   gir/cairo-1.0.gir

Traceback (most recent call last):

  File "./g-ir-scanner", line 66, in <module>

    sys.exit(scanner_main(sys.argv))

  File "./giscanner/scannermain.py", line 526, in scanner_main

    transformer = create_transformer(namespace, options)

  File "./giscanner/scannermain.py", line 383, in create_transformer

    symbol_filter_cmd=options.symbol_filter_cmd)

  File "./giscanner/transformer.py", line 54, in __init__

    self._cachestore = CacheStore()

  File "./giscanner/cachestore.py", line 61, in __init__

    self._check_cache_version()

  File "./giscanner/cachestore.py", line 74, in _check_cache_version

    current_hash = _get_versionhash()

  File "./giscanner/cachestore.py", line 54, in _get_versionhash

    return hashlib.sha1(''.join(mtimes).encode('ascii')).hexdigest()

AttributeError: 'module' object has no attribute 'sha1'


I have tried: 


Following steps from procedure instead of quick start from the wiki


reinstalling python (2.7) wiping all progress and restarting.


Updating openSSL but i get this error:


Warning: openssl is a keg-only and another version is linked to opt.

Use `brew install --force` if you want to install this version

Connors-MBP:~ pingpang$ brew link openssl --force

Warning: Refusing to link: openssl

Linking keg-only openssl means you may end up linking against the insecure,

deprecated system OpenSSL while using the headers from Homebrew's openssl.

Instead, pass the full include/library paths to your compiler e.g.:

  -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib


Any help would be greatly appreciated thanks!



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]