{"id":15194156,"url":"https://github.com/mwksolution/kivy-issue","last_synced_at":"2026-03-08T14:38:18.031Z","repository":{"id":207629341,"uuid":"498777564","full_name":"MWKSolution/kivy-issue","owner":"MWKSolution","description":"Kivy PyInstaller Windows issue solution","archived":false,"fork":false,"pushed_at":"2022-06-01T14:48:13.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T11:17:00.808Z","etag":null,"topics":["kivy","pyinstaller","python-3-8","windows","windows-7"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MWKSolution.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-01T14:47:27.000Z","updated_at":"2022-06-01T14:59:40.000Z","dependencies_parsed_at":"2023-11-18T00:03:13.236Z","dependency_job_id":null,"html_url":"https://github.com/MWKSolution/kivy-issue","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"fee4d7b9a2c5d7e6ceb805589358631842a6b87c"},"previous_names":["mwksolution/kivy-issue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fkivy-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fkivy-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fkivy-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fkivy-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MWKSolution","download_url":"https://codeload.github.com/MWKSolution/kivy-issue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241355040,"owners_count":19949292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kivy","pyinstaller","python-3-8","windows","windows-7"],"created_at":"2024-09-27T22:40:29.441Z","updated_at":"2026-03-08T14:38:18.026Z","avatar_url":"https://github.com/MWKSolution.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kivy + PyInstaller + Windows issue  \n\n---  \n\nAfter packaging Kivy application for Windows using PyInstaller ***Unable to get a Window, abort.*** error could apper.  \nWhen console is activated for window application log would look something like this:  \n\n```\n[DEBUG  ] [ImageSDL2   ] Load \u003cC:\\...\\default.png\u003e\n[WARNING] [Image       ] Unable to load image \u003cC:\\...\\default.png\u003e\n[CRITICAL] [Window      ] Unable to find any valuable Window provider. Please enable debug logging  \n                          (e.g. add -d if running from the command line, or change the log level in the config)  \n                           and re-run your app to identify potential causes\nsdl2 - Exception: SDL2: Unable to load image\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\__init__.py\", line 71, in core_select_lib\n    cls = cls()\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\window\\window_sdl2.py\", line 165, in __init__\n    super(WindowSDL, self).__init__()\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\window\\__init__.py\", line 1071, in __init__\n    self.create_window()\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\window\\window_sdl2.py\", line 362, in create_window\n    super(WindowSDL, self).create_window()\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\window\\__init__.py\", line 1450, in create_window\n    self.render_context = RenderContext()\n  File \"kivy\\graphics\\instructions.pyx\", line 797, in kivy.graphics.instructions.RenderContext.__init__\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\image\\__init__.py\", line 561, in __init__\n    self.filename = arg\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\image\\__init__.py\", line 754, in _set_filename\n    image = ImageLoader.load(\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\image\\__init__.py\", line 460, in load\n    im = loader(filename, **kwargs)\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\image\\__init__.py\", line 223, in __init__\n    self._data = self.load(filename)\n  File \"c:\\...\\venv\\lib\\site-packages\\kivy\\core\\image\\img_sdl2.py\", line 47, in load\n    raise Exception('SDL2: Unable to load image')\n\n import 'kivy.core.window' # \u003c_frozen_importlib_external.SourcelessFileLoader object at 0x0000000003BB4D00\u003e\n[CRITICAL] [App         ] Unable to get a Window, abort.\n```\nThe problem is that PyInstaller don't include two DLL files into package:  \n```\nlibpng16-16.dll\nzlib1.dll\n```\nThey should be added manually to the package for exe file to run properly. They are in ***\\venv\\share\\sdl2\\bin*** of current project.  \nCopy them *(for example)* to ***\\dlls***, and add line in ***main.spec*** file in ***Analysis*** class:  \n```\nbinaries=[('dlls/libpng16-16.dll', '.'), ('dlls/zlib1.dll', '.')],\n```  \nThen run  \n```\npyinstaller main.spec\n```\nThis time application should work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwksolution%2Fkivy-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwksolution%2Fkivy-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwksolution%2Fkivy-issue/lists"}