Error loading HomeRange plugin on Mac OSX[was: Re: [Qgis-user] Fwd: Hello, ]
William Kyngesburye
woklist at kyngchaos.com
Thu Jul 16 07:35:16 PDT 2009
...some random notes. (such a long email trail here, I'll put
everything up top)
I don't know about rpy2 from easy_install. Last fall I installed it
from a source download. let's see...
unzip the source, then in the source folder:
python setup.py build
sudo python setup.py install
About trying to execute the GDAL binary - it's a library.
For the numpy requirement, the system Python includes an old 1.0
version, but my GDAL framework includes a recent 1.1 version. I'm not
sure if the numpy version is important.
With all this, I was able to install and enable the HomeRange plugin
in Qgis 1.1.0 once - it loaded and showed up in the plugins menu.
After restarting Qgis, I got an error loading HomeRange:
Traceback (most recent call last):
File "", line 2, in
File "/Users/kyngchaos/.qgis//python/plugins/HomeRange_plugin/
__init__.py", line 32, in
from HRplugin_main import HRPlugin
File "/Users/kyngchaos/.qgis//python/plugins/HomeRange_plugin/
HRplugin_main.py", line 40, in
from HRplugin_dialog import Dialog
File "/Users/kyngchaos/.qgis//python/plugins/HomeRange_plugin/
HRplugin_dialog.py", line 44, in
from HRplugin_algorithm import *
File "/Users/kyngchaos/.qgis//python/plugins/HomeRange_plugin/
HRplugin_algorithm.py", line 46, in
import rpy2.robjects as robjects
File "/Library/Python/2.5/site-packages/rpy2/robjects/__init__.py",
line 12, in
import rpy2.rinterface as rinterface
File "/Library/Python/2.5/site-packages/rpy2/rinterface/
__init__.py", line 6, in
R_HOME = os.popen("R RHOME").readlines()
IOError: [Errno 4] Interrupted system call
If I do:
import rpy2.rinterface
in the Qgis python console, I get the IOError. If I do that in a
Terminal python session, no error.
On Jul 16, 2009, at 3:53 AM, Anne Ghisla wrote:
> Il giorno mer, 15/07/2009 alle 22.20 -0600, Sebastian Cruz ha scritto:
>>
>>
>> Begin forwarded message:
>>
>>> From: "John C. Tull" <john.tull at wildnevada.org>
>>> Date: 15 July 2009 22:10:47 GMT-06:00
>>> To: Sebastian Cruz <cruz.seb at gmail.com>
>>> Subject: Re: Hello,
>>>
>>>
>>> Sebastian,
>>>
>>>
>>> I'm really not much better (any?) at figuring this stuff out than
>>> you. I don't know why python would not be detected. Can you run
>>> python from the terminal? If so, try a command like 'import rpy2'
>>> and see what happens. Same with other modules you need.
>>>
>>>
>>> Frankly, the homerange plugin never quite worked for me on OS X. I
>>> think it did for a while, then did not. I'm not sure why, and I gave
>>> up. You may also look at the manageR plugin, but you will have to
>>> learn R commands for doing your analyses. R is a great program, and
>>> you can get the binary online. In fact, you should already have it
>>> to get rpy2 working (I think). Don't forget, rgdal is available from
>>> William's site as a binary. I assume you tried that.
>>>
>>>
>>> I would encourage you to contact the dev of the plugin if none of
>>> the above helps. They are better at reading those outputs than I am.
>
> Hi Sebastian,
>
> first I apologise for lack of testing on Mac.
> This error log is not telling so much about the source of the error...
>
> Anyway, check if you have installed the correct version of the plugin:
> for QGIS <1.0, use HomerangePlugin v1.x, for QGIS >=1.0, v2.x. Using
> Faunalia 3rd party repository, the correct version only will be
> available via Fetch Python Plugins.
> I suggest also to check all dependencies and compatibility. On the
> wiki
> page [0] there is a list of tested configurations.
> As a final check, following John's suggestion, try importing manually
> the modules in QGIS Python shell.
>
> <code>
> import rpy2.robjects as robjects
> import rpy2.rpy_classic as rpy
> </code>
>
> and report on Animove Trac [1] any further problem.
>
> The dependency check is left to the user at the moment - if anyone has
> some idea about how to automate it, they are most welcome.
> I can also tell you that manageR has very similar dependencies, so
> making it work will also affect HR plugin.
>
> BTW, if anyone has a running configuration for HomeRange plugin on
> Mac,
> it would be nice to report all useful details and add them into the
> wiki
> page :)
>
> hope this helps and best regards,
> Anne
>
> [0] http://wiki.qgis.org/qgiswiki/GSoC2008Rbinding - will be moved on
> new wiki http://www.qgis.org/qgis-wiki/ asap
> [1] https://faunalia.it/animove/trac
>
>>> Best,
>>> John
>>>
>>> On Jul 15, 2009, at 8:19 PM, Sebastian Cruz wrote:
>>>
>>>> Hi John,
>>>>
>>>>
>>>> I have to say I am not surprised by your reaction to the email I
>>>> sent you, I also cannot make any sense out of it (and I know very
>>>> little compared to you). I was wondering if the following messages
>>>> makes more sense to you:
>>>>
>>>>
>>>> Couldn't load plugin "HomeRange_plugin" from
>>>> ['/Applications/Qgis.app/Contents/MacOS/share/qgis/python',
>>>> '/Users/sebastiancruz/.qgis//python/plugins',
>>>> '/Applications/Qgis.app/Contents/MacOS/share/qgis/python/plugins',
>>>> '/Library/Frameworks/GDAL.framework/Versions/1.6/Python/site-
>>>> packages', '/Library/Python/2.5/site-packages/SQLObject-0.10.6-
>>>> py2.5.egg', '/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/sebastiancruz/.qgis/python/plugins/fTools/
>>>> tools']
>>>>
>>>>
>>>> This is a message I get when I start up QGIS. The problem seems
>>>> to be GDAL mostly, which relates to the message I sent you
>>>> earlier. But overall I think the problem radicates in Python. In
>>>> terminal I can prompt Python 2.5 and make simple tests (2+2=4)
>>>> witthout a problem. But for example when trying to install Numpy
>>>> from a binary, it says it cannot detect python 2.5 in my system.
>>>> Do you think an upgrade would work?
>>>>
>>>>
>>>> I am sorry to keep bothering you with questions, but I really want
>>>> this work.
>>>>
>>>>
>>>> Sebas
>>>>
>>>>
>>>> On 15 Jul 2009, at 16:49, John C. Tull wrote:
>>>>
>>>>> I'm afraid I can be of no help here. This is not anything I've
>>>>> ever encountered.
>>>>>
>>>>> Sorry,
>>>>> John
>>>>>
>>>>> On Jul 15, 2009, at 3:25 PM, Sebastian Cruz wrote:
>>>>>
>>>>>> Hi John,
>>>>>>
>>>>>> Thank you for the lenthgy email you sent me. You are correct,
>>>>>> I have not set up the environment. I followed your
>>>>>> recomendations but encountered yet another problem. When
>>>>>> trying to communicate with GDAL, I get the following message:
>>>>>>
>>>>>>
>>>>>> /Library/Frameworks/GDAL.framework/Versions/1.6/GDAL ; exit;
>>>>>> sebastian-cruzs-macbook:~ sebastiancruz
>>>>>> $ /Library/Frameworks/GDAL.framework/Versions/1.6/GDAL ; exit;
>>>>>> -bash: /Library/Frameworks/GDAL.framework/Versions/1.6/GDAL:
>>>>>> cannot execute binary file
>>>>>> logout
>>>>>>
>>>>>> [Process completed]
>>>>>>
>>>>>> I do not know why the binary is having this problem. I had the
>>>>>> same issue instally rpy2 from terminal, with install sudo
>>>>>> easy_install -U rpy2.
>>>>>> (zip_safe flag not set; analyzing archive contents...
>>>>>> No eggs found
>>>>>> in /tmp/easy_install-fULGJF/rpy2-2.0.6/egg-dist-tmp-Ddqx_x
>>>>>> (setup script problem?)
>>>>>>
>>>>>> My python is 2.5, that came witht he MacoSX operating system.
>>>>>> I have not installed any other version.
>>>>>>
>>>>>> Something is wrong with my system it appears.
>>>>>>
>>>>>> Sebastian
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"History is an illusion caused by the passage of time, and time is an
illusion caused by the passage of history."
- Hitchhiker's Guide to the Galaxy
More information about the Qgis-user
mailing list