lt468
lt468

Reputation: 101

Error when trying to run an executable of a python file

Fatal Python error: (pygame parachute) Segmentation Fault
Traceback (most recent call last):
     File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 1150, in resource_exists
          return get_provider(package_or_requirement).has_resource(resource_name)
     File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 1608, in has_resource
          return self.has(self.fn(self.module_path, resource_name))
     File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 1663, in _has
          "Can't perform this operation for unregistered loader type"
NotImplementedError: Can't perform this operation for unregistered loader type

I converted a python game I had made into an executable file. I then went to install the game and then went to run it. When I ran the executable file (which was just installed) it gives me that error in a cmd prompt and then says that the application stops working. Nothing from the actual game runs, it instantly stops working.

I used cx_Freeze to convert it into an executable file. I'm running Python 3.4 and have the correct cx_Freeze installed.

Upvotes: 0

Views: 581

Answers (1)

Senthil Kumaran
Senthil Kumaran

Reputation: 56871

In the various answers that I see for this kind of error. One of your directories is having a python modules, but it is not a package. So, for anything that you use in cx_Freeze, convert it to package by adding __init__.py file.

Upvotes: 1

Related Questions