Niko,

I had already found those and was experimenting with it. What I found was it
does allow the build of the exe but when I run the exe it I get the error
'ImportError: No module named backend_tkagg'. 
The fix for this seems to be to edit
C:\Python27\Lib\site-packages\matplotlib\mpl-data\matplotlibrc line No 38 to
change the default backend to 'Agg' doing this and rebuilding the exe now
allows the exe to run ok but the matplotlib graph doesn't show, there is no
error it's just doesn't display the graph.

 Details below.
Python script with matplotlibrc default backend TkAgg runs fine and displays
graph.
Python script with matplotlibrc default backend Agg runs fine and but will
not display graph.

A copy of matplotlibrc has been created in ~\build\exe.win32-2.7\mpl-data
and when the default backend is edited the result is -
PDF1.exe with matplotlibrc default backend TkAgg gives 'ImportError: No
module named backend_tkagg'.
PDF1.exe with matplotlibrc default backend Agg runs fine and but will not
display graph.

The results seem to be similar but not identical  for the .exe to the python
version.
Python TkAgg = OK
Python  Agg  = no graph
exe TkAgg = 'ImportError: No module named backend_tkagg'.
exe Agg  = no graph

Regards
One step at a time 



-----Original Message-----
From: Niko Wenselowski [mailto:n.wenselow...@uib.de] 
Sent: 04 February 2016 09:51
To: cx-freeze-users@lists.sourceforge.net
Subject: Re: [cx-freeze-users] cx_freeze errors

Hi Steve,

On 04.02.2016 09:44, Steve wrote:
> I get the error cx_Freeze.freezer.ConfigError: no file named sys (for 
> module collections.sys)
Please try adding this to the 'build_exe' dict:

"excludes": [
        "collections.sys",  # Fix for
https://bitbucket.org/anthony_tuininga/cx_freeze/issues/127/collectionssys-e
rror
        "collections.abc",  # Fix for
https://bitbucket.org/anthony_tuininga/cx_freeze/issues/127/collectionssys-e
rror
    ],



-Niko



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to