_sha3.sha3() return Attribute Error
After install sha3, and running it with a received package under Mac OS 10.13.2, when the calling library reference
self._s = _sha3.sha3()
AttributeError: module '_sha3' has no attribute 'sha3'
Below is the stack dump
Traceback (most recent call last):
File "/usr/local/bin/indy", line 4, in
File "/usr/local/lib/python3.6/site-packages/indy_plenum-1.2.29-py3.6.egg/state/trie/pruning_trie.py", line 196, in
Hi.
Try to import sha3 instead.
Do
self._s = sha3.sha3() # no underscore
instead of
self._s = _sha3.sha3()
The module with the underscore in front is the low level C module and should not be called directly
Take care
I think I was unclear.
The error occured in the python module /usr/local/lib/python3.6/site-packages/sha3-0.2.1-py3.6-macosx-10.13-x86_64.egg/sha3/init.py.
I have a suspicion that I am running into some compiler issues on the mac which are not generating the _sha3.cpython-36m-darwin.so correctly. (I have both gcc and the Mac compilers)
Björn Edström wrote on 1/18/18 2:21 AM:
Hi.
Try to import sha3 instead.
Do
self._s = sha3.sha3() # no underscore
instead of
self._s = _sha3.sha3()
The module with the underscore in front is the low level C module and should not be called directly
Take care
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bjornedstrom/python-sha3/issues/6#issuecomment-358602790, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFjOJKXEHhif8UZHmHT8q87cEoIQ2BH3ks5tLxtCgaJpZM4RiNLd.
[cid:[email protected]]
Stephen Montsaroff Advanced Technologies Team [email protected]mailto:[email protected] C: 206 437 2427
This e-mail and any attachment(s) are intended only for the recipient(s) named above and others who have been specifically authorized to receive them. They may contain confidential information. If you are not the intended recipient, please do not read this email or its attachment(s). Furthermore, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and then delete this e-mail and any attachment(s) or copies thereof from your system. Thank you.
the call which triggered it is return _sha3.sha3_256(x).digest()
Montsaroff, Stephen wrote on 1/18/18 10:25 AM: I think I was unclear.
The error occured in the python module /usr/local/lib/python3.6/site-packages/sha3-0.2.1-py3.6-macosx-10.13-x86_64.egg/sha3/init.py.
I have a suspicion that I am running into some compiler issues on the mac which are not generating the _sha3.cpython-36m-darwin.so correctly. (I have both gcc and the Mac compilers)
Björn Edström wrote on 1/18/18 2:21 AM:
Hi.
Try to import sha3 instead.
Do
self._s = sha3.sha3() # no underscore
instead of
self._s = _sha3.sha3()
The module with the underscore in front is the low level C module and should not be called directly
Take care
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bjornedstrom/python-sha3/issues/6#issuecomment-358602790, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFjOJKXEHhif8UZHmHT8q87cEoIQ2BH3ks5tLxtCgaJpZM4RiNLd.
[X]
Stephen Montsaroff Advanced Technologies Team [email protected]mailto:[email protected] C: 206 437 2427
[cid:[email protected]]
Stephen Montsaroff Advanced Technologies Team [email protected]mailto:[email protected] C: 206 437 2427
This e-mail and any attachment(s) are intended only for the recipient(s) named above and others who have been specifically authorized to receive them. They may contain confidential information. If you are not the intended recipient, please do not read this email or its attachment(s). Furthermore, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and then delete this e-mail and any attachment(s) or copies thereof from your system. Thank you.