Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with pyinstaller not possible #2

Open
whookie opened this issue Jun 2, 2019 · 0 comments
Open

Compiling with pyinstaller not possible #2

whookie opened this issue Jun 2, 2019 · 0 comments

Comments

@whookie
Copy link

whookie commented Jun 2, 2019

I am using this library in a script which is supposed to be compiled with pyinstaller.
Everything works fine as long as python3 is installed on the machine, but thats exactly what I don't want. The executable should work without python installed.

When running the executable on a PC without python installed, I get the error:

Traceback (most recent call last):
  File "site-packages\diffiehellman\diffiehellman.py", line 40, in <module>
  File "E:\conda37\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "ssl.py", line 98, in <module>
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "v1client.py", line 4, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "E:\conda37\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "lib\securesocket.py", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "E:\conda37\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\diffiehellman\diffiehellman.py", line 43, in <module>
diffiehellman.exceptions.RNGError: RNG could not be obtained. This module currently only works with Python 3.

Any idea on how to fix it? Didn't test with py2exe, just pyinstaller (though from the error message I conclude this would probably happen with py2exe aswell).
Or is there an "easy fix" or workaround to fix it without installing python3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant