Go to Post I was surprised how easily Mike hoisted me off the ground. I'm nearly 250 pounds and he lifted me up like I was a soccer ball! :ahh: - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 19-01-2011, 20:17
dysxqer dysxqer is offline
Web and Software
AKA: Zack Hickman
FRC #0166 (Chop Shop 166)
Team Role: Webmaster
 
Join Date: Jan 2010
Rookie Year: 2009
Location: new hampshire
Posts: 9
dysxqer is an unknown quantity at this point
Experience with MatPlotLib and py2exe

Hello,

Team 166 has finalized a .csv parser made in python that graphs sets of data obtained from running robot code. However, in trying to convert this file to an executable to release to the public, we've had numerous problems using py2exe with matplotlib and trying to configure it to create a working exe. Currently, we are unable to include matplotlib in the final exe, even though it is included and is usable in the python script.

I've already taken a look at the matplotlib page on py2exe but the info there hasn't given us much luck. We were hoping that someone with experience with matplotlib and py2exe can help us with the configurations.

Our setup.py:

Code:
from distutils.core import setup
import py2exe
import matplotlib
    
setup(
data_files=matplotlib.get_py2exe_datafiles(),
console=['csvparse.py'],
options={'py2exe': {
}}

)
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2011, 10:24
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Experience with MatPlotLib and py2exe

Honestly, you don't need to compile it to an exe to release it. With python code that does stuff like that, it better to release it under a liscence such as the GNU GPL or CC-BY-NO-SA or WTFPL and send out the source code with it. If you py2exe it, only people that use windows can run it. >_>
I use linux, and I am interested in using this program, and would like to have the source please.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2011, 13:13
demosthenes2k8's Avatar
demosthenes2k8 demosthenes2k8 is offline
Graduated but not gone
AKA: Matt Soucy
FRC #0166 (Chop Shop 166)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Merrimack, NH
Posts: 587
demosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to behold
Send a message via AIM to demosthenes2k8 Send a message via Yahoo to demosthenes2k8
Re: Experience with MatPlotLib and py2exe

We're aware, we're mostly trying to do this so that people who don't have Python 2.6 or 2.7 installed can use it.
It's incompatible with 3.x, because of matplotlib and numpy, and some people might not have python installed at all.

The script can be found here, as part of our Framework 166.

I love how the WTFPL is becoming popular around here...kinda wish Googlecode would let us use it.
__________________


GSR Dean's List Finalist 2011
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2011, 13:17
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Experience with MatPlotLib and py2exe

ah, good point, i thought you were using the py2exe as the only way to dist. the code
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi