gsal
2013-08-10 05:56:50 UTC
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.
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.