Hello,

I'm a new user of PyInstaller and appreciate its simplicity.  I have, however, noticed a problem when using pygame.


pygame is an interesting Python library to create games.  It handles basic operations (like a simple 2D window, sound output, keyboard processing and so on).  When trying to make an executable out of a game using pygame, everything seems to work... but things break when pygame attempts to load its fonts.  Here's the end of the traceback I receive on calling pygame.font.Font (this is in the executable, not the original Python script):


  File "site-packages\pygame\pkgdata.py", line 50, in getResource
  File "site-packages\pkg_resources\__init__.py", line 1134, in resource_exists   File "site-packages\pkg_resources\__init__.py", line 1404, in has_resource
  File "site-packages\pkg_resources\__init__.py", line 1464, in _has
NotImplementedError: Can't perform this operation for unregistered loader type


(I am running the pyinstaller script in a virtualenv, which might also play a role.)


4The problem doesn't seem to come from pygame directly.  I only have the slightest idea of what pkg_resources actually does.  Does it sound familiar to you?  And how to fix it?


Thanks for your help,


Vincent

--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyinstaller.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/4e5a8c6f-c93e-e712-2583-b0da68332a2a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to