[Deluge] #3386: ImportError: /home/deluge/.local/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: Undefined symbol "OPENSSL_no_config"

23 views
Skip to first unread message

Deluge

unread,
Apr 18, 2020, 7:04:16 AM4/18/20
to delug...@googlegroups.com
#3386: ImportError: /home/deluge/.local/lib/python3.7/site-
packages/cryptography/hazmat/bindings/_openssl.abi3.so: Undefined symbol
"OPENSSL_no_config"
----------------------------+---------------------
Reporter: fdge00 | Type: bug
Status: new | Priority: minor
Milestone: needs verified | Component: Unknown
Version: 2.0.3 | Keywords:
----------------------------+---------------------
Python 3.7[[BR]]
libtorrent 1.2.5[[BR]]
boost 1.72[[BR]]
FreeBSD 11.3-RELEASE-p7 (FreeNAS-11.3-U2 amd64) (Jail Type: Basejail)

{{{
Traceback (most recent call last):
File "/home/deluge/.local/bin/deluged", line 11, in <module>
load_entry_point('deluge==2.0.4.dev0', 'console_scripts', 'deluged')()
File "/home/deluge/.local/lib/python3.7/site-
packages/deluge-2.0.4.dev0-py3.7.egg/deluge/core/daemon_entry.py", line
90, in start_daemon
from deluge.core.daemon import is_daemon_running
File "/home/deluge/.local/lib/python3.7/site-
packages/deluge-2.0.4.dev0-py3.7.egg/deluge/core/daemon.py", line 22, in
<module>
from deluge.core.core import Core
File "/home/deluge/.local/lib/python3.7/site-
packages/deluge-2.0.4.dev0-py3.7.egg/deluge/core/core.py", line 42, in
<module>
from deluge.core.rpcserver import export
File "/home/deluge/.local/lib/python3.7/site-
packages/deluge-2.0.4.dev0-py3.7.egg/deluge/core/rpcserver.py", line 21,
in <module>
from OpenSSL import crypto
File "/home/deluge/.local/lib/python3.7/site-
packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/home/deluge/.local/lib/python3.7/site-
packages/OpenSSL/crypto.py", line 15, in <module>
from OpenSSL._util import (
File "/home/deluge/.local/lib/python3.7/site-packages/OpenSSL/_util.py",
line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "/home/deluge/.local/lib/python3.7/site-
packages/cryptography/hazmat/bindings/openssl/binding.py", line 16, in
<module>
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: /home/deluge/.local/lib/python3.7/site-
packages/cryptography/hazmat/bindings/_openssl.abi3.so: Undefined symbol
"OPENSSL_no_config"
}}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3386>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Apr 20, 2020, 3:23:04 AM4/20/20
to delug...@googlegroups.com
#3386: ImportError: /home/deluge/.local/lib/python3.7/site-
packages/cryptography/hazmat/bindings/_openssl.abi3.so: Undefined symbol
"OPENSSL_no_config"
----------------------+----------------------------
Reporter: fdge00 | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Unknown | Version: 2.0.3
Resolution: | Keywords:
----------------------+----------------------------

Comment (by fdge00):

Finally got the daemon to start.[[BR]]
The problem was Python using the OpenSSL that is part of the base Jail
(OpenSSL 1.0.2s-freebsd 28 May 2019).[[BR]]
The solution was to export some paths:
{{{
export CPATH=/usr/local/include; \
export LIBRARY_PATH=/usr/local/lib; \
export LD_LIBRARY_PATH=/usr/local/lib;
}}}
(I'm going to document my other problems that were related in case anyone
else wants to do things a difficult way)[[BR]]
My other problem was I was logged in as root but I wanted deluge installed
under it's user, and I didn't want to login as that user or change it's
shell (/sbin/nologin).[[BR]]
I needed to use "--preserve-env" when using sudo:
{{{
sudo -H -u deluge python3.7 -m pip install --no-cache-dir --user --upgrade
pip; \
sudo --preserve-env -H -u deluge python3.7 -m pip install --no-cache-dir
--user --upgrade deluge;
}}}
"--no-cache-dir" is probably not necessary if it is done correctly the
first time.[[BR]]
I should have used "--preserve-env=''list''" instead but is was working
and I was done learning.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3386#comment:1>

Deluge

unread,
Apr 28, 2020, 12:59:56 AM4/28/20
to delug...@googlegroups.com
#3386: ImportError: /home/deluge/.local/lib/python3.7/site-
packages/cryptography/hazmat/bindings/_openssl.abi3.so: Undefined symbol
"OPENSSL_no_config"
----------------------+-------------------
Reporter: fdge00 | Owner:
Type: bug | Status: new
Priority: trivial | Milestone:

Component: Unknown | Version: 2.0.3
Resolution: | Keywords:
----------------------+-------------------
Changes (by fdge00):

* priority: minor => trivial
* milestone: needs verified =>


--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3386#comment:2>

Deluge

unread,
Feb 21, 2021, 7:01:07 AM2/21/21
to delug...@googlegroups.com
#3386: ImportError: /home/deluge/.local/lib/python3.7/site-
packages/cryptography/hazmat/bindings/_openssl.abi3.so: Undefined symbol
"OPENSSL_no_config"
----------------------+----------------------------
Reporter: fdge00 | Owner:
Type: bug | Status: closed
Priority: trivial | Milestone: not applicable
Component: Unknown | Version: 2.0.3
Resolution: Fixed | Keywords:
----------------------+----------------------------
Changes (by Cas):

* status: new => closed
* resolution: => Fixed
* milestone: => not applicable


--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3386#comment:3>

Reply all
Reply to author
Forward
0 new messages