torpyorg / torpy

Pure python Tor client implementation
Apache License 2.0
411 stars 53 forks source link

ImportError: libssl.so.1.0.0: wrong ELF class: ELFCLASS32 #5

Closed sinancetinkaya closed 4 years ago

sinancetinkaya commented 4 years ago

Is there a way to run your script on my linux TV box? Error I get:

CoreELEC:/var/media/external # torpy_socks -p 1050 --hops 3
Traceback (most recent call last):
  File "/opt/bin/torpy_socks", line 11, in <module>
    load_entry_point('torpy==1.0.10', 'console_scripts', 'torpy_socks')()
  File "/opt/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/opt/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/opt/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/opt/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/opt/lib/python3.7/site-packages/torpy/__init__.py", line 16, in <module>
    from torpy.client import TorClient
  File "/opt/lib/python3.7/site-packages/torpy/client.py", line 22, in <module>
    from torpy.guard import TorGuard
  File "/opt/lib/python3.7/site-packages/torpy/guard.py", line 19, in <module>
    from torpy.cells import CellRelay, CellDestroy, CellCreated2, CellRelayTruncated
  File "/opt/lib/python3.7/site-packages/torpy/cells.py", line 22, in <module>
    from torpy.crypto import hybrid_encrypt
  File "/opt/lib/python3.7/site-packages/torpy/crypto.py", line 19, in <module>
    from torpy.crypto_common import sha1, aes_update, rsa_encrypt, rsa_load_der, aes_ctr_encryptor
  File "/opt/lib/python3.7/site-packages/torpy/crypto_common.py", line 30, in <module>
    bend = default_backend()
  File "/__init__.py", line 15, in default_backend
  File "/__init__.py", line 7, in <module>
  File "/backend.py", line 71, in <module>
  File "/binding.py", line 195, in <module>
  File "/binding.py", line 142, in init_static_locks
ImportError: libssl.so.1.0.0: wrong ELF class: ELFCLASS32

Device details:

CoreELEC:~ # cat /etc/*-release
NAME="CoreELEC"
VERSION="9.0.1"
ID="coreelec"
VERSION_ID="9.0"
PRETTY_NAME="CoreELEC (official): 9.0.1"
HOME_URL="https://coreelec.org"
BUG_REPORT_URL="https://github.com/CoreELEC/CoreELEC"
BUILD_ID="df47d9506043985aa1dd1f71a79cecd9dacd275d"
COREELEC_ARCH="Amlogic.arm"
COREELEC_BUILD="official"
COREELEC_PROJECT="Amlogic"
jbrown299 commented 4 years ago

Can you show?

uname -a 
file `which python`
python --version
sinancetinkaya commented 4 years ago

Nevermind, I installed python3-openssl package and it's working now. Thank you!

CoreELEC:~ # torpy_socks -i 0.0.0.0 -p 9050 --hops 3
Loading cached NetworkStatusDocument from TorCacheDirStorage: /storage/.local/share/torpy/network_status
Connecting to guard node 46.38.253.161:443 (themis; Tor 0.4.2.5)...
Creating new circuit #80000001 with 46.38.253.161:443 (themis; Tor 0.4.2.5) router...
Building 3 hops circuit...
Extending the circuit #80000001 with 77.191.221.15:9933 (NonsenseInc; Tor 0.4.1.6)...
Extending the circuit #80000001 with 192.195.80.10:9001 (delrovio; Tor 0.4.1.6)...
Start socks proxy at 0.0.0.0:9050