So, I have a working program that starts like this:
import os
import sys
import numpy as np
from pylab import *
from matplotlib.widgets import Slider
from matplotlib.patches import FancyBboxPatch, Rectangle
but when I cx_freeze it, it complains about some missing backend_ stuff, so,
I do:
import os
import sys
import numpy as np
*import matplotlib
matplotlib.use("TkAgg")
*from pylab import *
from matplotlib.widgets import Slider
from matplotlib.patches import FancyBboxPatch, Rectangle
but the problem continues...
...anybody know how to solve this problem?
I would appreciate very much.
Oh, here is the setup file generated with cx_freeze
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages = [], excludes = [])
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('c.py', base=base)
]
setup(name='Cross-slot-flux',
version = '1.0',
description = 'Visual',
options = dict(build_exe = buildOptions),
executables = executables)
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/cx-freeze-ing-tp41780.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users