question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module for secure randomness not loaded when installed from PyPI package

See original GitHub issue

TFE 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:closed
  • Created 4 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

3reactions
justin1121commented, Jun 4, 2019

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.

1reaction
justin1121commented, Jun 5, 2019

Yeah not sure what happened there. Maybe had 0.5.2 installed somehow?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found