R-ArcGIS / r-bridge-install

Install the R ArcGIS Tools
Apache License 2.0
188 stars 59 forks source link

Error: Could not bind to a valid ArcGIS Desktop (ArcGIS 10.3.1) #64

Open mhornseth opened 6 years ago

mhornseth commented 6 years ago

I am running ArcGIS for desktop (10.3.1.4959) and R version 3.4.3. I installed the bindings in ArcGIS and the library via a zip file in R. However, when I run arc.check_product() I get a message saying: Error: Could not bind to a valid ArcGIS Desktop installation.

I have tried restarting and updating the R bindings in ArcGIS, but neither fix it. I have checked the appropriate folders, and it looks like everything installed correctly. Any help would be appreciated!

scw commented 6 years ago

Hello @mhornseth, there are a couple of possibilities for this. Could you run the "R Installation Details" tool and post the results? Can you try running one of the example Geoprocessing tools from ArcGIS and share the error it gives there? You can do so by navigating in ArcMap to the directory you installed arcgisbinding into (usually, either in Documents\R\3.4, or Program Files\R\3.4.3\library, and selecting examples > R Script Examples.tbx. From that toolbox, try running the "Progress Messages" tool and see if it executes.

scw commented 6 years ago

@mhornseth did you get the bridge to work on your end? Thanks for any updates.

DrNJT commented 6 years ago

I'm getting a similar error message albeit with ArcGIS Pro 2.1.0.1 and R 3.4.0 using arc.check_product() "Error: Could not bind to a valid ArcGIS Pro Installation". Looks fine from ArcGIS Pro.
However I can execute the "Progress Messages" tool as noted above. Any thoughts?

orhuna commented 6 years ago

Hello @DrNJT . Can you please check your environment variables (for user)? One cause of this issue is the /bin directory not being present under system path and arcgisbinding not being able to verify Pro to establish a connection.

DrNJT commented 6 years ago

That’s a v helpful suggestion and thanks, but I can’t easily view the environment variables on this PC. Assuming /bin isn’t specified, are there any workarounds?

dp1900 commented 5 years ago

I have ArcMap Desktop ver 10.7 and having issues running the "Install R bindings" tool. As soon as I clicked, it will show the Install R bindings window and the error. My R version after executing R.home() is R.home() [1] C:\Program Files\R\R-3.4.1

The "Print R Version" tool shows:

Executing: RVersion
Start Time: Thu Jul 18 16:04:18 2019
Running script RVersion...
3.4.1
Completed script RVersion...
Succeeded at Thu Jul 18 16:04:18 2019 (Elapsed Time: 0.01 seconds)

It shows both ArcMap and R have same version.

Capture

Install R bindings Install_R_bindings

Here's the R Installation Details R_Installation details snapshot

I would appreciate any help. Thanks.

seyoumyg commented 4 years ago

Is there any work around for this issue? I am getting the exact same problem while installing the Bridge on ArcGIS Desktop 10.5.

Thank you so much