gtkfi / ArcSDM

Spatial Data Modeler 6 for ArcGIS Pro
32 stars 18 forks source link

license issue #119

Open letter1225 opened 5 years ago

letter1225 commented 5 years ago

image

Hello, when I tried to use the tools in this toolbox. it reported that I didn't have the license.

trotor commented 5 years ago

Are you missing Spatial analyst extension from ArcGis?

On Fri, May 31, 2019 at 5:28 PM letter1225 notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/29188553/58712461-2aced380-83f3-11e9-802f-c016813b1088.png

Hello, when I tried to use the tools in this toolbox. it reported that I didn't have the license.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gtkfi/ArcSDM/issues/119?email_source=notifications&email_token=ACSXS6OR4IHDHPG2IAR4ZL3PYEYX5A5CNFSM4HR3HNR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GW7CKPA, or mute the thread https://github.com/notifications/unsubscribe-auth/ACSXS6IHGORJSS7DRIVFOHLPYEYX5ANCNFSM4HR3HNRQ .

tachyon-work commented 5 years ago

Please go in to Customize -> Extensions and ensure Spatial Analyst is ticked.

6451449A-147D-4691-95EF-E9F66DCE5948

letter1225 commented 5 years ago

Are you missing Spatial analyst extension from ArcGis? On Fri, May 31, 2019 at 5:28 PM letter1225 @.***> wrote: [image: image] https://user-images.githubusercontent.com/29188553/58712461-2aced380-83f3-11e9-802f-c016813b1088.png Hello, when I tried to use the tools in this toolbox. it reported that I didn't have the license. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#119?email_source=notifications&email_token=ACSXS6OR4IHDHPG2IAR4ZL3PYEYX5A5CNFSM4HR3HNR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GW7CKPA>, or mute the thread https://github.com/notifications/unsubscribe-auth/ACSXS6IHGORJSS7DRIVFOHLPYEYX5ANCNFSM4HR3HNRQ .

No, my spatial analysis is normal.

letter1225 commented 5 years ago

Please go in to Customize -> Extensions and ensure Spatial Analyst is ticked.

6451449A-147D-4691-95EF-E9F66DCE5948

The spatial analysis extension is ticked

trotor commented 5 years ago

Further question - does this "You don't have license" happen in other tools? Which version of Arcmap are you running?

letter1225 commented 5 years ago

No, the license problem didn't happen with other tools. I have tried arcmap10.3 and 10.5, both of which have the license problem, but 10.2 is OK.

tachyon-work commented 5 years ago

Does this tool call a function from the Data Management toolbox that requires an Advanced license? Only other thing I can think of that may cause an error like this on only that tool.

trotor commented 5 years ago

The code says it needs "Spatial" extension: def isLicensed(self): """Set whether tool is licensed to execute.""" try: if arcpy.CheckExtension("Spatial") != "Available": raise Exception except Exception: return False # tool cannot be executed return True

So it should work. It is exactly same check as in other tools inside ArcSDM.

tachyon-work commented 5 years ago

I was thinking more in terms of the ArcGIS license level rather than the extensions that need separate licensing:

https://pro.arcgis.com/en/pro-app/get-started/license-levels.htm

If this user had an Advanced version of 10.2 but only Basic or Standard for 10.3/10.5, that could potentially be the issue if the ROC tool makes a function call that is only available with the Advanced license.

letter1225 commented 5 years ago

Does this tool call a function from the Data Management toolbox that requires an Advanced license? Only other thing I can think of that may cause an error like this on only that tool.

The Data Management toolbox doesn't have a license problem.