Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

installer not working properly for ArcGIS Desktop 10.5 #332

Closed mauradaffern closed 7 years ago

mauradaffern commented 7 years ago

Hello,

When I attempt to run the Geoprocessing installer in 10.5 the GP tool fails. I get the following messages:

===

Messages Executing: installarcrest true false Start Time: Mon Apr 10 16:03:30 2017 Executing (installarcrest): installarcrest true false Start Time: Mon Apr 10 16:03:30 2017 Running script installarcrest... Failed script installarcrest...

Traceback (most recent call last): File "C:\Users\mdaffern\Documents\ArcGIS\Packages\installing_arcrest_1B28CE9D-BD96-49FC-9C54-E490E751518B\v105\scripts\install_arcrest.py", line 203, in main() File "C:\Users\mdaffern\Documents\ArcGIS\Packages\installing_arcrest_1B28CE9D-BD96-49FC-9C54-E490E751518B\v105\scripts\install_arcrest.py", line 164, in main arcrest_zip, arcresthelper_zip = download_arcrest() File "C:\Users\mdaffern\Documents\ArcGIS\Packages\installing_arcrest_1B28CE9D-BD96-49FC-9C54-E490E751518B\v105\scripts\install_arcrest.py", line 41, in download_arcrest arcrest_zip = os.path.join(scratch_folder, g_ESRI_variable_1) NameError: global name 'g_ESRI_variable_1' is not defined

Failed to execute (installarcrest). Failed at Mon Apr 10 16:03:30 2017 (Elapsed Time: 0.03 seconds) Failed to execute (installarcrest). Failed at Mon Apr 10 16:03:30 2017 (Elapsed Time: 0.03 seconds)

====

g_ESRI_variable_1 does appear to be undefined.

Kind regards, Maura

MikeMillerGIS commented 7 years ago

just pushed an update, can you try this one? Try opening it from the catalog window in ArcMap too

mauradaffern commented 7 years ago

Hi Mike,

I got the same message. I ensured that I removed the cached GP package from my profile, also.

Kind regards, Maura

MikeMillerGIS commented 7 years ago

Could you just try the toolbox in the ArcGIS desktop installer folder? That is what we use to create the installer. See if that works.

https://github.com/Esri/ArcREST/tree/master/ArcGIS%20Desktop%20Installer/Install_ArcRest/Tools/Scripts

MikeMillerGIS commented 7 years ago

Think I found the issue, just pushed an update. Please try it out and let me know if it works. The bug was only if you checked the Download, which had and GP replaced variable. I changed this and GP should not force replace it.

mauradaffern commented 7 years ago

Hi Mike,

This worked! Thank you for your help regarding this issue. Sorry for the delayed reply - was on training the past few days.

Kind regards, Maura

MikeMillerGIS commented 7 years ago

no worries, thanks for reporting it.