Sorry for the OT post - this is a really weird problem and I am not sure which list to use.
On a button event I do this:
import frameplotmpl as plot
self.Charts = plot.PlotFrame(parent=self)
I do not get any errors on the import line, but after that I get:
'module' object has no attribute 'PlotFrame'
I tested the same installer on different machines and it always works, except for this one customer.
I added a "print dir(plot)" and the customer sees this:
['__builtins__', '__doc__', '__file__', '__loader__', '__name__', 'arange', 'matplotlib', 'pi', 'sin', 'sys', 'twcbcopyright', 'wx']
Following is the beginning of frameplotmpl, looking at it and the above output there seems to be something going wrong after the line of "import matplotlib", but there is no exception.
Looking at this now I guess I should ask on the matplotlib list too.
Any hints would really be appreciated - finding the issue is even more complicated as I don't have access to the customers machine.
Werner
"start of framplotmpl"
import twcbcopyright
import wx
import wx.lib.masked.numctrl
import sys
if not hasattr(sys, 'frozen'):
import pkg_resources
pkg_resources.require("pytz") # get latest version
from numpy import arange, sin, pi
import matplotlib
matplotlib.use('WXAgg')
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wx import NavigationToolbar2Wx
from matplotlib.dates import YearLocator, MonthLocator, DateFormatter
from matplotlib.ticker import FormatStrFormatter
from matplotlib.font_manager import FontProperties
from matplotlib.colors import cnames as cNames
del cNames['black']
monthsFmt = DateFormatter('%b')