Python Forum
Error when running kivy on python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when running kivy on python
#6
(Jun-16-2023, 04:59 PM)deanhystad Wrote: The error says it cannot find a module named "kivymd". Did you install kivymd? Installing kivy does not install kivymd.

When you type "pip list" in a command shell, does it list kivymd?

I tried to change code to:
[python][


from kivymd.app import MDApp
from kivy_garden.mapview import MapView


class MyApp(MDApp):

def build(self):
mapview = MapView(zoom=10, Lat=36, Lon=-115)
return mapview
MyApp().run()
/python]

Got this error:
Error:
C:\Users\jan-e>python d:\mapfiler\map.py [INFO ] [Logger ] Record log in C:\Users\jan-e\.kivy\logs\kivy_23-06-16_21.txt [INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.3.3 [INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.1 [INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.6.0 [INFO ] [Kivy ] v2.2.0 [INFO ] [Kivy ] Installed at "D:\Python311\Lib\site-packages\kivy\__init__.py" [INFO ] [Python ] v3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] [INFO ] [Python ] Interpreter at "D:\Python311\python.exe" [INFO ] [Logger ] Purge log fired. Processing... [INFO ] [Logger ] Purge finished! [INFO ] [KivyMD ] 1.1.1, git-Unknown, 2023-06-16 (installed at "D:\Python311\Lib\site-packages\kivymd\__init__.py") [INFO ] [Factory ] 190 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2 [INFO ] [Window ] Provider: sdl2 [INFO ] [GL ] Using the "OpenGL" graphics system [INFO ] [GL ] GLEW initialization succeeded [INFO ] [GL ] Backend used <glew> [INFO ] [GL ] OpenGL version <b'4.6.0 NVIDIA 531.79'> [INFO ] [GL ] OpenGL vendor <b'NVIDIA Corporation'> [INFO ] [GL ] OpenGL renderer <b'NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2'> [INFO ] [GL ] OpenGL parsed version: 4, 6 [INFO ] [GL ] Shading version <b'4.60 NVIDIA'> [INFO ] [GL ] Texture max size <32768> [INFO ] [GL ] Texture max units <32> [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked Traceback (most recent call last): File "kivy\_event.pyx", line 235, in kivy._event.EventDispatcher.__init__ TypeError: object.__init__() takes exactly one argument (the instance to initialize) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "d:\mapfiler\map.py", line 16, in <module> MyApp().run() File "D:\Python311\Lib\site-packages\kivy\app.py", line 955, in run self._run_prepare() File "D:\Python311\Lib\site-packages\kivy\app.py", line 925, in _run_prepare root = self.build() ^^^^^^^^^^^^ File "d:\mapfiler\map.py", line 14, in build mapview = MapView(zoom=10, Lat=36, Lon=-115) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Python311\Lib\site-packages\kivy_garden\mapview\view.py", line 560, in __init__ super().__init__(**kwargs) File "D:\Python311\Lib\site-packages\kivy\uix\widget.py", line 357, in __init__ super(Widget, self).__init__(**kwargs) File "kivy\_event.pyx", line 238, in kivy._event.EventDispatcher.__init__ TypeError: Properties ['Lat', 'Lon'] passed to __init__ may not be existing property names. Valid properties are ['_pause', '_zoom', 'animation_duration', 'background_color', 'bbox', 'cache_dir', 'center', 'center_x', 'center_y', 'children', 'cls', 'delta_x', 'delta_y', 'disabled', 'double_tap_zoom', 'height', 'ids', 'lat', 'lon', 'map_source', 'motion_filter', 'opacity', 'parent', 'pause_on_action', 'pos', 'pos_hint', 'right', 'size', 'size_hint', 'size_hint_max', 'size_hint_max_x', 'size_hint_max_y', 'size_hint_min', 'size_hint_min_x', 'size_hint_min_y', 'size_hint_x', 'size_hint_y', 'snap_to_zoom', 'top', 'width', 'x', 'y', 'zoom'] C:\Users\jan-e>
Reply


Messages In This Thread
Error when running kivy on python - by janeik - Jun-16-2023, 01:21 PM
RE: Error when running kivy on python - by janeik - Jun-16-2023, 04:20 PM
RE: Error when running kivy on python - by janeik - Jun-16-2023, 07:05 PM
RE: Error when running kivy on python - by janeik - Jun-16-2023, 07:12 PM
RE: Error when running kivy on python - by janeik - Jun-16-2023, 08:55 PM
RE: Error when running kivy on python - by janeik - Jun-16-2023, 10:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error "cannot identify image file" part way through running hatflyer 0 800 Nov-02-2023, 11:45 PM
Last Post: hatflyer
  Getting error when running "MINUS" between 2 databases marlonbown 4 1,398 Nov-10-2022, 05:49 AM
Last Post: deanhystad
  Error while running code on VSC maiya 4 3,997 Jul-01-2022, 02:51 PM
Last Post: maiya
  Pandas - error when running Pycharm, but works on cmd line zxcv101 1 1,424 Jun-18-2022, 01:09 PM
Last Post: snippsat
  Error when running a matplot lib example aurelius_nero 3 7,228 Apr-24-2022, 01:24 PM
Last Post: Axel_Erfurt
  Keep getting Session management error when running imshow in pycharm pace 0 2,185 Mar-25-2021, 10:06 AM
Last Post: pace
  Error when running script on startup in Linux NoahTheNerd 0 2,030 Mar-07-2021, 04:54 PM
Last Post: NoahTheNerd
  Error when running mktorrent subprocess command pythonnewbie138 4 4,002 Sep-16-2020, 01:55 AM
Last Post: pythonnewbie138
  error while running in debug mode ModuleNotFoundError avipy123 0 2,694 Jul-14-2020, 02:05 PM
Last Post: avipy123
  Generate RPM package from a Python + Kivy application for an "offline" installation pruvosim 2 2,304 Jun-04-2020, 12:16 PM
Last Post: pruvosim

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020