Python Forum
[PyGame] "Can't perform operation for unregistered loader type" error
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] "Can't perform operation for unregistered loader type" error
#3
(May-15-2017, 12:25 PM)metulburr Wrote: What is the source for when the button is clicked?

Since the error is referring to resources....Does the button have an image in it and how are you handling the resources with your setup.py script? Have you tried the other methods as well pyinstaller/py2exe?

Here is my source code:
https://github.com/ppcmdgames/NilapatriRacer

The main file containing the code is 'NilapatriRacer.py'.

I found a tutorial here and did it as in the tutorial:
https://pythonprogramming.net/pygame-pyt...t-1-intro/

 I did try py2exe and pyinstaller, but I couldn't make a working setup file. I found out this error is caused due to python not recognising the program as a package and it can be fixed by adding a file called '_init_.py', but I don't know where to add it.
Reply


Messages In This Thread
RE: "Can't perform operation for unregistered loader type" error - by PPCMD - Sep-01-2017, 12:03 PM

Forum Jump:

User Panel Messages

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