R-ArcGIS / r-bridge

Bridge library to connect ArcGIS and R, including arcgisbinding R library.
Apache License 2.0
119 stars 26 forks source link

Error in .call_proxy("dataset.open", .Object, path) #39

Closed gregforcey closed 4 years ago

gregforcey commented 4 years ago

Possibly related to this issue: https://github.com/R-ArcGIS/r-bridge/issues/21 but none of the solutions in that thread worked.

I've previously been able to import feature classes from geodatabase using the r-bridge, but now I'm receiving an error that I never got before on the same code. I upgraded to R 4.02 and thus installed the latest version from here: https://github.com/R-ArcGIS/r-bridge/issues/37. This also occurred in R version 3.6.3 with a previous version as well so it does not seem to be related to R 4.0.

I tried running the following on the sample data to troubleshoot but got the same error:

    filename <- system.file("extdata", "ca_ozone_pts.shp", package = "arcgisbinding")
    d <- arc.open(filename)

The console output was:

Error in .call_proxy("dataset.open", .Object, path) : 
  Class not registered

This is on a fresh install of R 4.0 and version 1.0.1.240 of arcgisbinding. Any suggestions? Thank you!

dpavlushko commented 4 years ago

Please provide output from:

> arc.check_product()
gregforcey commented 4 years ago

arc.check_product()

product: ArcGIS Pro (12.5.0.22081)
license: Advanced
version: 1.0.1.240 

One thought: Although the output is showing the advanced license, I'm actually using the basic license. I was using the advanced license in the past and for some reason arcgisbinding still thinks I am. I'm not sure if this is the cause of the issue though.

dpavlushko commented 4 years ago

Something wrong with COM components. Reinstall ArcGISPro and arcgisbinding, double check all locations:

> p<-arc.check_product()
> p$path
[1] "C:\\ArcGIS\\"
> dir.exists(p$path)
[1] TRUE
> f<-system.file("extdata", "ca_ozone_pts.shp", package = "arcgisbinding")
> f
[1] "C:/Users/dipa/Documents/R/win-library/4.0/arcgisbinding/extdata/ca_ozone_pts.shp"
> file.exists(f)
[1] TRUE
gregforcey commented 4 years ago

It seems to be working again after a full uninstall and reinstall of ArcGIS pro. Thanks for the assist.