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
Solved! Go to Solution.
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.
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.