[Qgis-developer] R plugins
Barry Rowlingson
b.rowlingson at lancaster.ac.uk
Wed Jun 3 09:41:42 EDT 2009
On Wed, Jun 3, 2009 at 2:17 PM, Paolo Cavallini <cavallini at faunalia.it> wrote:
> Hi all.
> Unlucky day today!
> I am testing Vulkan plugin, but when I restart qgis I get an
> incompatibility with spqr:
>
> ===
> Couldn't load plugin spqr due an error when calling its classFactory()
> method
>
> Traceback (most recent call last):
> File "", line 1, in
> File "/home/paolo/.qgis//python/plugins/spqr/__init__.py", line 23, in
> classFactory
> from main import MainPlugin
> File "/home/paolo/.qgis//python/plugins/spqr/main.py", line 6, in
> import doHistogram
> File "/home/paolo/.qgis//python/plugins/spqr/doHistogram.py", line 6, in
> import opsR
> File "/home/paolo/.qgis//python/plugins/spqr/opsR.py", line 7, in
> import rpy
> File "/usr/lib/python2.5/site-packages/rpy.py", line 346, in
> r = R()
> File "/usr/lib/python2.5/site-packages/rpy.py", line 286, in __init__
> _rpy.r_init(HAS_NUMERIC);
> RuntimeError: Only one R object may be instantiated per session
>
spqr uses rpy version 1, and I think Vulkan's spatial stats plugin
uses rpy-2, so it'll all be horribly incompatible in all sorts of
nasty ways.
You'll have to disable spqr until someone rewrites it to use rpy-2.
Not something I have time for.
Barry
More information about the Qgis-developer
mailing list