You're probably not including the resource directory in the resulting
bundle:
datas = [
('resources', 'resources')
]
HTH,
On 15/12/2016 22:39, Mitchell Barton wrote:
I've been trying to package my pyglet app into an executable with
pyinstaller, but am running into problems. The error I keep on getting
has to do with resources -
|Traceback (most recent call last): File "yep.py", line 23, in <module>
File "pyglet/resource.py", line 529, in image File
"pyglet/resource.py", line 458, in _alloc_image File
"pyglet/resource.py", line 414, in file
pyglet.resource.ResourceNotFoundException: Resource "ad.jpg" was not
found on the path. Ensure that the filename has the correct
captialisation.|
I'm using pyglet.resource.image to load images, but this isn't
working. Is this something I'm doing wrong with pyglet, or does
pyinstaller simply not work with pyglet?
--
You received this message because you are subscribed to the Google
Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" 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/pyglet-users.
For more options, visit https://groups.google.com/d/optout.