Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dtm1976 opened this issue Jul 4, 2022 · 4 comments

Comments

@dtm1976
Copy link

dtm1976 commented Jul 4, 2022

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
Copy link

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

@tcaduser
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@tcaduser @dtm1976 @JanBartos6 and others