Select to view content in your preferred language

ArcGIS Notebooks Advanced -- unable to import arcpy

688
7
12-03-2024 03:47 AM
MikaelJ
Emerging Contributor

Hello,

 

ArcGIS Notebooks on Windows (Linux Containers).

Current version 11.3, upgraded recently from 11.1, where everything was running flawlessly.

 

With Advanced runtime I am unable to import arcpy, I am seeing error:

RuntimeError: The software is not authorized for use

I can assure you that server is properly licensed.

 

In the logs I am seeing this message (not for every container):

 Successfully copied the advanced license to the container.

 

Regardless of this message, arcpy does not load in when running notebook with advanced runtime.

 

Any tips?

Regards,

Michal

0 Kudos
7 Replies
shikhar_deep
Esri Contributor

Hi @MikaelJ , 

Can you please re-add the license again? (Removing the keycodes and adding the advance license again)

Thanks & Regards,

Shikhar Deep

0 Kudos
MikaelJ
Emerging Contributor

Hey @shikhar_deep ,

 

I've tried that, no success.

 

regards,

Michal

0 Kudos
shikhar_deep
Esri Contributor

Hi @MikaelJ 

From the ArcGIS Notebook Server administrative api, click on System->Licenses. Then click on 'REST by Machine' and share the output.

Thanks & Regards,

Shikhar Deep

 

0 Kudos
MikaelJ
Emerging Contributor

Hey @shikhar_deep ,

Feature: esriServerNoteBooksAdvanced

Name:ArcGIS Notebook Server Advanced
Version:11.3.0
Valid:true
Can expire:false
Expiration:Tuesday, December 31, 3011

 

Regards,

Michal

0 Kudos
shikhar_deep
Esri Contributor

Thanks @MikaelJ ,

This is coming as expected. Can you please share further details by following steps?

  1. Restart the Notebook Service. Ensure all existing notebook containers are cleaned.
  2. To test for permission issues, please create an another user with administrative privileges and try opening & running the advance notebook.
  3. Set the log levels to Debug and then open a new notebook with advance runtime. This time a new container would come up.
  4. Now please share the Debug logs after this notebook is opened and you have imported arcpy. Also please share the container logs.
  5. Click on Notebooks -> Runtimes and Validate Notebook Runtimes. Please share its result too.
  6. Since its upgraded environment, are you trying to open a previously saved Notebook(11.1) or a new notebook(11.3) where this issue is being reproduced?
  7. And from the command prompt please share, docker info and docker version.

Thanks

0 Kudos
MikaelJ
Emerging Contributor

hey @shikhar_deep ,

 

docker desktop version was  4.33.1, after updating it to the newest one 4.36.0, it started to work as expected.

I've changed nothing other than this.

According to the documentation 4.33.1 is enough docker version for this software in 11.3.

Regards,

Michal

 

0 Kudos
shikhar_deep
Esri Contributor

Good to know @MikaelJ !

0 Kudos