The solution here is to use setup.py and include every single pyglet module
and submodule manually. Also, you will need to specify TCL_LIBRARY and
TK_LIBRARY properties. Like this:
https://github.com/t-o-n-y-p/rssim/blob/master/setup.py
пятница, 24 ноября 2017 г., 4:00:31 UTC+4 пользователь mat campos написал:
>
> It occurs when running the exe (i used the cxfreeze command line util, no
> setup.py).
>
> Tried pyinstaller and it worked fine, so, might be a good replacement.
>
>
>
>
>
> El jueves, 23 de noviembre de 2017, 8:33:25 (UTC-3), dodgyville escribió:
>>
>> When does your problem occur? During the build or when running the exe?
>>
>> If it helps I've been using pyinstaller for my windows exes lately and
>> think it is more robust
>>
>> But I can build an msi on windows using cx_freeze on python3.5.
>>
>> py -3 setup.py bdist_msi
>>
>> Some quirks: To include scipy I needed to add this to setup.py:
>>
>> # fix for including scipy on windows ONLY
>> def load_scipy_patched(finder, module):
>> """the scipy module loads items within itself in a way that causes
>> problems without the entire package and a number of other
>> subpackages
>> being present."""
>> finder.IncludePackage("scipy._lib") # Changed include from scipy.lib
>> to scipy._lib
>> finder.IncludePackage("scipy.misc")
>>
>> if platform.system() == "Windows":
>> hooks.load_scipy = load_scipy_patched #only for windows build
>>
>>
>> and because I want to use ogg files, I needed to have these in my
>> includedfiles list:
>>
>> "libogg.dll",
>> "libvorbis.dll",
>> "libvorbisfile.dll",
>> "libmmd.dll",
>> "libifcoremd.dll",
>>
>>
>>
>> On 22 November 2017 at 14:24, mat campos <[email protected]> wrote:
>>
>>> Hi all
>>>
>>> Has anyone tried to create a Windows .exe with pyglet 1.3 and cx_freeze?
>>> (python 3.6.2)
>>>
>>> I'm having problems like* pyglet.window has no attribute 'Window'*.
>>> Tried a few other combinations (like using the pyglet folder in the
>>> directory, instead of pip install) but i end up having problems with
>>> *future*
>>>
>>> I remember being able to create .exes before, but ¿maybe it's a new
>>> version of cxfreeze problem?.
>>>
>>> Any ideas?
>>>
>>> --
>>> 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.
>>>
>>
>>
--
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.