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

Reply via email to