'Kivy .exe file not working - AttributeError: 'NoneType' object has no attribute 'size'

I have an issue when I create an .exe of a Kivy application. The application runs perfectly in .py, but when I create an executable, I receive an error - AttributeError: 'NoneType' object has no attribute 'size' - in terminal when running the .exe.

The error hints at line 43 of the code which is Window.size = (1700, 1050).

I am aware that this issue has been discussed already here Kivy Window.size: [WARNING] stderr: AttributeError: 'NoneType' object has no attribute 'size', but unfortunately installing dependencies did not solve the issue. I have also tried to install older version of Kivy, but with no success.

Did anyone had similar problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source