HI,
I'm able to run my kivy python script using the terminal, but unable to run the executable file of that kivy python script. I get the following exceptions while running my executable file.
I have created executable file using pyinstaller.
Please help me,I want to run a executable file for my kivy python script.
Exceptions thrown while running executable file
2022-07-23:12:22:37,395 ERROR [parser.py:564]
Traceback (most recent call last):
File "kivy/lang/parser.py", line 553, in execute_directives
File "", line 1093, in import
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'kivymd.effects'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "kivy/lang/parser.py", line 556, in execute_directives
File "", line 1093, in import
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'kivymd.effects'
2022-07-23:12:22:37,395 WARNING [logger.py:338] stderr: Traceback (most recent call last):
2022-07-23:12:22:37,395 WARNING [logger.py:338] stderr: File "kivy/lang/parser.py", line 553, in execute_directives
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 1093, in import
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 1014, in _gcd_import
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 991, in _find_and_load
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 961, in _find_and_load_unlocked
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 219, in _call_with_frames_removed
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 1014, in _gcd_import
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 991, in _find_and_load
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 961, in _find_and_load_unlocked
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 219, in _call_with_frames_removed
2022-07-23:12:22:37,396 WARNING [logger.py:338] stderr: File "", line 1014, in _gcd_import
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 991, in _find_and_load
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 973, in _find_and_load_unlocked
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: ModuleNotFoundError: No module named 'kivymd.effects'
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr:
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: During handling of the above exception, another exception occurred:
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr:
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: Traceback (most recent call last):
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "kivy/lang/parser.py", line 556, in execute_directives
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 1093, in import
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 1014, in _gcd_import
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 991, in _find_and_load
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 961, in _find_and_load_unlocked
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 219, in _call_with_frames_removed
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 1014, in _gcd_import
2022-07-23:12:22:37,397 WARNING [logger.py:338] stderr: File "", line 991, in _find_and_load
2022-07-23:12:22:37,398 WARNING [logger.py:338] stderr: File "", line 973, in _find_and_load_unlocked
2022-07-23:12:22:37,398 WARNING [logger.py:338] stderr: ModuleNotFoundError: No module named 'kivymd.effects'
2022-07-23:12:22:37,398 WARNING [logger.py:338] stderr:
2022-07-23:12:22:37,398 WARNING [logger.py:338] stderr: During handling of the above exception, another exception occurred:
2022-07-23:12:22:37,398 WARNING [logger.py:338] stderr:
2022-07-23:12:22:37,398 WARNING [logger.py:338] stderr: Traceback (most recent call last):
2022-07-23:12:22:37,398 WARNING [logger.py:338] stderr: File "kube.py", line 63, in
2022-07-23:12:22:37,399 WARNING [logger.py:338] stderr: from kivymd.uix.datatables import MDDataTable
2022-07-23:12:22:37,399 WARNING [logger.py:338] stderr: File "", line 991, in _find_and_load
2022-07-23:12:22:37,400 WARNING [logger.py:338] stderr: File "", line 975, in _find_and_load_unlocked
2022-07-23:12:22:37,400 WARNING [logger.py:338] stderr: File "", line 671, in _load_unlocked
2022-07-23:12:22:37,400 WARNING [logger.py:338] stderr: File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
2022-07-23:12:22:37,400 WARNING [logger.py:338] stderr: File "kivymd/uix/datatables.py", line 86, in
2022-07-23:12:22:37,400 WARNING [logger.py:338] stderr: File "kivy/lang/builder.py", line 372, in load_string
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: File "kivy/lang/parser.py", line 483, in init
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: File "kivy/lang/parser.py", line 590, in parse
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: File "kivy/lang/parser.py", line 565, in execute_directives
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: kivy.lang.parser.ParserException: Parser: File "", line 3:
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: ...
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: 1:
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: 2:#:import DEVICE_TYPE kivymd.material_resources.DEVICE_TYPE
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: >> 3:#:import StiffScrollEffect kivymd.effects.stiffscroll.StiffScrollEffect
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: 4:
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: 5:
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: ...
2022-07-23:12:22:37,401 WARNING [logger.py:338] stderr: Unable to import package 'kivymd.effects.stiffscroll.StiffScrollEffect'
On Jul 24, 2022, at 4:34 PM, Marri Sri Rahul Siddu <siddusi...@gmail.com> wrote:
--
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/656c1413-1696-4127-a0d3-66a05e700882n%40googlegroups.com.
On Jul 25, 2022, at 7:28 AM, Marri Sri Rahul Siddu <siddusi...@gmail.com> wrote:
how to import kivymd.effects???
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/f36f66b2-f8bb-4509-a9e3-94a6b6eeb70fn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/K3-jZrY_FCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/24E62089-277A-40A7-80AF-F6E223758FC2%40cox.net.
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/K3-jZrY_FCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/9FE54843-66FD-4D87-AC89-7071836C3C37%40cox.net.
from kivy.lang import Builder from kivymd.app import MDApp KV = ''' MDBoxLayout: orientation: "vertical" MDTopAppBar: title: "MDTopAppBar" MDLabel: text: "Content" halign: "center" ''' class Test(MDApp): def build(self): return Builder.load_string(KV) Test().run() i get this error: raise FactoryException('Unknown class <%s>' % name)
kivy.factory.FactoryException: Unknown class <MDTopAppBar>
--
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/CAOVTOFXXEgDpeDrOB9Ep2oEygyBFFpvjLKYcZ34mP-u8NqGdrw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/62e2bb02.050a0220.c8e3.3679SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
I’d need to see more code to help.
The error message suggests that the ButtonBehavior and the ImageRightWidget can not be combined. I would suspect the ImageRightWidget may already have a button behavior. Looking at the documentation and the source code– there is no need to add Button Behavior to the ImageRightWidget – ImageRightWidget already has the ButtonBehavior.
See: https://github.com/kivymd/KivyMD/blob/master/kivymd/uix/list/list.py#L942
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAOVTOFUY0jP0u3sov81o2iu5j_qm2DdpcmDFVJ1OgMBW_8iEbw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/62e2dc84.050a0220.7ba47.bf60SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
Share a minimal program that demonstrates the issue that I can run.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAOVTOFW-4t%2Bum-tL9BttSKOpe75Kx1%3Dwu5CqTaMBM-D5biwBYw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/62e2e1e5.050a0220.75148.87dfSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
This is not a program I can run… this is segment of your program.
That said change:
class ImageButtonRight(ButtonBehavior, ImageRightWidget):
pass
class ImageButtonLeft(ButtonBehavior, ImageLeftWidget):
pass
to:
class ImageButtonRight(ImageRightWidget):
pass
class ImageButtonLeft(ImageLeftWidget):
pass
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAOVTOFV5tBxNEs_RyUDDe9CvEE%3DaDuwwD2AnD5AOCNpyAj4bXQ%40mail.gmail.com.
class ImageButtonRight(ButtonBehavior, ImageRightWidget):
pass
class ImageButtonLeft(ButtonBehavior, ImageLeftWidget):
pass
to:
class ImageButtonRight(ImageRightWidget):
pass
class ImageButtonLeft(ImageLeftWidget):
pass
i m able to run the application
but following errors are being shown
2022-07-29:08:51:16,639 WARNING [fitimage.py:14] FitImage: Note!
In the near future the `FitImage` widget will be moved to the `kivymd.uix.fitimage` package.
Use import of this widget like this:`from kivymd.uix.fitimage import FitImage`.
2022-07-29:08:51:16,958 INFO [__init__.py:271] GL: NPOT texture support is available
2022-07-29:08:51:17,278 WARNING [parser.py:360] Deprecated property "<ColorProperty name=icon_right_color>" of object "<kivymd.uix.textfield.textfield.MDTextField object at 0x000001BCD2BC8200>" was accessed, it will be removed in a future version
2022-07-29:08:51:17,278 WARNING [parser.py:360] Deprecated property "<ColorProperty name=text_color>" of object "<kivymd.uix.textfield.textfield.MDTextField object at 0x000001BCD2BC8200>" was accessed, it will be removed in a future version
2022-07-29:08:51:17,292 WARNING [parser.py:360] Deprecated property "<OptionProperty name=color_mode>" of object "<kivymd.uix.textfield.textfield.MDTextField object at 0x000001BCD2C833C0>" was accessed, it will be removed in a future version
2022-07-29:08:51:17,293 WARNING [button.py:1028] Deprecated property "<NumericProperty name=user_font_size>" of object "<kivymd.uix.button.button.MDIconButton object at 0x000001BCD2D24580>" was accessed, it will be removed in a future version
2022-07-29:08:51:17,298 WARNING [<string>:74] Deprecated property "<OptionProperty name=theme_text_color>" of object "<kivymd.uix.button.button.MDIconButton object at 0x000001BCD2D24580>" was accessed, it will be removed in a future version
2022-07-29:08:51:17,303 WARNING [parser.py:360] Deprecated property "<ColorProperty name=text_color>" of object "<kivymd.uix.button.button.MDIconButton object at 0x000001BCD2D60DD0>" was accessed, it will be removed in a future version
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/62e2f182.ca0a0220.aa0ad.38ebSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
These warnings all look like internal kivymd changes. You can ignore them.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAOVTOFXSs8c1c8%3D5LMSHC7RAuf9odSQKO%2BT%2BY-z6m57z%2BdhjLA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/62e35451.050a0220.3271b.6cd0SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
You can use a kivy Spiner, it is easier to use that starting with Drop down.
Read: https://kivy.org/doc/stable/api-kivy.uix.spinner.html?highlight=spinner#module-kivy.uix.spinner
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAOVTOFUu1GFpnMO0qVqQhjqOPzVkAksgjWusgJWdkvcGZxk3hw%40mail.gmail.com.