KivyMD v2 IOS runtime error ..PyInit_celeb()i...

20 views
Skip to first unread message

RDCB

unread,
Jul 9, 2024, 5:52:53 PM (7 days ago) Jul 9
to Kivy users support
Hello

Using KivyMD 2.0.1.dev0 on IOS (simulation or actual device) I get the run-time error:-
<module>
     from .celebi import QuantizeCelebi
   File "<string>", line 49, in load_module
   File "/Users/rdcb/venv_test2/dist/root/python3/lib/python3.11/imp.py", line 343, in load_dynamic
 ImportError: dynamic module does not define module export function (PyInit_celebi)
Application quit abnormally!

In the same simple applications KivyMD v1.2 works ok.
From this it seems that v 2.0.1.dev0 is not yet ready for full use in released applications.

I note that there was an announcent in Feb that a stable KivyMD v 2.0.0 was available. However I have been unable to find it. The github page that describes v 2.0.0 actually downloads the development v.  2.0.1.dev0 
ie
downloads the same code as 

Is there a v 2.0.0 available somewhere ? or promised soon ?

Thanks

PS minimalist test app giving  runtime error ..PyInit_celeb()...
from kivymd.app import MDApp
from kivy.lang.builder import Builder
from kivy.uix.screenmanager import ScreenManager, Screen


class ScMn(ScreenManager):
pass


class LoginScreen(Screen):
pass


class VaultScreen(Screen):
pass


class App(MDApp):
def build(self):
screen = Builder.load_file('main.kv')
return screen

def verify(self):
# this is where I want to get the text
master = self.root.get_screen('login').ids.master_password.text
pass


App().run()

ScreenManager:
LoginScreen:
VaultScreen:
<LoginScreen>:
id: login
name: 'login'
MDTextField:
id: master_password
hint_text: "Master Password"
size_hint_x: None
width: 200
font_size: 18
pos_hint: {"center_x": 0.5, "center_y": 0.5}
# password: True
MDRectangleFlatButton:
text: "Unlock"
font_size: 12
pos_hint: {"center_x": 0.5, "center_y": 0.4}
on_release: app.verify()
<VaultScreen>:
name: 'vault'
MDLabel:
text: 'Vault'
halign: 'center'
MDRectangleFlatButton:
text: 'Back'
pos_hint: {'center_x': 0.5, 'center_y': 0.1}
on_press: root.manager.current = 'login'

Robin Barrett

unread,
Jul 9, 2024, 10:34:48 PM (7 days ago) Jul 9
to kivy-...@googlegroups.com
Oops sorry, the test app was as follows (ignore the app listing in prev message):-
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.textinput import TextInput

kv = """
<TextTest>:
# orientation: 'horizontal'
orientation: 'vertical'
Button:
size_hint: 1, 0.95
text: 'test button'
MyTextInput:
id: text_input
size_hint: 0.5, None
text_hint: 'input message...'
multiline: True
height: self.minimum_height
"""

Builder.load_string(kv)


class MyTextInput(TextInput):
def on_text_validate(self):
App.get_running_app().root.ids.text_input.text = ''

def insert_text(self, substring, from_undo=False):
if substring == '\n':
substring = ''
self.dispatch('on_text_validate')
return super(MyTextInput, self).insert_text(substring, from_undo)


class TextTest(BoxLayout):
pass


class TestApp(App):
def build(self):
t = TextTest()
return t


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

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/d582cad6-cd99-4b75-a8b4-39f924e6a7adn%40googlegroups.com.

ElliotG

unread,
Jul 10, 2024, 12:12:36 AM (7 days ago) Jul 10
to Kivy users support
As far as I know there has not yet been a "production" release of KivyMD 2.0.  Work is currently in progress. You could ask on the kivyMD discord server: https://discord.com/invite/wu3qBST

You mentioned you have an issue on IOS, with kivyMD, but your test code is only using Kivy, not KivyMD.  Is this correct?


Robin Barrett

unread,
Jul 10, 2024, 1:19:30 AM (7 days ago) Jul 10
to kivy-...@googlegroups.com
Not quite; the first line is 
from kivy.app import App

which is enough to make  2.0.1.dev0 crash when running on iPhones (1.2 ok with this)


Robin Barrett

unread,
Jul 10, 2024, 1:33:53 AM (7 days ago) Jul 10
to kivy-...@googlegroups.com
Sorry, I mean first line is actually:-
from kivymd.app import MDApp
which is enough to make  2.0.1.dev0 crash when running on iPhones (1.2 ok with this)

Robin Barrett

unread,
Jul 10, 2024, 1:41:44 AM (7 days ago) Jul 10
to kivy-...@googlegroups.com
ie the 

from kivymd.app import MDApp
just needs to be inserted at the top

(Sorry about the confusing way I wrote the question)
Reply all
Reply to author
Forward
0 new messages