Apr-17-2017, 10:22 AM
I've created a Game using PyGame and made an executable File using cx_Freeze. The Game works fine when its run from the Python 3.4.3 interpreter, but crashes when its run from the .exe file. The Game works fine at the startup Screen, but crashes when the button to start the Game is clicked. Here are the errors the command prompt window gives:
Error:Fatal Python error: (pygame parachute) Segmentation Fault
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pygame\pkgdata.py", line 50, in
getResourc
e
if resource_exists(pkgname, identifier):
File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line
1116, in
resource_exists
return get_provider(package_or_requirement).has_resource(resource_name)
File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line
1570, in
has_resource
return self._has(self._fn(self.module_path, resource_name))
File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line
1625, in
_has
"Can't perform this operation for unregistered loader type"
NotImplementedError: Can't perform this operation for unregistered loader type
Please help me and thanks in advance.