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) #841

Closed
JanBartos6 opened this issue Aug 13, 2023 · 1 comment

Comments

@JanBartos6
Copy link

JanBartos6 commented Aug 13, 2023

Versions

  • Python : 3.9.6
  • MacOS version : 13.5
  • XCode Version : 14.3.1
  • Cython version : 0.29.36

Describe the bug
I am trying to build paramiko which includes bcrypt with kivy-ios toolchain, and I'm getting this error log: https://gist.github.com/JanBartos6/ddd0e13f9fc5ca7c7fabff04cdc259be. It seems that the error is related to dynamic loading of bcrypt. According to my research, you can no longer use dynamic loading since iOS 9. So when I install bcrypt with toolchain pip install bcrypt and build my app, I always get this error. Is there any way how to build bcrypt as a static library or any other solution that would solve this error?

To Reproduce
Install the kivy-ios toolchain and build kivy and python with it, then install bcrypt with toolchain pip install bcrypt and make sure you imported bcrypt in your kivy project, and then build the app. You can, for example, try to build this:

from kivy.app import App
from kivy.uix.label import Label
import bcrypt

class MyApp(App):

    def build(self):
        return Label(text='Hello world')


if __name__ == '__main__':
    MyApp().run()

Logs
https://gist.github.com/JanBartos6/ddd0e13f9fc5ca7c7fabff04cdc259be

@JanBartos6
Copy link
Author

Duplicate of #725

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

1 participant