R-ArcGIS / r-bridge-install

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

can't install R-integration into arcmap #15

Closed KelLukas closed 8 years ago

KelLukas commented 8 years ago

Hey, I think it was already posted here on github, but without any response. So, Im sorry about doble posting, but I have the same issue.

I have student licence of arcgis 10.3.1 and latest R 3.2.3. I tried to run python scripts through arcmap folder connections but, I can't see any. The only thing I see is the basic structure of r-bridge-install-master, that I have on my desktop ("img", "rtools", "R Integration").

I tried to move this folder elsewhere, run arcmap as administrator, reloading the folder, nothing helped. Are there any ideas how to overcome this behaviour?

Thanks

Lukas

scw commented 8 years ago

@KelLukas,

I've added a short video of installing in 10.3.1 that details the steps. There should be a PYT file, a Python toolbox that contains the tools and is usable from within the Catalog pane. If that doesn't show up, could you post a screenshot of what you're seeing instead?

Thanks, Shaun

KelLukas commented 8 years ago

Hello, thank you for your effort. The video is pretty straight forward, as the installation should be. I followed your steps, I even put the extracted folder into downloads (:P) although it shoudn't matter at all. Actually, what I have learned through the years with arcgis, for any data analysis and processing, it's always better to put shapefiles into folder which names don't have any diacritics . But that shouldn't be a problem here.

But as again, it doesn't work. When I want to expand the R Intgration .pyt file, it just shows a red cross like there is nothing in there, and the plus sign disappears. I am used to this behaviour with wms servers, not allowing me to connect to them, but a reload or double clicking it always helps.

arc arc2

Thanks in advance

Lukas

scw commented 8 years ago

Lukas,

Thanks for the screenshots and your additional attempts. Yes, historically there were issues with non-ASCII characters in path names, though generally those to work well today.

From the Catalog View, could you right click on the "R Integration.pyt" toolbox, and select "Check Syntax", and paste or screenshot the message displayed? It looks like a parsing error, my guess is it relates to the metadata files that document the tools, and a installation specific trait that I need to track down.

Thanks, Shaun

KelLukas commented 8 years ago

Hello Shaun, thank you again. Looking at the syntax log, there is actually an acsii error of some kind. Don't know where did it come from :D

arc

Lukas

scw commented 8 years ago

Lukas,

Thanks for the screenshot, that helps. It looks like the issue is that when it generates the traceback, it wasn't written to handle non-ASCII characters, but came across an 'é'. I've updated it with a simple fix that should solve the issue, but if it doesn't, I have a more robust fix I can apply instead. Could you retest by downloading the zip file again and trying to open the toolbox? If it fails, could you again show the the error in "Check Syntax"? Thanks!

Cheers, Shaun

KelLukas commented 8 years ago

Hello Shaun, I am delighted that you take so much of your time to help me. I appreciate it. To be honest, worked like a charm. I just wonder, where did "é" come from. Not that I don't use it, but as I said, not when working with Arcgis :)

arc

Now, is it normal that the "tools" file in catalog doesn't show any tools, while physically there is 10 compiled python files in the folder? Three of them reminds me of the pyt files in R Integration, I don't have any clue about those 7 remaining.

arc

Thank you

Lukas

scw commented 8 years ago

Hi Lukas,

Great! Yes, where the 'é' is coming from is unclear, it may be a directory name or something else, the full traceback contains a variety of information.

In terms of the additional files: how the Python toolbox stores its metadata for each tool (e.g. the help). You can view this help by opening a tool, then clicking 'Show Help' to get field-by-field help, or clicking 'Tool Help' to get the full documentation. If you uncheck "Hide extensions for known file types" at this location in File Explorer (Tools > Folder Options), you'll see that they are .xml files, and not actually a toolbox:

screen shot 2016-01-28 at 5 26 37 pm

I agree it can be somewhat confusing when looking at the directory. I'll close this issue for now, but let us know if you need any further help linking up R and ArcGIS, and if you haven't already, you can see fully worked examples using the bridge in the r-sample-tools project.

Cheers, Shaun