<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PermissionError when using Jupyter Notebooks in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333565#M9074</link>
    <description>&lt;P&gt;It says "&lt;SPAN&gt;to the notebook server's current location".&amp;nbsp; So, may or may not exist or have permissions depending on where it is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You might try creating a local folder (eg.&amp;nbsp;C:\data) and hardcode&amp;nbsp;the path to that folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;data_path = r'C:\data'&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;You will have to update it in steps 4-6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will at least tell us if it is a location/permission&amp;nbsp;issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2023 20:06:27 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2023-09-28T20:06:27Z</dc:date>
    <item>
      <title>PermissionError when using Jupyter Notebooks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333219#M9060</link>
      <description>&lt;P&gt;Hello --&lt;/P&gt;&lt;P data-unlink="true"&gt;I am working my way through these ArcGIS API for Python&amp;nbsp;tutorials and hit a snag on this one:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/download-data/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/download-data/&lt;/A&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;At Step 4, creating a directory for the data and downloading the zip file, I get a permission error.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;PermissionError&lt;/SPAN&gt;                           Traceback (most recent call last)
In  &lt;SPAN class=""&gt;[11]&lt;/SPAN&gt;:
Line &lt;SPAN class=""&gt;4&lt;/SPAN&gt;:     data_path.mkdir()

File &lt;SPAN class=""&gt;C:\Users\JeanineF\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\pathlib.py&lt;/SPAN&gt;, in &lt;SPAN class=""&gt;mkdir&lt;/SPAN&gt;:
Line &lt;SPAN class=""&gt;1323&lt;/SPAN&gt;:  &lt;SPAN class=""&gt;self&lt;/SPAN&gt;._accessor.mkdir(&lt;SPAN class=""&gt;self&lt;/SPAN&gt;, mode)

&lt;SPAN class=""&gt;PermissionError&lt;/SPAN&gt;: [WinError 5] Access is denied: 'data'&lt;/PRE&gt;&lt;P&gt;I've looked around in these directories with a terminal window and I have correct permissions as far as I can tell (I've confirmed with our IT as well).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some conflict here I'm not understanding?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 00:34:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333219#M9060</guid>
      <dc:creator>JeanineFinn</dc:creator>
      <dc:date>2023-09-28T00:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionError when using Jupyter Notebooks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333393#M9066</link>
      <description>&lt;P&gt;what does&lt;/P&gt;&lt;LI-CODE lang="python"&gt;print(data_path)&lt;/LI-CODE&gt;&lt;P&gt;return?&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333393#M9066</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-09-28T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionError when using Jupyter Notebooks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333554#M9072</link>
      <description>&lt;P&gt;It just returns&lt;/P&gt;&lt;P&gt;data&lt;/P&gt;&lt;P&gt;Which is not correct? That line of code creating the data_path variable looks like is should be creating a path to "data" directory within the current directory, yes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 19:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333554#M9072</guid>
      <dc:creator>JeanineFinn</dc:creator>
      <dc:date>2023-09-28T19:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionError when using Jupyter Notebooks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333565#M9074</link>
      <description>&lt;P&gt;It says "&lt;SPAN&gt;to the notebook server's current location".&amp;nbsp; So, may or may not exist or have permissions depending on where it is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You might try creating a local folder (eg.&amp;nbsp;C:\data) and hardcode&amp;nbsp;the path to that folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;data_path = r'C:\data'&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;You will have to update it in steps 4-6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will at least tell us if it is a location/permission&amp;nbsp;issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 20:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1333565#M9074</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-09-28T20:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionError when using Jupyter Notebooks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1334258#M9084</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;That worked -- thanks!&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But it's still not liking the string ZIP filename. Very weird.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# configure where to save the data, and where the ZIP file is located
data_path = r'C:\gis'
###if not data_path.exists():
 ###   data_path.mkdir()
zip_path = data_path.joinpath('LA_Hub_Datasets.zip')
extract_path = data_path.joinpath('LA_Hub_datasets')
data_item.download(save_path=data_path)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;                            Traceback (most recent call last)
In  &lt;SPAN class=""&gt;[9]&lt;/SPAN&gt;:
Line &lt;SPAN class=""&gt;5&lt;/SPAN&gt;:     zip_path = data_path.joinpath(&lt;SPAN class=""&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;LA_Hub_Datasets.zip&lt;/SPAN&gt;&lt;SPAN class=""&gt;'&lt;/SPAN&gt;)

&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'str' object has no attribute 'joinpath'
&lt;SPAN class=""&gt;------------------------------------------------------------&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Oct 2023 19:08:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1334258#M9084</guid>
      <dc:creator>JeanineFinn</dc:creator>
      <dc:date>2023-10-02T19:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionError when using Jupyter Notebooks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1334267#M9085</link>
      <description>&lt;P&gt;.joinpath is specific to the pathlib.&amp;nbsp; with the hard coded path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;zip_path = data_path + os.sep + 'LA_Hub_Datasets.zip'
extract_path = data_path + os.sep + 'LA_Hub_datasets'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should work.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 19:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1334267#M9085</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-10-02T19:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionError when using Jupyter Notebooks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1334377#M9086</link>
      <description>&lt;P&gt;Thanks -- that did it. I had to go back and import the os module for this Notebook but that did it.&lt;/P&gt;&lt;P&gt;"os.sep" tells it how to connect the paths since we're not using ".joinpath" -- correct?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 00:04:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1334377#M9086</guid>
      <dc:creator>JeanineFinn</dc:creator>
      <dc:date>2023-10-03T00:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: PermissionError when using Jupyter Notebooks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1334612#M9090</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;A href="https://docs.python.org/3/library/os.html#:~:text=os.sep,via%20os.path." target="_self"&gt;os.sep&lt;/A&gt; is concatenating the strings together using the &lt;STRONG&gt;O&lt;/STRONG&gt;perating &lt;STRONG&gt;S&lt;/STRONG&gt;ystem &lt;STRONG&gt;sep&lt;/STRONG&gt;arator to build the path.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 16:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/permissionerror-when-using-jupyter-notebooks/m-p/1334612#M9090</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-10-03T16:46:41Z</dc:date>
    </item>
  </channel>
</rss>

