termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.33k stars 3.07k forks source link

[Bug]: i cant run jupyter notebook #21883

Closed dionealfarisi closed 1 month ago

dionealfarisi commented 1 month ago

Problem description

Hello , i install jupyter notebook , and have get error , this A problem version

jupyter notebook Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/jupyter-notebook", line 5, in from notebook.app import main File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/notebook/app.py", line 9, in from jupyter_client.utils import ensure_async # type:ignore[attr-defined] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/jupyter_client/init.py", line 3, in from .asynchronous import AsyncKernelClient File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/jupyter_client/asynchronous/init.py", line 1, in from .client import AsyncKernelClient # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/jupyter_client/asynchronous/client.py", line 8, in import zmq.asyncio File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/zmq/init.py", line 52, in from zmq import backend File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/zmq/backend/init.py", line 30, in raise original_error from None File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/zmq/backend/init.py", line 25, in _ns = select_backend(first) ^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/zmq/backend/select.py", line 31, in select_backend mod = import_module(name) ^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/zmq/backend/cython/init.py", line 6, in from . import _zmq ImportError: dlopen failed: cannot locate symbol "PyExc_ImportError" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/zmq/backend/cython/_zmq.cpython-311.so"... Screenshot_20240927-232030

Steps to reproduce the behavior.

apt install python clang rust binutils -y pip install --upgrade pip pip install wheel cython apt install libzmq -y pip install pyzmq pip install jupyter jupyter notebook

What is the expected behavior?

No response

System information

Termux App Info

APP_NAME: Termux
PACKAGE_NAME: com.termux
VERSION_NAME: 0.118.1
VERSION_CODE: 1000
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: false
APK_RELEASE: F-Droid
SIGNING_CERTIFICATE_SHA256_DIGEST: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42

Termux:API App Info

APP_NAME: Termux:API
PACKAGE_NAME: com.termux.api
VERSION_NAME: 0.50.1
VERSION_CODE: 51
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: false
APK_RELEASE: F-Droid
SIGNING_CERTIFICATE_SHA256_DIGEST: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42

Termux:Float App Info

APP_NAME: Termux:Float
PACKAGE_NAME: com.termux.window
VERSION_NAME: 0.15.0
VERSION_CODE: 15
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: false
APK_RELEASE: F-Droid
SIGNING_CERTIFICATE_SHA256_DIGEST: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42

Device Info

Software

OS_VERSION: 4.19.191-gd7bb700cdd52-dirty
SDK_INT: 31
RELEASE: 12
ID: SP1A.210812.016
DISPLAY: X6823C-H6513FGHIJK-SGo-GL-240509V1267
INCREMENTAL: 240509V1267
SECURITY_PATCH: 2024-05-05
IS_DEBUGGABLE: 0
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys

Hardware

MANUFACTURER: INFINIX
BRAND: Infinix
MODEL: Infinix X6823C
PRODUCT: X6823C-GL
BOARD: Infinix-X6823C
HARDWARE: mt6762G
DEVICE: Infinix-X6823C
SUPPORTED_ABIS: armeabi-v7a, armeabi

sylirre commented 1 month ago

reinstall pyzmq using this command:

pkg upgrade
LDFLAGS="-lpython3.12" pip3 install --no-cache-dir pyzmq