KivyMD
KivyMD copied to clipboard
SystemError: tile cannot extend outside image
When you set kivy window state before importing kivymd occur error:
fh = fp.fileno()
AttributeError: '_idat' object has no attribute 'fileno'
...
During handling of the above exception, another exception occurred:
e.setimage(im.im, b)
SystemError: tile cannot extend outside image
from kivy.config import Config
Config.set('graphics', 'window_state', 'hidden')
from kivy.lang import Builder
from kivymd.app import MDApp
from kivy.core.window import Window
KV = """
MDBoxLayout:
orientation: "vertical"
MDToolbar:
title: "App"
"""
class Test(MDApp):
def build(self):
return Builder.load_string(KV)
def on_start(self):
Config.set('graphics', 'window_state', 'visible')
Window.show()
Test().run()
kivy: 2.1.0 kivymd: master OS: WIndows PIL: 9.0.1
@Neizvestnyj
https://user-images.githubusercontent.com/16930280/160234009-e63d6e26-e42f-4ce5-aed7-03e779b953cd.mov
@Neizvestnyj
2022-03-26.12.43.50.mov
Hmm, I reinstall all libs, and bug remains. Do you use kivy==2.1.0? Maybe it is Windows bug...
@Neizvestnyj Yes, I am using the latest version of Kivy.
@Neizvestnyj Yes, I am using the latest version of Kivy.
I think its Windows bug (maybe)
On Linux/MacOS work fine, its Windows bug. In elevation.py
https://user-images.githubusercontent.com/40869738/160346483-4212581b-63cb-460e-9cb6-999cce957147.mp4
On windows 10, pycharm, I get the same error.
from kivy.core.window._window_sdl2 import _WindowSDL2Storage
[←[1;31mCRITICAL←[0m] [App ] Unable to get a Window, abort.
any help i got this