rishabht1 / gmapcatcher

Automatically exported from code.google.com/p/gmapcatcher
0 stars 0 forks source link

"tested versions" on Win XP - unable to 'import glib' #236

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 1. install "tested versions" listed in "install/setup.bat"
 2. start python interpreter
 3. do: import glib

What is the expected output? What do you see instead?
Should be no ouput. I see: NameError. Iam unable to 'import glib' bindings when 
installed "tested versions" on Windows XP.

Please use labels and text to provide additional information.

For calling callback I want to use glib.idle_add().

Problem is, that if I use GTK versions listed in "install/setup.bat" I am 
unable to do: 'import glib'. I got NameError.
From install\setup.bat:
:: Tested with:
::  python-2.6.2.msi
::  gtk2-runtime-2.14.7-2009-01-13-ash.exe
::  gtk2-themes-2008-10-22-ash.exe
::  py2exe-0.6.9.win32-py2.6.exe
::  pycairo-1.4.12-2.win32-py2.6.exe
::  pygobject-2.14.2-2.win32-py2.6.exe
::  pygtk-2.12.1-3.win32-py2.6.exe
::  nsis-2.45-setup.exe
::  AccessControl.zip

Problem vanishes if I use following (current) versions (I didn't check any 
other versions):

python-2.6.5.msi
gtk2-runtime-2.22.0-2010-10-21-ash.exe
gtk2-themes-2009-09-07-ash.exe
py2exe-0.6.9.win32-py2.6.exe
pycairo-1.8.10.win32-py2.6.exe
pygobject-2.26.0.win32-py2.6.exe
pygtk-2.22.0.win32-py2.6.exe
nsis-2.46-setup.exe
nsis-AccessControl.zip

After installing current versions it's also required to change install/setup.py 
on line 44:
'includes': 'cairo, pango, pangocairo, atk, gobject',
add library:
'includes': 'cairo, pango, pangocairo, atk, gobject, gio',

Now Im able to run setup.bat and generate installer and also 'import glib' in 
scripts.

Is it OK to change versions and change setup.py?
Or is it any other way to use 'import glib' with "tested versions"?

Original issue reported on code.google.com by standa31...@gmail.com on 24 Nov 2010 at 8:23

GoogleCodeExporter commented 9 years ago
I rather not change the installer that will probably make it bigger.
Why do you want to import glib?

Original comment by heldersepu on 24 Nov 2010 at 12:58

GoogleCodeExporter commented 9 years ago
I will test using (current) versions and see if the installer grows.

Original comment by heldersepu on 24 Nov 2010 at 2:55

GoogleCodeExporter commented 9 years ago
Yes. Installer grows - about 1MB.

Main event loop provides several methods. One of them is idle_add or 
timeout_add. 
In python bindings the function is in glib.idle_add().

http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html
http://library.gnome.org/devel/pygobject/stable/glib-functions.html

Original comment by standa31...@gmail.com on 24 Nov 2010 at 3:09

GoogleCodeExporter commented 9 years ago
I finish installing all the requirement and the installer with the latest 
versions is 9.69MB that is not that much from the current installer.

Also I noticed that all the required packages for Python 2.7 are available, I 
guess we should jump directly to 2.7

What do you think? 

Original comment by heldersepu on 24 Nov 2010 at 4:37

GoogleCodeExporter commented 9 years ago
Well - I will be really glad to move to newer GTK. Also it's good thing to move 
to new version of python as well.

Original comment by standa31...@gmail.com on 24 Nov 2010 at 7:34

GoogleCodeExporter commented 9 years ago
Great we are moving to Python 2.7, I will do some testing over the week, and 
let's see if we can get a new release by the weekend...

Original comment by heldersepu on 24 Nov 2010 at 7:53

GoogleCodeExporter commented 9 years ago
Python 2.7 looks good. changes committed see r1090

Original comment by heldersepu on 30 Nov 2010 at 5:39

GoogleCodeExporter commented 9 years ago
I just created a new windows installer with python 2.7:
http://code.google.com/p/gmapcatcher/downloads/detail?name=GMapCatcher-0.7.5.1.e
xe

If you have some time please install it and see if there are any bugs...

Original comment by heldersepu on 30 Nov 2010 at 9:52

GoogleCodeExporter commented 9 years ago
Hi Helder.
Having problem.
After installing and running I do:
- select combobox 'operations' -> export
- press checkBox 'Overwrite existing tiles in destination repository'
I get windows error (have czech windows version, so don't know precise english 
text):
There was an error in Offline Map Viewer and must be closed.
Report the problem to Microsoft.
Send error reposrt / don't send report.

Can you confirm same behavior?

Original comment by standa31...@gmail.com on 1 Dec 2010 at 1:29

GoogleCodeExporter commented 9 years ago
Ye, I'm getting some windows errors too, see issue 239

Original comment by heldersepu on 1 Dec 2010 at 3:46

GoogleCodeExporter commented 9 years ago
I guess that this issue is now fix in the latest version:
http://code.google.com/p/gmapcatcher/downloads/detail?name=GMapCatcher-0.7.5.3.e
xe

Please try it and if all good we can make a new installer

Original comment by heldersepu on 12 Jan 2011 at 4:24

GoogleCodeExporter commented 9 years ago

Original comment by heldersepu on 29 Mar 2011 at 2:17