[Qgis-user] manageR loading OGR library(sp) Debian

Ian Tangert itangert at gmail.com
Mon Dec 26 18:17:03 PST 2011


hello,

i am unable to load OGR layers in the manageR plugin.  

using 'Load OGR Data' results in:

> # manageR 'Load OGR data' tool
+ burglaries <- local({
+    require(rgdal)
+    readOGR('/home/ian/Desktop/burglaries.shp', 'burglaries', verbose =
TRUE, p4s=NULL, drop_unsupported_fields=FALSE,
+        input_field_name_encoding=NULL, pointDropZ=FALSE,
dropNULLGeometries=TRUE)
+  })
+ 
Loading required package: rgdal
Loading required package: sp
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/lib/R/site-library/sp/libs/sp.so':
  /usr/lib/R/site-library/sp/libs/sp.so: undefined symbol: R_ClassSymbol
Failed with error:  ‘package ‘sp’ could not be loaded’
Error in eval(expr, envir, enclos) : could not find function "readOGR"

Within manageR console using library(sp) results in:

> library(sp)
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/lib/R/site-library/sp/libs/sp.so':
  /usr/lib/R/site-library/sp/libs/sp.so: undefined symbol: R_ClassSymbol
Error: package/namespace load failed for ‘sp’

from R prompt in terminal library(sp) is working and crime <-
readOGR('/home/ian/Desktop/burglaries.shp', 'burglaries') is working

Debian squeeze
QGIS 1.7.3
GDAL 1.6.3
R 2.14.1
Python 2.6.6
rpy 2.2.1
sp 0.9-93
rgdal 0.7-5

thanks

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/manageR-loading-OGR-library-sp-Debian-tp7129146p7129146.html
Sent from the qgis-user mailing list archive at Nabble.com.



More information about the Qgis-user mailing list