You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(.venv) ~ $ cd d-net/
(.venv) ~/d-net $ python main.py
Traceback (most recent call last):
File "/data/data/com.termux/files/home/d-net/main.py", line 6, in <module>
secure_socket = wolfssl.wrap_socket(sock)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 976, in wrap_socket
return SSLSocket(sock=sock, keyfile=keyfile, certfile=certfile,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 407, in __init__
self._context = SSLContext(ssl_version, server_side)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 144, in __init__
_lib.wolfSSL_Init()
^^^^
NameError: name '_lib' is not defined
Exception ignored in: <function SSLContext.__del__ at 0x742a00c9a0>
Traceback (most recent call last):
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 167, in __del__
if getattr(self, 'native_object', _ffi.NULL) != _ffi.NULL:
^^^^
NameError: name '_ffi' is not defined
Exception ignored in: <function SSLSocket.__del__ at 0x742a00d300>
Traceback (most recent call last):
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 469, in __del__
self._release_native_object()
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 472, in _release_native_object
if getattr(self, 'native_object', _ffi.NULL) != _ffi.NULL:
^^^^
NameError: name '_ffi' is not defined
(.venv) ~/d-net $
(.venv) ~/d-net $ python
Python 3.12.7 (main, Oct 6 2024, 15:06:14) [Clang 18.0.2 (https://android.googlesource.com/toolchain/llvm-project d8003a456 on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wolfssl
>>> import socket
>>> sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
>>> wolfssl.wrap_socket(sock)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 976, in wrap_socket
return SSLSocket(sock=sock, keyfile=keyfile, certfile=certfile,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 407, in __init__
self._context = SSLContext(ssl_version, server_side)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/d-net/.venv/lib/python3.12/site-packages/wolfssl/__init__.py", line 144, in __init__
_lib.wolfSSL_Init()
^^^^
NameError: name '_lib' is not defined
>>>
I have encounter error that says: "_ffi ImportError: No module named _ffi" while run python script on Android 14 termux:
Package information:
The code
The error:
related link: wolfssl forum
The text was updated successfully, but these errors were encountered: