kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
777 stars 240 forks source link

ImportError: dynamic module does not define module export function (PyInit__bcrypt) #725

Open dtm1976 opened 2 years ago

dtm1976 commented 2 years ago

Hello all, I'm having an issues by running my app on tablet. There is no recipe for bcrypt. I got a file from "python_for_android" and adapted for kivy-ios (as well as related modules: pycparser, cffi, requests). Building process was successful, but unfortunately I got an error by running even on simulator. I installed rust for building the newest version, I installed older version 3.1.7, all cases were successful by building but not running. I use the newest version kivy-ios installed from git. I had the same issues by building "pyproj" package. I managed to build it but had the ImportError-issue by running. I see that my knowledge is not enough for using recipes maybe someone can give me some advice. I will be grateful for your help. Best regards, Taras Dalyak

JanBartos6 commented 1 year ago

Hi, I have the same problem. My error log: https://gist.github.com/JanBartos6/ddd0e13f9fc5ca7c7fabff04cdc259be

tcaduser commented 1 year ago

Please see issue #848 for my recent experience. When your module is loaded in any of your init scripts you would need to remove any leading dots:

import _bcrypt

instead of

from . import _bcrypt

Note that your module name is "_bcrypt", being loaded in bcrypt/__init__.py