Module for secure randomness not loaded when installed from PyPI package
See original GitHub issueTFE installed via pip will currently not load the secure randomness module. Error seems to come from TensorFlow:
>>> secure_random_module = tf.load_op_library(shared_object)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/miniconda3/envs/tfe-release-py35/lib/python3.5/site-packages/tensorflow/python/framework/load_library.py", line 61, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: dlopen(/usr/local/miniconda3/envs/tfe-release-py35/lib/python3.5/site-packages/tf_encrypted/operations/secure_random/secure_random_module_tf_1.13.1.so, 6): no suitable image found. Did find:
/usr/local/miniconda3/envs/tfe-release-py35/lib/python3.5/site-packages/tf_encrypted/operations/secure_random/secure_random_module_tf_1.13.1.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/usr/local/miniconda3/envs/tfe-release-py35/lib/python3.5/site-packages/tf_encrypted/operations/secure_random/secure_random_module_tf_1.13.1.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
Package should come with this for both Python 3.5 and 3.6 and both Linux and macOS.
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (19 by maintainers)
Top Results From Across the Web
Error comes while installation of random module of python
You don't have to install the random module, since it's a built-in module and it comes with the standard Python installation.
Read more >Secrets | Python module to Generate secure random numbers
The secrets module is used for generating random numbers for managing important data such as passwords, account authentication, security ...
Read more >How to install the random module in python - Quora
Basically random module comes with python by default. So there is no need to install. You can simply use it by importing, like...
Read more >random — Generate pseudo-random numbers — Python 3.11 ...
This module implements pseudo-random number generators for various distributions. For integers, there is uniform selection from a range. For sequences, there is ...
Read more >nose-randomly - PyPI
Nose plugin to randomly order tests and control random.seed. ... shuffles the submodules, TestCase classes + test functions when loading a module of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looked into how tf-encrypted is getting installed on windows and it looks like it just installs the source tarball if there’s no wheel available. I think we should either not upload the tarball or add to the secure randomness warning message that it’s not supported on windows.
Yeah not sure what happened there. Maybe had 0.5.2 installed somehow?