<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">hi,<div><br></div><div>i think, i solved the problem. here the link to the hint:</div><div><br></div><div>http://codingdaily.wordpress.com/2010/10/28/how-to-edit-macosxenvironment-plist-from-a-shell/</div><div><br></div><div>i did the following</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 24px; "><ol style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 24px; margin-left: 1.5em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-position: initial initial; background-repeat: initial initial; "><li style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; ">Open up a terminal.</li><li style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; "><code style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; "><font class="Apple-style-span" face="Helvetica">mkdir ~/.MacOSX </font></code></li><li style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; "><code style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; "><font class="Apple-style-span" face="Helvetica">touch ~/.MacOSX/environment.plist</font></code></li><li style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; "><code style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; "><font class="Apple-style-span" face="Helvetica">defaults write ~/.MacOSX/environment PATH </font></code><span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: normal; ">"/usr/local/pgsql/share/contrib/postgis-1.5:/usr/local/pgsql/bin"</span></li><li style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: normal; ">restart System</span></li><li style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: normal; ">start QGIS.app</span></li></ol></span></div><div>thanks for the hints to solve the problem.</div><div><br></div><div>regards</div><div>florian</div><div><br></div><div><br></div><div><br><div><div>Am 22.01.2012 um 00:03 schrieb Giuseppe Sucameli:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>On Fri, Jan 20, 2012 at 9:51 PM, Florian Beyerbach<br><<a href="mailto:Florian.Beyerbach@gmx.de">Florian.Beyerbach@gmx.de</a>> wrote:<br><blockquote type="cite">i use the tool terminal and the path environment variables are:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">mbp-wlan:~ fbeyerbach$ echo $PATH<br></blockquote><blockquote type="cite">/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin:/usr/local/pgsql/share/contrib/postgis-1.5/:/usr/local/pgsql-9.1/bin:/usr/local/pgsql-9.1/bin<br></blockquote><br>I've no MacOS, but few months ago I understood how it works.<br>Each application defines what environment variables it needs, but<br>the user can change them editing ~/.MacOSX/environment.plist<br><br>What you wrote is the value of PATH defined for terminal,<br>not the one for all the applications you run.<br><br>A way to have the same terminal's environment in an application<br>is to run the application from terminal.<br>Could you try again running Qgis from terminal?<br><br>Another solution could be to add environment variables before<br>PostGis Manager launches shp2pgsql, just setting PATH using<br>the QGis Python Console (menu Plugins):<br><br>import os<br>path = os.getenv("PATH")<br>pgpath = "/usr/local/pgsql/share/contrib/postgis-1.5/:/usr/local/pgsql-9.1/bin:/usr/local/pgsql-9.1/bin"<br>path = pgpath if path == None or path == "" else path + os.pathsep + pgpath<br>os.putenv("PATH", path)<br><br>In addition, there's a opened ticket [1] to add a panel to set/override<br>environment variables withing QGis to help OSX users.<br><br>I hope this helps.<br>Regards.<br><br>[1] <a href="http://hub.qgis.org/issues/3097">http://hub.qgis.org/issues/3097</a><br><br><blockquote type="cite">i think this should work. any idea?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Am 20.01.2012 um 20:18 schrieb Giuseppe Sucameli:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Hi Florian,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On Fri, Jan 20, 2012 at 7:54 PM, Sandro Santilli <<a href="mailto:strk@keybit.net">strk@keybit.net</a>> wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">On Fri, Jan 20, 2012 at 07:14:07PM +0100, Florian Beyerbach wrote:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">it is the first time i use this community support. if i make any mistake i´m sorry.<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I think this message should be sent to the qgis-user mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">as the plugin is a QGis plugin.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">i try to use the PostGIS Manager Plugin 0.5.15 for QGIS 1.7.3 with the postgresql 9.1 and postgis 1.5.3 database on my MacBookPro with Mac OSX Lion 10.7.2.<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">know i want to "Load Data from Shapefile", i chose the shape file in the dialog and after i click the load button<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">i get the error message: "Message: Filename: None".<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">PostGis Manager assumes that shp2pgsql executable is in PATH<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">environment variable. It's unable to find it, so it throws an OSError<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">exception.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I'm sure that after adding shp2pgsql to the PATH env var it should<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">work fine, but I've no Mac so I cannot say how to do this...<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I hope this helps.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Regards.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I have no idea what the problem is, can anybody help me?<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I think the db_manager plugin superceeds the PostGIS Manager one.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Giuseppe (in Cc) is the author of db_manager, but can probably also<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">help with the PostGIS Manager plugin.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">--strk;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> ()   Free GIS & Flash consultant/developer<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> /\   <a href="http://strk.keybit.net/services.html">http://strk.keybit.net/services.html</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Giuseppe Sucameli<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><br><br><br>-- <br>Giuseppe Sucameli<br></div></blockquote></div><br></div></body></html>