[Qgis-developer] problems with SDA4PP plugin

Paolo Cavallini cavallini at faunalia.it
Fri May 14 23:25:33 EDT 2010


Hi all.
I'm having trouble with the SDA4PP plugin. Upon installation, it requires
several additonal packages and crashes [0].
I install the needed packages, but it fails to load rJava, and it gets
deactivated [1].
I think the dependency on rJava is very heavy, and should be avoided if at
all possible.
Thanks for any help.
All the best.

-- 
http://faunalia.it/pc

[0]
/usr/lib/python2.6/dist-packages/qgis/utils.py:291: UserWarning: Module
matplotlib was already imported from
/usr/lib/pymodules/python2.6/matplotlib/__init__.py, but
/usr/lib/pymodules/python2.6 is being added to sys.path                    

mod = _builtin_import(name, globals, locals, fromlist, level)              

NEW LOGGING | 15.05.2010 04:54:26 | SDA4PP = "Spatial Data Analysis for
Point Pattern"                      

MESSAGE | CLASS NAME | FUNCTION NAME

sda4pp | initGui | packageGroup = "basic"

LoadRlib | readLib | Starting...

Carico il pacchetto richiesto: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.6.3, released 2009/11/19                   
Path to GDAL shared files: /usr/share/gdal16                           
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009                   
Path to PROJ.4 shared files: (autodetected)                            
LoadRlib | loadRgdal | rgdal package loaded.                           

LoadRlib | resLoadedValue | result = ""

sda4pp | initGui | packageLoaded = 1

sda4pp | initGui | packageGroup = "main"

LoadRlib | readLib | Starting...

Carico il pacchetto richiesto: foreign

Carico il pacchetto richiesto: 'maptools'

The following object(s) are masked from 'package:sp':

spChFIDs

Warning message:
multiple methods tables found for ‘spChFIDs’ 
LoadRlib | loadMaptools | maptools package loaded. 

LoadRlib | resLoadedValue | result = ""

Carico il pacchetto richiesto: mgcv
This is mgcv 1.6-2. For overview type 'help("mgcv-package")'.
Carico il pacchetto richiesto: deldir                        
deldir 0.0-12                                                

Please note: The process for determining duplicated points
has changed from that used in version 0.0-9 (and previously).

spatstat 1.18-4 
Type ‘help(spatstat)’ for an overview of spatstat
‘latest.news()’ for news on latest version  
‘licence.polygons()’ for licence information on polygon calculations
LoadRlib | loadSpatstat | spatstat package loaded.                       

LoadRlib | resLoadedValue | result = ""

sda4pp | initGui | packageLoaded = 1

sda4pp | initGui | packageGroup = "krigingTool"

LoadRlib | readLib | Starting...

Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE,
logical.return = TRUE,  :
non c'è alcun pacchetto chiamato 'automap'                                 

LoadRlib | loadAutomap | automap load error.                               


LoadRlib | resLoadedValue | result = "automap"

sda4pp | initGui | packageLoaded = "R package " automap " is missing,
please install it with all dependencies. Otherwise, " Kriging " tool could
not be run."                                                           

sda4pp | initGui | packageGroup = "rggobiTool"

LoadRlib | readLib | Starting...

LoadRlib | loadRggobi | rggobi package loaded. 

LoadRlib | resLoadedValue | result = ""

sda4pp | initGui | packageLoaded = 1

sda4pp | initGui | packageGroup = "iplot"

LoadRlib | readLib | Starting...

LoadRlib | loadIplot | iplots package is not installed. 

LoadRlib | resLoadedValue | result = "iplots"

sda4pp | initGui | packageLoaded = "R package " iplots " is missing, please
install it with all dependencies. Otherwise, " Linked Statistical Display "
tool could not be run."                                         

sda4pp | initGui | sigma = 3

sda4pp | initGui | packageGroup = "iplot"

sda4pp | initGui | the error is = "R package " iplots " is missing, please
install it with all dependencies. Otherwise, " Linked Statistical Display "
tool could not be run."

sda4pp | toolsActions | packageGroup = "iplot"

sda4pp | toolsActions | statusText = "R package " iplots " is missing,
please install it with all dependencies. Otherwise, " Linked Statistical
Display " tool could not be run."

sda4pp | toolsActions | tools = "[<PyQt4.QtGui.QAction object at
0xb8768ec>]"

sda4pp | initGui | packageGroup = "krigingTool"

sda4pp | initGui | the error is = "R package " automap " is missing, please
install it with all dependencies. Otherwise, " Kriging " tool could not be
run."

sda4pp | toolsActions | packageGroup = "krigingTool"

sda4pp | toolsActions | statusText = "R package " automap " is missing,
please install it with all dependencies. Otherwise, " Kriging " tool could
not be run."

sda4pp | toolsActions | tools = "[<PyQt4.QtGui.QAction object at
0xb8760ac>]"

ReadQGISLayer | getLayerList | layerNameList = "[]"

poisson | readInputFile | layers = "[]"

The program 'R' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 514448 error_code 8 request_code 42 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

=========================================================================================

[1]
Impossibile caricare il plugin SDA4PP a causa di errore chiamando il metodo
initGui()

Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 159, in
startPlugin
plugins[packageName].initGui()
File "/home/paolo/.qgis/python/plugins/SDA4PP/sda4pp.py", line 122, in
initGui
packageLoaded = sda4ppLoadRlib.readLib(packageGroup)
File "/home/paolo/.qgis/python/plugins/SDA4PP/sda4ppLoadRlib.py", line 66,
in readLib
result = loadIplot(r)
File "/home/paolo/.qgis/python/plugins/SDA4PP/sda4ppLoadRlib.py", line 160,
in loadIplot
r.require("iplots", quietly = True)
File "/usr/lib/python2.6/dist-packages/rpy2/robjects/functions.py", line
83, in __call__
return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/rpy2/robjects/functions.py", line
35, in __call__
res = super(Function, self).__call__(*new_args, **new_kwargs)
RRuntimeError: Error: pacchetto 'rJava' non caricato


More information about the Qgis-developer mailing list