[AniMov] [SOLVED] Re: HomeRange plugin - installation problem - rpy2 and R --enable-R-shlib

Anne Ghisla a.ghisla at gmail.com
Fri Jan 8 16:50:40 CET 2010


My deepest apologies, it was a missing import statement in the code. Now
fixed in 2.1.4, will upload it on the repo asap.

all the best,
Anne


On Fri, 2010-01-08 at 15:00 +0100, Anne Ghisla wrote:
> On Thu, 2010-01-07 at 11:54 -0500, Mathieu Ouellette wrote:
> > Hello,
> 
> > I used the Advanced install to make sure that rpy2 was installed. I
> > double-checked like you suggested and the rpy folder is indeed there.
> 
> Hi Mathieu
> 
> rpy or rpy2? the plugin requests the latter. You can also check if the
> problem affects QGIS by typing in the Python console:
> 
> import rpy2
> import rpy2.robjects as robjects
> 
> and report any error message.
> 
> You can also install manageR plugin and see if it complains too about
> rpy2.
> 
> I tested the plugin this morning on a fresh install of QGIS 1.4 via
> OSGeo4w, R 2.10.1 and related packages, and there is a problem in
> loading ade4.
> There is a requirement on rpy2 webpage:
> 
> "R-2.10, compiled with the option --enable-R-shlib"
> 
> I'm not sure if it is always the case for packaged R, and if it is the
> source of the problem. But as it is a frequent bug, I'm going to compile
> R myself on my Windows box and tell if it is the solution.
> 
> hope this helps,
> Anne
> 
> > Thank you again,
> > 
> > 
> > Mathieu
> > 
> > 2010/1/7 Anne Ghisla <a.ghisla at gmail.com>
> >         On Wed, 2010-01-06 at 23:45 -0500, Mathieu Ouellette wrote:
> >         > Hello Anne and Giovanni,
> >         
> >         > Thank you very much for your help. I finally used the osge4w
> >         > installer, downloaded the two other R packages and add the
> >         path to R.
> >         >
> >         > However, when I try to use the Home Range plugin, I get the
> >         following
> >         > error message.
> >         
> >         
> >         Still, rpy2 is likely missing. I forgot to say to use Advanced
> >         install,
> >         and select python-rpy2. It will bring its dependencies
> >         automatically.
> >         
> >         To double-check, you can look for rpy2 folder into
> >         C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages
> >         
> >         
> >         if it's missing, and you asked the OSGeo4W installer to
> >         install rpy2,
> >         it's a bug...
> >         
> >         bien à vous,
> >         Anne
> >         
> >         
> >         >
> >         > Thank you,
> >         >
> >         >
> >         > Mathieu
> >         >
> >         >
> >         > Error message:
> >         >
> >         >
> >         > Une erreur est apparue lors de l'exécution du code python :
> >         '
> >         >
> >         >
> >         > Traceback (most recent call last):
> >         >   File "C:/Documents and Settings/Luc
> >         Ouellette/.qgis//python/plugins
> >         > \HomeRange_plugin\HRplugin_dialog.py", line 72, in
> >         >     QObject.connect(self.buttonBox, SIGNAL("accepted()"),
> >         lambda
> >         > mth=mth: self.run(mth))
> >         >   File "C:/Documents and Settings/Luc
> >         Ouellette/.qgis//python/plugins
> >         > \HomeRange_plugin\HRplugin_dialog.py", line 174, in run
> >         >     if not robjects.r.require(i)[0]:
> >         > NameError: global name 'robjects' is not defined
> >         >
> >         >
> >         > Version de Python :
> >         > 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> >         (Intel)]
> >         >
> >         >
> >         > Chemin vers Python :['C:/OSGeo4W/apps/qgis/./python',
> >         'C:/Documents
> >         > and Settings/Luc Ouellette/.qgis//python/plugins',
> >         > 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\OSGeo4W\\apps\
> >         \gdal-16\
> >         > \pymod', 'C:\\', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\
> >         \OSGeo4W\
> >         > \apps\\Python25\\DLLs', 'C:\\OSGeo4W\\apps\\Python25\\lib',
> >         'C:\
> >         > \OSGeo4W\\apps\\Python25\\lib\\plat-win', 'C:\\OSGeo4W\\apps
> >         \\Python25
> >         > \\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin', 'C:\\OSGeo4W
> >         \\apps\
> >         > \Python25', 'C:\\OSGeo4W\\apps\\Python25\\lib\
> >         \site-packages', 'C:\
> >         > \OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32', 'C:\
> >         \OSGeo4W\
> >         > \apps\\Python25\\lib\\site-packages\\win32\\lib', 'C:\
> >         \OSGeo4W\\apps\
> >         > \Python25\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\
> >         \apps\
> >         > \Python25\\lib\\site-packages\\wx-2.8-msw-unicode']
> >         >
> >         
> >         
> >         > _______________________________________________
> >         > AniMov mailing list
> >         > AniMov at faunalia.it
> >         > http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
> >         
> >         
> >         
> >         _______________________________________________
> >         AniMov mailing list
> >         AniMov at faunalia.it
> >         http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
> >         
> > 
> > 
> > _______________________________________________
> > AniMov mailing list
> > AniMov at faunalia.it
> > http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.faunalia.it/pipermail/animov/attachments/20100108/d2d6fc88/attachment.pgp>


More information about the AniMov mailing list