SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Werner F. B. <wer...@fr...> - 2010年03月15日 12:50:58
Attachments: setup.py
Hi Kim,
On 15/03/2010 10:57, Kim Hansen wrote:
> Hi group,
> I have previously had success with py2exe and matplotlib, using a
> specialized setup.py like the attached one (which is adapted from
> http://www.py2exe.org/index.cgi/MatPlotLib).
> However, now I have tried to go a step further and integrate some
> Tkinter controls in the GUI for a prototype, see attached alphabeta.py
> If I do a python setup.exe py2exe with this setup file on the attached
> Tkinter/matplotlib and alphabeta.exe is successfully created.
> However, it does not run for everyone else:
> Myself: Works like a charm
> A user with a python environment who make py2exes himself: Crashes on
> startup with the attached error log
> A user with just a Python environment: Works!
> A user with no Python environment: Crashes on startup with the same log.
> The log does not give me any good ideas as to how I could modify
> setup.py to get it working.
> Any good ideas?
Changing the line 560 in mathtext.py from:
 font = FT2Font(basename)
to:
 font = FT2Font(str(basename))
Fixed it for me, I don't know what FT2Font does and why this matters - 
hopefully someone else can expand on this.
Attached your setup.py a bit simplified as you are using matplotlib 0.99.
Werner
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /