Hi again,
@Anthony: I have managed to create a (sort of) minimal working program.
Here is the python code which I am trying to freeze, which is a sample code
taken from mayavi website: http://pastebin.com/1NkizeF9
And here is the setup file for cx_freeze: http://pastebin.com/ZKrA1jaz
Regarding identifying missing packages from the error description - the
description doesn't hint me in this case which one is missing...
@Ian, thanks for reply! yup, I am also copying all mayavi, tvtk, traits
into my application folder (albeit a bit differently). I did try using your
setup file, but got the same error.
If anyone got any ideas, please let me know. Thanks!
On 14 June 2016 at 23:15, Ian Bell <ian.h.b...@gmail.com> wrote:
> I had a terrible time cx_freeze-ing a mayavi project. The "solution"
> (hack) to get packaged mayavi program to run was to copy the packages into
> another folder that was not compressed and add that to the python path.
>
> See for instance
> https://github.com/usnistgov/envy-mayavi/blob/master/setup.py
>
> On Tue, Jun 14, 2016 at 12:36 PM, Rashid Bakirov <b.ras...@gmail.com>
> wrote:
>
>> Hi Anthony,
>> thanks for the answer. It indeed works when not frozen. I will try to
>> construct a minimal working program which demonstrates this behaviour and
>> post here, meanwhile if anyone has encountered something similar, please
>> share your thoughts.
>> Rashid
>>
>> On 14 June 2016 at 18:58, Anthony Tuininga <anthony.tuini...@gmail.com>
>> wrote:
>>
>>> Hi Rashid,
>>>
>>> First, does it work when it is not frozen? This is an obvious one but it
>>> is surprising how many people miss this test!
>>>
>>> Second, it is likely missing some module or file and you will need to
>>> figure out which one by looking at the code that caused the exception.
>>> cx_Freeze (and the other freezing tools) use static analysis which can be
>>> defeated by dynamic loading of modules or reading/writing files which are
>>> assumed to be in some place relative to the module (which is now in a
>>> different place).
>>>
>>> Perhaps someone else has used this package and can comment further. If
>>> you can reduce your test case down to one that can be run by someone else
>>> and which you can share, feel free to share it and we'll try to help
>>> further. Otherwise, good luck!
>>>
>>> Anthony
>>>
>>> On Tue, Jun 14, 2016 at 11:49 AM, Rashid Bakirov <b.ras...@gmail.com>
>>> wrote:
>>>
>>>> Hi all,
>>>> I have successfully used cx_freeze to package my application which
>>>> includes some mayavi elements. Except when I click on the "configure the
>>>> scene" button on mayavi toolbar, I get:
>>>> traits.trait_errors.TraitError: The 'image' trait of a Theme instance
>>>> must be an ImageResource or string that can be used to define one, but a
>>>> value of '@std:tab_active' <type 'str'> was specified.
>>>>
>>>> Any ideas how to fix this? Thanks.
>>>>
>>>> Rashid
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> What NetFlow Analyzer can do for you? Monitors network bandwidth and
>>>> traffic
>>>> patterns at an interface-level. Reveals which users, apps, and
>>>> protocols are
>>>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>>>> J-Flow, sFlow and other flows. Make informed decisions using capacity
>>>> planning
>>>> reports.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
>>>> _______________________________________________
>>>> cx-freeze-users mailing list
>>>> cx-freeze-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> What NetFlow Analyzer can do for you? Monitors network bandwidth and
>>> traffic
>>> patterns at an interface-level. Reveals which users, apps, and protocols
>>> are
>>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>>> J-Flow, sFlow and other flows. Make informed decisions using capacity
>>> planning
>>> reports.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
>>> _______________________________________________
>>> cx-freeze-users mailing list
>>> cx-freeze-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> What NetFlow Analyzer can do for you? Monitors network bandwidth and
>> traffic
>> patterns at an interface-level. Reveals which users, apps, and protocols
>> are
>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>> J-Flow, sFlow and other flows. Make informed decisions using capacity
>> planning
>> reports.
>> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
>> _______________________________________________
>> cx-freeze-users mailing list
>> cx-freeze-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.
> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users