[GRASS-user] Error Opening wxPython: No module named agw.customtreectrl

I'm new to GRASS, Python, wxPython, and the rest.

I'm running GRASS 6.4.1 on Win7 through MSYS.

When loading either Sample Project Location using the user1 mapset, I get
the following error after selecting "Start GRASS":

Unable to get current grographic extent. Force quitting wxGUI. Please run
manually g.region to fix the problem.

Reason: No module named agw.customtreectrl

Traceback (most recent call last):
File "c:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py", line 54, in
<module>
import wx.lib.agw.customtreectrl as CT
ImportError: No module named agw.customtreectrl

Any help would be much appreciated. Thanks.

Matt

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Error-Opening-wxPython-No-module-named-agw-customtreectrl-tp6459456p6459456.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,

2011/6/9 matty18 <m.j.mccourt@gmail.com>:

I'm running GRASS 6.4.1 on Win7 through MSYS.

When loading either Sample Project Location using the user1 mapset, I get
the following error after selecting "Start GRASS":

Unable to get current grographic extent. Force quitting wxGUI. Please run
manually g.region to fix the problem.

start GRASS in the text mode and type

g.region -p

does it fail?

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Forgot to add the following part of the error:

GRASS 6.4> Traceback (most recent call last):
  File "c:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py", line 1611, in
<mod ule>
    sys.exit(main())
  File "c:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py", line 1604, in
main
    app = GMApp(workspaceFile)
  File "c:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py", line 1514, in
__in it__
    wx.App.__init__(self, False)
  File "C:\Program Files\GRASS
6.4.1\Python25\lib\site-packages\wx-2.8-msw-unic
ode\wx\_core.py", line 7935, in __init__
    self._BootstrapApp()
  File "C:\Program Files\GRASS
6.4.1\Python25\lib\site-packages\wx-2.8-msw-unic
ode\wx\_core.py", line 7509, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "c:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py", line 1547, in
OnIn it
    workspace = self.workspaceFile)
  File "c:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py", line 177, in
__ini t__
    self.NewDisplay(show = False)
  File "c:/Program Files/GRASS 6.4.1/etc/wxpython/wxgui.py", line 1147, in
NewD isplay
    auimgr = self._auimgr, showMapDisplay = show)
  File
"c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-mingw32/etc/wxpython/g
ui_modules/layertree.py", line 119, in __init__
  File "c:\Program Files\GRASS 6.4.1\etc\wxpython\gui_modules\mapdisp.py",
line 285, in __init__
    self.MapWindow.ZoomHistory(self.Map.region['n'],
KeyError: 'n'
GRASS 6.4>

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Error-Opening-wxPython-No-module-named-agw-customtreectrl-tp6459456p6459473.html
Sent from the Grass - Users mailing list archive at Nabble.com.

It fails.

An error box says

The ordinal 284 could not be located in the dynamic link library
SSLEAY32.dll

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Error-Opening-wxPython-No-module-named-agw-customtreectrl-tp6459456p6459483.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,

2011/6/9 matty18 <m.j.mccourt@gmail.com>:

File
"c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-mingw32/etc/wxpython/g
ui_modules/layertree.py", line 119, in __init__
File "c:\Program Files\GRASS 6.4.1\etc\wxpython\gui_modules\mapdisp.py",
line 285, in __init__
self.MapWindow.ZoomHistory(self.Map.region['n'],
KeyError: 'n'

problem with g.region. The most important message is

"""
Unable to get current grographic extent. Force quitting wxGUI. Please run
manually g.region to fix the problem.
"""

the rest is misleading...

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2011/6/9 matty18 <m.j.mccourt@gmail.com>:

An error box says

The ordinal 284 could not be located in the dynamic link library
SSLEAY32.dll

hm, very exotic error for me. Anyone here with same problem on Win7?

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Could it have anything to do with not having installed through the osgeo4w
package?

I saw this line in the error return that calls for layertree.py:

File
"c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-mingw32/etc/wxpython/gui_modules/layertree.py",
line 119, in __init__

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Error-Opening-wxPython-No-module-named-agw-customtreectrl-tp6459456p6459557.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Martin Landa wrote:

> The ordinal 284 could not be located in the dynamic link library
> SSLEAY32.dll

hm, very exotic error for me.

SSLeay is the predecessor of OpenSSL. This often gets linked in via
libpq (PostgreSQL client library) which is linked in via GDAL.

"ordinal ... could not be located" indicates that the version of the
DLL which was found at run time isn't the same one which the program
or library was linked against.

--
Glynn Clements <glynn@gclements.plus.com>

Hi,

I also reported this problem Jan 13/14 2011 (subject: Error starting WinGrass 6.4.1 RC1), and below is a copy of what I wrote up about it and send to Martin Landa.

Note, this workaround to get winGrass to work requires a change to a library file in the Windows system directory. However the preferred option should be to have winGrass use it’s local library files not the Windows library files which seem to be incompatible with winGrass hence the error message matty18 is getting.

Sharon


A google of the error message turns up many hits indicating the problem is with the DLLs ssleay32.dll and libeay32.dll.

From reading this:
http://msdn.microsoft.com/en-us/library/ms682586%28v=vs.85%29.aspx
the DLL search order is operating system directories (including C:WINDOWS\system32) before the PATH environment variable. In my case, the system32 directory contained the files ssleay32.dll and libeay32.dll (no version ids) as well as the GRASS-64\extralib directory (ssleay32.dll and libeay32.dll v0.9.8.15)

As C:WINDOWS\system32 is searched first (before the PATH environment variable), the system32 DLL files are used.

I’ve copied/renamed ssleay32.dll and libeay32.dll in system32 then copied ssleay32.dll and libeay32.dll from the GRASS-64\extralib directory in system32. I then rebooted the PC.

WinGrass 6.4.1 RC1 now starts! I’ll progressively test the WinGrass 6.4.1 RC1 vector functionality I normally use and report any issues. I’ll also wait and see what programs fail due to changing dll files in the system32 directory.

The issue now is - what should be the correct way of WinGRASS 6.4 sourcing the correct DLLs? and what is the correct way of replacing the DLLs in the system32 directory?


On Fri, Jun 10, 2011 at 6:09 AM, matty18 <m.j.mccourt@gmail.com> wrote:

Could it have anything to do with not having installed through the osgeo4w
package?

I saw this line in the error return that calls for layertree.py:

File
“c:/osgeo4w/usr/src/grass641_release/dist.i686-pc-mingw32/etc/wxpython/gui_modules/layertree.py”,
line 119, in init


View this message in context: http://osgeo-org.1803224.n2.nabble.com/Error-Opening-wxPython-No-module-named-agw-customtreectrl-tp6459456p6459557.html

Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user