holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 34 forks source link

When importing korail2, I got an error, OSError in iPad 4th gen. #332

Closed j-yschoi closed 4 months ago

j-yschoi commented 4 months ago

I have no idea if it's an issue on Carnets or not. Could you check the following issue? I'm using Carnet Plus(Carnets -Jupyter (with scipy) V1.8.3) on iPad 4th gen.(iPadOS 17.5.1) After executing the followings, I got an error

%pip install korail2 from korail2 import *

I got an error from importing as follows: OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Not found '_raw_ecb.cpython ~~~~

I don't see this error in both Linux box on Adroid and colab. Thank you.

holzschu commented 4 months ago

Installing korail2 also installed the PyCryptodome package (it's one of the requirements). The PyCryptodome package contains multiple dynamic libraries, and iOS prevents loading dynamic libraries that are not part of the original app install. The error message you see is iOS trying to load the dynamic library associated with Crypto.Cipher._raw_ecb, and failing.

a-Shell (another of my apps) has the PyCryptodome package already installed, so it might work better there.

j-yschoi commented 4 months ago

Thank you for immediate reply. I'll try it on a-Shell already installed on my iPad. Thanks for the Carnet and a-shell app.