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

No module named 'openssl' #1714

Closed
ghost opened this issue Jan 12, 2021 · 4 comments
Closed

No module named 'openssl' #1714

ghost opened this issue Jan 12, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2021

In the PyBitmessage/src/pyelliptic/cipher.py file the from openssl import OpenSSL is wrong.


(venv) u@vm:~/bitmessage/PyBitmessage/src$ python3 bitmessagemain.py
ERROR: PyBitmessage does not support Python 3+. Python 2.7.4 or greater is required.
ERROR: check_openssl failed unexpectedly.
Traceback (most recent call last):
  File "/home/u/bitmessage/PyBitmessage/src/depends.py", line 434, in check_dependencies
    has_all_dependencies &= check()
  File "/home/u/bitmessage/PyBitmessage/src/depends.py", line 277, in check_openssl
    import pyelliptic.openssl
  File "/home/u/bitmessage/PyBitmessage/src/pyelliptic/__init__.py", line 12, in <module>
    from .cipher import Cipher
  File "/home/u/bitmessage/PyBitmessage/src/pyelliptic/cipher.py", line 9, in <module>
    from openssl import OpenSSL
ModuleNotFoundError: No module named 'openssl'
PyBitmessage cannot start. One or more dependencies are unavailable.

I installed a few other modules like PyOpenSSL and even tried to import the module outside of the virtual environment:

Python 3.9.1 (default, Dec  8 2020, 07:51:42) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import openssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'openssl'
>>> from openssl import OpenSSL
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'openssl'
>>> 

cc / @PeterSurda @g1itch @navjotcis

@PeterSurda
Copy link
Member

As it says, python 3 isn't supported at the moment.

@ghost
Copy link
Author

ghost commented Jan 27, 2021

Debian 11 only supports python3 and there is no python-msgpack anymore.
#1712

I'm looking forward for a python3 version of PyBitmessage!

@PeterSurda
Copy link
Member

Unfortunately you'll have to wait a bit. Internally we do have a python3 version, but it has bad code quality and lots of other problems. This is why we need a plan to make the migration work properly.

It may take a bit of time. In the meantime I would like to add support for appimage/flatpak/snap to the delivery pipeline so that users like you can keep using PyBitmessage even if the dependencies aren't supported by your distro.

@ghost
Copy link
Author

ghost commented Feb 3, 2021

@PeterSurda I would like to test it or help to rewrite the code. Can you give me access to the python3 version of program?
This is a Debian 11 based distribution but I run quiet a few VM as well.

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

No branches or pull requests

1 participant