|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Updated Windows InstallerI'd like to create an updated Windows installer for Grecipe. Are the
instructions here: http://sourceforge.net/apps/mediawiki/grecipe-manager/index.php?title=Windows_Installation still the best starting place for doing that? Thanks, Jeremy ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
|
|
Re: Updated Windows InstallerOh, and what version of Python is the safest starting place? I see
there are many... 2.4, 2.5, 2.6, 3.x >From the changelog I'm guessing 2.5 or 2.6. Jeremy Jeremy Yoder wrote the following on 9/1/2009 2:08 PM: > I'd like to create an updated Windows installer for Grecipe. Are the > instructions here: > > http://sourceforge.net/apps/mediawiki/grecipe-manager/index.php?title=Windows_Installation > > still the best starting place for doing that? > > Thanks, > Jeremy > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Grecipe-manager-devel mailing list > Grecipe-manager-devel@... > https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel > > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
|
|
Re: Updated Windows InstallerThe wiki is the best starting place. If you find inaccuracies, etc., it would be a double service to the project if you updated the documentation as you went for those who follow in your footsteps.
Python 3.x is not backwards compatible. Your best bet is to use the latest 2.4-2.6 should all work, but it's probably best to use 2.6 (there have been some bugs caused by changes in python 2.6, but it's best that we keep catching and fixing these bugs as it will make an eventual move to 3.x easier once that becomes standard). Best of luck with the build -- I know having a new Windows release would be an enormous service to the project. Tom On Tue, Sep 1, 2009 at 2:13 PM, Jeremy Yoder <jyoder@...> wrote: Oh, and what version of Python is the safest starting place? I see ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
|
|
Re: Updated Windows InstallerAfter a bit of initial difficulty (specifically getting GTK to load) I'm
finally making some progress. The next error I'm gettingis from winprinter.py line 2. It's saying it can't find a module named pdf_exporter on this line: from pdf_exporter import PdfWriter, PdfExporterMultiDoc, get_pdf_prefs I do have reportlab installed, and I see that pdf_exporter.py is in the gourmet folder here: .../Lib/site-packages/gourmet/plugins/imort_export/pdf_plugin/pdf_exporter.py It also looks like recipe_emailer has a very similar line at the top and I presume that's more cross-platform. Any idea why it can't find it? I know just enough Python to be able to read it, so debugging something like this is a challenge :) Thanks! Jeremy Thomas Mills Hinkle wrote the following on 9/1/2009 9:27 PM: > The wiki is the best starting place. If you find inaccuracies, etc., > it would be a double service to the project if you updated the > documentation as you went for those who follow in your footsteps. > > Python 3.x is not backwards compatible. Your best bet is to use the > latest 2.4-2.6 should all work, but it's probably best to use 2.6 > (there have been some bugs caused by changes in python 2.6, but it's > best that we keep catching and fixing these bugs as it will make an > eventual move to 3.x easier once that becomes standard). > > Best of luck with the build -- I know having a new Windows release > would be an enormous service to the project. > > Tom > > On Tue, Sep 1, 2009 at 2:13 PM, Jeremy Yoder <jyoder@... > <mailto:jyoder@...>> wrote: > > Oh, and what version of Python is the safest starting place? I see > there are many... 2.4, 2.5, 2.6, 3.x > > >From the changelog I'm guessing 2.5 or 2.6. > > Jeremy > > > Jeremy Yoder wrote the following on 9/1/2009 2:08 PM: > > I'd like to create an updated Windows installer for Grecipe. > Are the > > instructions here: > > > > > http://sourceforge.net/apps/mediawiki/grecipe-manager/index.php?title=Windows_Installation > > > > still the best starting place for doing that? > > > > Thanks, > > Jeremy > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 30-Day > > trial. Simplify your report design, integration and deployment - > and focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Grecipe-manager-devel mailing list > > Grecipe-manager-devel@... > <mailto:Grecipe-manager-devel@...> > > https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel > > > > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 30-Day > trial. Simplify your report design, integration and deployment - > and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Grecipe-manager-devel mailing list > Grecipe-manager-devel@... > <mailto:Grecipe-manager-devel@...> > https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
|
|
Re: Updated Windows InstallerAttached is a patch that resolves my problems with GTK on Windows.
This took a while to find, but the patch is from here: http://faq.pygtk.org/index.py?req=show&file=faq21.009.htp <http://faq.pygtk.org/index.py?req=show&file=faq21.009.htp> I modified it very slightly and added it to gglobals.py. I still can't figure out what's wrong with pdf_exporter. Jeremy Jeremy Yoder wrote: > After a bit of initial difficulty (specifically getting GTK to load) I'm > finally making some progress. > > The next error I'm gettingis from winprinter.py line 2. It's saying it > can't find a module named pdf_exporter on this line: > from pdf_exporter import PdfWriter, PdfExporterMultiDoc, get_pdf_prefs > > I do have reportlab installed, and I see that pdf_exporter.py is in the > gourmet folder here: > .../Lib/site-packages/gourmet/plugins/imort_export/pdf_plugin/pdf_exporter.py > > It also looks like recipe_emailer has a very similar line at the top and > I presume that's more cross-platform. > > Any idea why it can't find it? I know just enough Python to be able to > read it, so debugging something like this is a challenge :) > > Thanks! > Jeremy > > > Thomas Mills Hinkle wrote the following on 9/1/2009 9:27 PM: > >> The wiki is the best starting place. If you find inaccuracies, etc., >> it would be a double service to the project if you updated the >> documentation as you went for those who follow in your footsteps. >> >> Python 3.x is not backwards compatible. Your best bet is to use the >> latest 2.4-2.6 should all work, but it's probably best to use 2.6 >> (there have been some bugs caused by changes in python 2.6, but it's >> best that we keep catching and fixing these bugs as it will make an >> eventual move to 3.x easier once that becomes standard). >> >> Best of luck with the build -- I know having a new Windows release >> would be an enormous service to the project. >> >> Tom >> >> On Tue, Sep 1, 2009 at 2:13 PM, Jeremy Yoder <jyoder@... >> <mailto:jyoder@...>> wrote: >> >> Oh, and what version of Python is the safest starting place? I see >> there are many... 2.4, 2.5, 2.6, 3.x >> >> >From the changelog I'm guessing 2.5 or 2.6. >> >> Jeremy >> >> >> Jeremy Yoder wrote the following on 9/1/2009 2:08 PM: >> > I'd like to create an updated Windows installer for Grecipe. >> Are the >> > instructions here: >> > >> > >> http://sourceforge.net/apps/mediawiki/grecipe-manager/index.php?title=Windows_Installation >> > >> > still the best starting place for doing that? >> > >> > Thanks, >> > Jeremy >> > >> > >> ------------------------------------------------------------------------------ >> > Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> > trial. Simplify your report design, integration and deployment - >> and focus on >> > what you do best, core application coding. Discover what's new with >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july >> > _______________________________________________ >> > Grecipe-manager-devel mailing list >> > Grecipe-manager-devel@... >> <mailto:Grecipe-manager-devel@...> >> > https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel >> > >> > >> > >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Grecipe-manager-devel mailing list >> Grecipe-manager-devel@... >> <mailto:Grecipe-manager-devel@...> >> https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel >> >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Grecipe-manager-devel mailing list > Grecipe-manager-devel@... > https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel > > > diff --git a/src/lib/gglobals.py b/src/lib/gglobals.py index 50c95be..3da6f07 100644 --- a/src/lib/gglobals.py +++ b/src/lib/gglobals.py @@ -27,7 +27,26 @@ makedirs = os.makedirs # def makedirs (path): # gnomevfs.make_directory(path,gnomevfs.PERM_USER_ALL) -import os, os.path, gobject, re, gtk, gtk.glade +import os, os.path, re, sys +if sys.platform.startswith("win"): + # Fetchs gtk2 path from registry + import _winreg + import msvcrt + try: + k = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "Software\\GTK\\2.0") + except EnvironmentError: + print "You must install the Gtk+ 2.2 Runtime Environment to run this program" + while not msvcrt.kbhit(): + pass + sys.exit(1) + else: + gtkdir = _winreg.QueryValueEx(k, "Path") + os.environ['PATH'] += ";%s\\lib;%s\\bin" % (gtkdir[0], gtkdir[0]) + print os.environ['PATH'] + import pygtk + pygtk.require ('2.0') + +import gobject, gtk, gtk.glade import tempfile from gdebug import debug from OptionParser import options ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
|
|
|
|
|
Re: Updated Windows InstallerI'm using Ubuntu 9.04 on my current dev machine, as you guessed :)
Tom On Mon, Sep 7, 2009 at 11:53 AM, Jeremy Yoder <jyoder@...> wrote: I wish. That was just me typing the path wrong (guess I should have copy/pasted it :) ) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
| Free embeddable forum powered by Nabble | Forum Help |