Problem with Postgis-Manager plugin on OSX

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Postgis-Manager plugin on OSX

Andreas Neumann-4
Hi QGIS-Users and Martin,

I am trying to use the Postgis-Manager Plugin on OSX-Leopard.

I installed psycopg2 and use QGIS 1.0 from
http://download.osgeo.org/qgis/mac/qgis-1.0.0.dmg.gz

When I try to load the plugin, I am getting an error message complaining
about a UnicodeEncodeError - see text below. Any idea on what I could do
to fix the problem?

Thanks a lot!

Andreas

Error-message:
-------
An error has occured while executing Python code:

Traceback (most recent call last):
  File
"/Users/an/.qgis//python/plugins/postgis_manager/ManagerPlugin.py", line
39, in run
    self.dlg = ManagerWindow(True)
  File
"/Users/an/.qgis//python/plugins/postgis_manager/ManagerWindow.py", line
37, in __init__
    self.setupUi()
  File
"/Users/an/.qgis//python/plugins/postgis_manager/ManagerWindow.py", line
648, in setupUi
    self.createMenu()
  File
"/Users/an/.qgis//python/plugins/postgis_manager/ManagerWindow.py", line
680, in createMenu
    self.actionsDb = self.listDatabases()
  File
"/Users/an/.qgis//python/plugins/postgis_manager/ManagerWindow.py", line
93, in listDatabases
    actionsDb[str(key)] = QAction(key, self)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in
position 1: ordinal not in range(128)

Python version:
2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)]

Python
path:['/Applications/qgis1.0.0.app/Contents/MacOS/share/qgis/python',
'/Users/an/.qgis//python/plugins',
'/Applications/qgis1.0.0.app/Contents/MacOS/share/qgis/python/plugins',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload',
'/Library/Python/2.5/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC',
'/Users/an/.qgis/python/plugins/fTools/tools']
--------

--
--
Andreas Neumann
Böschacherstrasse 6
CH-8624 GrĂ¼t (Gossau ZH)
Switzerland
Phone: ++41-44-2736668
Email: [hidden email]

Web: http://www.carto.net/neumann/
SVG Examples: http://www.carto.net/papers/svg/samples/
SVG.Open: http://www.svgopen.org/

_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Postgis-Manager plugin on OSX

Martin Dobias
On Sun, Jan 18, 2009 at 2:21 PM, Andreas Neumann <[hidden email]> wrote:

> Hi QGIS-Users and Martin,
>
> I am trying to use the Postgis-Manager Plugin on OSX-Leopard.
>
> I installed psycopg2 and use QGIS 1.0 from
> http://download.osgeo.org/qgis/mac/qgis-1.0.0.dmg.gz
>
> When I try to load the plugin, I am getting an error message complaining
> about a UnicodeEncodeError - see text below. Any idea on what I could do to
> fix the problem?

Hi Andreas,

the plugin just wasn't prepared well for use with unicode strings.
I've just released an updated version 0.4.5 which should fix all
possible sources of this kind of errors, so give it a try to see
whether it's fine. Now PostGIS Manager should be able to handle
schemas, tables, column names and other identifiers with non-ascii
characters fine.

Regards
Martin
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user