Updated Windows Installer

View: New views
7 Messages — Rating Filter:   Alert me  

Updated Windows Installer

by Jeremy Yoder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Updated Windows Installer

by Jeremy Yoder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> 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 Installer

by Thomas Mills Hinkle-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...
> 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


------------------------------------------------------------------------------
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 Installer

by Jeremy Yoder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Updated Windows Installer

by Jeremy Yoder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Attached 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

Parent Message unknown Re: Updated Windows Installer

by Jeremy Yoder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I wish.  That was just me typing the path wrong (guess I should have
copy/pasted it :) )

Thanks for the sharp eyes though!

I was able to get past this error by stubbing out the winprinter.  Not  
a solution, but it's a start.

I have a new crash when I select File->New.  I've tried running against
two different installations of Glade for Win32:
http://gladewin32.sourceforge.net/ (output.txt)
http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/ (output3.txt)

What is the development platform?  Ubuntu 9.04 by chance?  (that's the
other OS I use frequently).  Whatever it is I'd like to try Gourmet on
it so I can see what it's supposed to look like and what errors/warnings
are expected.

Jeremy


Roland Duhaime wrote:

> I notice that import_export is spelled imort_export on the line below.
>  Could it be a typo that is causing the error? - Roland
>
>
> On Fri, Sep 4, 2009 at 2:24 PM, Jeremy Yoder <jyoder@...
> <mailto:jyoder@...>> 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@...>
>     > <mailto: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@...>
>     >     <mailto: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@...>
>     >     <mailto: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
>
>

**
Gdk:ERROR:gdkgc-win32.c:748:get_impl_drawable: code should not be reached
C:\PROGRA~1\COMMON~1\GTK\2.0\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IsoBuster;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Universal Extractor;C:\Program Files\Universal Extractor\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Bazaar;C:\Program Files\Glade3\lib;C:\Program Files\Glade3\bin
Couldn't find data... I hope it's in ../../../../gourmet/data/
DATAD =  c:\Python26\gourmet\data
Loading  gnomeprint  failed: trying  win
No gnome player
WARNING: Plugin module import failed
PATH: ['c:\\Python26\\gourmet', 'C:\\WINDOWS\\system32\\python26.zip', 'c:\\Python26\\DLLs', 'c:\\Python26\\lib', 'c:\\Python26\\lib\\plat-win', 'c:\\Python26\\lib\\lib-tk', 'c:\\Python26', 'c:\\Python26\\lib\\site-packages', 'c:\\Python26\\lib\\site-packages\\PIL', 'c:\\Python26\\lib\\site-packages\\gtk-2.0', 'c:\\Python26\\lib\\site-packages\\win32', 'c:\\Python26\\lib\\site-packages\\win32\\lib', 'c:\\Python26\\lib\\site-packages\\Pythonwin', '/usr/share/gourmet', 'c:\\Python26\\lib\\site-packages\\gourmet\\plugins']
WARNING: Failed to load plugin spellcheck
Traceback (most recent call last):
  File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 241, in get_module
    self._loaded = __import__(self.module)
  File "c:\Python26\lib\site-packages\gourmet\plugins\spellcheck\__init__.py", line 1, in <module>
    import reccard_spellcheck_plugin
  File "c:\Python26\lib\site-packages\gourmet\plugins\spellcheck\reccard_spellcheck_plugin.py", line 1, in <module>
    import gtk, gtkspell
ImportError: No module named gtkspell
Traceback (most recent call last):
  File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 92, in load_active_plugins
    self.active_plugins.extend(self.available_plugin_sets[p].plugins)
  File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 254, in __getattr__
    if attr == 'plugins': return self.get_plugins()
  File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 260, in get_plugins
    return self.get_module().plugins
AttributeError: 'NoneType' object has no attribute 'plugins'
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: UnitConverter: missing action UnitConverter
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: Undo: missing action Undo
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: Redo: missing action Redo
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:1305: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.glade = gtk.glade.XML(os.path.join(gladebase,'recCardDescriptionEditor.glade'))
c:\Python26\lib\site-packages\gourmet\reccard.py:1363: GtkWarning: gtk_combo_box_entry_set_text_column: assertion `entry_box->priv->text_column == -1' failed
  self.rw[c].set_text_column(0)
c:\Python26\lib\site-packages\gourmet\GourmetRecipeManager.py:720: GtkWarning: gdkpixmap-win32.c:302: CreateDIBSection failed: The operation completed successfully.
  gtk.main()
c:\Python26\lib\site-packages\gourmet\GourmetRecipeManager.py:720: GtkWarning: gdkpixmap-win32.c:114: DeleteObject failed: The operation completed successfully.
  gtk.main()

**
** Gdk:ERROR:(../../../../gtk+/gdk/win32/gdkgc-win32.c:748):get_impl_drawable: code should not be reached
C:\PROGRA~1\COMMON~1\GTK\2.0\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IsoBuster;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Universal Extractor;C:\Program Files\Universal Extractor\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Bazaar;C:\Program Files\Common Files\GTK\2.0\lib;C:\Program Files\Common Files\GTK\2.0\bin
Couldn't find data... I hope it's in ../../../../gourmet/data/
DATAD =  c:\Python26\gourmet\data
Loading  gnomeprint  failed: trying  win
No gnome player
WARNING: Plugin module import failed
PATH: ['c:\\Python26\\gourmet', 'C:\\WINDOWS\\system32\\python26.zip', 'c:\\Python26\\DLLs', 'c:\\Python26\\lib', 'c:\\Python26\\lib\\plat-win', 'c:\\Python26\\lib\\lib-tk', 'c:\\Python26', 'c:\\Python26\\lib\\site-packages', 'c:\\Python26\\lib\\site-packages\\PIL', 'c:\\Python26\\lib\\site-packages\\gtk-2.0', 'c:\\Python26\\lib\\site-packages\\win32', 'c:\\Python26\\lib\\site-packages\\win32\\lib', 'c:\\Python26\\lib\\site-packages\\Pythonwin', '/usr/share/gourmet', 'c:\\Python26\\lib\\site-packages\\gourmet\\plugins']
WARNING: Failed to load plugin spellcheck
Traceback (most recent call last):
  File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 241, in get_module
    self._loaded = __import__(self.module)
  File "c:\Python26\lib\site-packages\gourmet\plugins\spellcheck\__init__.py", line 1, in <module>
    import reccard_spellcheck_plugin
  File "c:\Python26\lib\site-packages\gourmet\plugins\spellcheck\reccard_spellcheck_plugin.py", line 1, in <module>
    import gtk, gtkspell
ImportError: No module named gtkspell
Traceback (most recent call last):
  File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 92, in load_active_plugins
    self.active_plugins.extend(self.available_plugin_sets[p].plugins)
  File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 254, in __getattr__
    if attr == 'plugins': return self.get_plugins()
  File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 260, in get_plugins
    return self.get_module().plugins
AttributeError: 'NoneType' object has no attribute 'plugins'
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: UnitConverter: missing action UnitConverter
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: Undo: missing action Undo
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: Redo: missing action Redo
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:1363: GtkWarning: gtk_combo_box_entry_set_text_column: assertion `entry_box->priv->text_column == -1' failed
  self.rw[c].set_text_column(0)
c:\Python26\lib\site-packages\gourmet\GourmetRecipeManager.py:720: GtkWarning: ../../../../gtk+/gdk/win32/gdkpixmap-win32.c:302: CreateDIBSection failed: The operation completed successfully.
  gtk.main()
c:\Python26\lib\site-packages\gourmet\GourmetRecipeManager.py:720: GtkWarning: ../../../../gtk+/gdk/win32/gdkpixmap-win32.c:114: DeleteObject failed: The operation completed successfully.
  gtk.main()

------------------------------------------------------------------------------
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 Installer

by Thomas Mills Hinkle-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'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 :) )

Thanks for the sharp eyes though!

I was able to get past this error by stubbing out the winprinter.  Not  a solution, but it's a start.

I have a new crash when I select File->New.  I've tried running against two different installations of Glade for Win32:
http://gladewin32.sourceforge.net/ (output.txt)
http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/ (output3.txt)

What is the development platform?  Ubuntu 9.04 by chance?  (that's the other OS I use frequently).  Whatever it is I'd like to try Gourmet on it so I can see what it's supposed to look like and what errors/warnings are expected.

Jeremy


Roland Duhaime wrote:
I notice that import_export is spelled imort_export on the line below.  Could it be a typo that is causing the error? - Roland



On Fri, Sep 4, 2009 at 2:24 PM, Jeremy Yoder <jyoder@... <mailto:jyoder@...>> 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@...>
   > <mailto: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@...>
   >     <mailto: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@...>
   >     <mailto: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



**
Gdk:ERROR:gdkgc-win32.c:748:get_impl_drawable: code should not be reached
C:\PROGRA~1\COMMON~1\GTK\2.0\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IsoBuster;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Universal Extractor;C:\Program Files\Universal Extractor\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Bazaar;C:\Program Files\Glade3\lib;C:\Program Files\Glade3\bin
Couldn't find data... I hope it's in ../../../../gourmet/data/
DATAD =  c:\Python26\gourmet\data
Loading  gnomeprint  failed: trying  win
No gnome player
WARNING: Plugin module import failed
PATH: ['c:\\Python26\\gourmet', 'C:\\WINDOWS\\system32\\python26.zip', 'c:\\Python26\\DLLs', 'c:\\Python26\\lib', 'c:\\Python26\\lib\\plat-win', 'c:\\Python26\\lib\\lib-tk', 'c:\\Python26', 'c:\\Python26\\lib\\site-packages', 'c:\\Python26\\lib\\site-packages\\PIL', 'c:\\Python26\\lib\\site-packages\\gtk-2.0', 'c:\\Python26\\lib\\site-packages\\win32', 'c:\\Python26\\lib\\site-packages\\win32\\lib', 'c:\\Python26\\lib\\site-packages\\Pythonwin', '/usr/share/gourmet', 'c:\\Python26\\lib\\site-packages\\gourmet\\plugins']
WARNING: Failed to load plugin spellcheck
Traceback (most recent call last):
 File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 241, in get_module
   self._loaded = __import__(self.module)
 File "c:\Python26\lib\site-packages\gourmet\plugins\spellcheck\__init__.py", line 1, in <module>
   import reccard_spellcheck_plugin
 File "c:\Python26\lib\site-packages\gourmet\plugins\spellcheck\reccard_spellcheck_plugin.py", line 1, in <module>
   import gtk, gtkspell
ImportError: No module named gtkspell
Traceback (most recent call last):
 File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 92, in load_active_plugins
   self.active_plugins.extend(self.available_plugin_sets[p].plugins)
 File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 254, in __getattr__
   if attr == 'plugins': return self.get_plugins()
 File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 260, in get_plugins
   return self.get_module().plugins
AttributeError: 'NoneType' object has no attribute 'plugins'
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: UnitConverter: missing action UnitConverter
 main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: Undo: missing action Undo
 main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: Redo: missing action Redo
 main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:1305: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
 self.glade = gtk.glade.XML(os.path.join(gladebase,'recCardDescriptionEditor.glade'))
c:\Python26\lib\site-packages\gourmet\reccard.py:1363: GtkWarning: gtk_combo_box_entry_set_text_column: assertion `entry_box->priv->text_column == -1' failed
 self.rw[c].set_text_column(0)
c:\Python26\lib\site-packages\gourmet\GourmetRecipeManager.py:720: GtkWarning: gdkpixmap-win32.c:302: CreateDIBSection failed: The operation completed successfully.
 gtk.main()
c:\Python26\lib\site-packages\gourmet\GourmetRecipeManager.py:720: GtkWarning: gdkpixmap-win32.c:114: DeleteObject failed: The operation completed successfully.
 gtk.main()

**
** Gdk:ERROR:(../../../../gtk+/gdk/win32/gdkgc-win32.c:748):get_impl_drawable: code should not be reached
C:\PROGRA~1\COMMON~1\GTK\2.0\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IsoBuster;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Universal Extractor;C:\Program Files\Universal Extractor\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Bazaar;C:\Program Files\Common Files\GTK\2.0\lib;C:\Program Files\Common Files\GTK\2.0\bin
Couldn't find data... I hope it's in ../../../../gourmet/data/
DATAD =  c:\Python26\gourmet\data
Loading  gnomeprint  failed: trying  win
No gnome player
WARNING: Plugin module import failed
PATH: ['c:\\Python26\\gourmet', 'C:\\WINDOWS\\system32\\python26.zip', 'c:\\Python26\\DLLs', 'c:\\Python26\\lib', 'c:\\Python26\\lib\\plat-win', 'c:\\Python26\\lib\\lib-tk', 'c:\\Python26', 'c:\\Python26\\lib\\site-packages', 'c:\\Python26\\lib\\site-packages\\PIL', 'c:\\Python26\\lib\\site-packages\\gtk-2.0', 'c:\\Python26\\lib\\site-packages\\win32', 'c:\\Python26\\lib\\site-packages\\win32\\lib', 'c:\\Python26\\lib\\site-packages\\Pythonwin', '/usr/share/gourmet', 'c:\\Python26\\lib\\site-packages\\gourmet\\plugins']
WARNING: Failed to load plugin spellcheck
Traceback (most recent call last):
 File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 241, in get_module
   self._loaded = __import__(self.module)
 File "c:\Python26\lib\site-packages\gourmet\plugins\spellcheck\__init__.py", line 1, in <module>
   import reccard_spellcheck_plugin
 File "c:\Python26\lib\site-packages\gourmet\plugins\spellcheck\reccard_spellcheck_plugin.py", line 1, in <module>
   import gtk, gtkspell
ImportError: No module named gtkspell
Traceback (most recent call last):
 File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 92, in load_active_plugins
   self.active_plugins.extend(self.available_plugin_sets[p].plugins)
 File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 254, in __getattr__
   if attr == 'plugins': return self.get_plugins()
 File "c:\Python26\lib\site-packages\gourmet\plugin_loader.py", line 260, in get_plugins
   return self.get_module().plugins
AttributeError: 'NoneType' object has no attribute 'plugins'
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: UnitConverter: missing action UnitConverter
 main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: Undo: missing action Undo
 main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:930: GtkWarning: Redo: missing action Redo
 main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
c:\Python26\lib\site-packages\gourmet\reccard.py:1363: GtkWarning: gtk_combo_box_entry_set_text_column: assertion `entry_box->priv->text_column == -1' failed
 self.rw[c].set_text_column(0)
c:\Python26\lib\site-packages\gourmet\GourmetRecipeManager.py:720: GtkWarning: ../../../../gtk+/gdk/win32/gdkpixmap-win32.c:302: CreateDIBSection failed: The operation completed successfully.
 gtk.main()
c:\Python26\lib\site-packages\gourmet\GourmetRecipeManager.py:720: GtkWarning: ../../../../gtk+/gdk/win32/gdkpixmap-win32.c:114: DeleteObject failed: The operation completed successfully.
 gtk.main()

------------------------------------------------------------------------------
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