Select to view content in your preferred language

Working with Local Experiences - local_path

314
1
Jump to solution
08-20-2024 05:59 AM
Labels (3)
CS_IBM
by
Occasional Contributor

Greetings,
In the Working with Local Experiences Python sample.
Working with Web Experiences in the Python API | ArcGIS API for Python
local_path = '/computer/path/to/config.json'

My windows path = C:/EXB_Repo/AGOL/layers/v3.zip/cdn/4/config.json
When I paste C:\EXB_Repo/AGOL/layers/v3.zip/cdn/4/ in File Explorer, it opens the folder
When I paste C:\EXB_Repo/AGOL/layers/v3.zip/cdn/4/.json' in File Explorer, it opens the json file

I tried
My local_path = r'C:\EXB\AGOL\layers\v3.zip\cdn/4\config.json'
My local_path = r'C:/EXB/AGOL/layers/v3.zip/cdn/4/config.json'

Both paths fail??
Error: No such file or directory
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\apps\expbuilder\expbuilder.py", line 153, in __init__
with open(path) as json_file:
FileNotFoundError: [Errno 2]
No such file or directory: 'C:\\EXB\\AGOL\\layers\\v3.zip\\cdn\\4\\config.json'

Is there an issue having white spaces between characters or underscores ?

Any suggestions or advice??
Thanks
Clive

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
EarlMedina
Esri Regular Contributor

Seems like an access issue as you appear to be pointing to a file inside a zip. Try unarchiving and see if it works that way.

View solution in original post

0 Kudos
1 Reply
EarlMedina
Esri Regular Contributor

Seems like an access issue as you appear to be pointing to a file inside a zip. Try unarchiving and see if it works that way.

0 Kudos