<?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 Error with arcgis.learn.prepare_data on arcgis==2.1.0.2 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-with-arcgis-learn-prepare-data-on-arcgis-2-1/m-p/1261321#M8402</link>
    <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been using the ArcGIS package on my computer using the conda package installations with no problems. However, I needed better computing abilities to train the model faster. So I tried to install the ArcGIS on the graham cluster from Compute Canada which only allows pip installations, and it is prohibited to use conda.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the &lt;STRONG&gt;pip install arcgis==2.1.0.2&lt;/STRONG&gt;&amp;nbsp; to install the library as specified in the installation instructions and there were no problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to use the &lt;EM&gt;prepare_data&lt;/EM&gt; function on my exported point cloud data I get the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;" /home/aziz99/ENV/lib/python3.8/site-packages/arcgis/learn/models/_arcgis_model.py:459: UserWarning: Cuda is not available&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;warnings.warn("Cuda is not available")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;File "/home/aziz99/ENV/lib/python3.8/site-packages/arcgis/learn/_data.py", line 2687, in prepare_data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;data = pointcloud_prepare_data(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;File "/home/aziz99/ENV/lib/python3.8/site-packages/arcgis/learn/_utils/pointcloud_data.py", line 1845, in pointcloud_prepare_data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;src=PointCloudItemList.from_folder(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AttributeError: type object 'PointCloudItemList' has no attribute 'from_folder'"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty sure that there is nothing wrong with the data as it works normally when I use the prepare_data on the conda environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 07:46:04 GMT</pubDate>
    <dc:creator>Aziz_AlNajjar</dc:creator>
    <dc:date>2023-02-24T07:46:04Z</dc:date>
    <item>
      <title>Error with arcgis.learn.prepare_data on arcgis==2.1.0.2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-with-arcgis-learn-prepare-data-on-arcgis-2-1/m-p/1261321#M8402</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been using the ArcGIS package on my computer using the conda package installations with no problems. However, I needed better computing abilities to train the model faster. So I tried to install the ArcGIS on the graham cluster from Compute Canada which only allows pip installations, and it is prohibited to use conda.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the &lt;STRONG&gt;pip install arcgis==2.1.0.2&lt;/STRONG&gt;&amp;nbsp; to install the library as specified in the installation instructions and there were no problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to use the &lt;EM&gt;prepare_data&lt;/EM&gt; function on my exported point cloud data I get the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;" /home/aziz99/ENV/lib/python3.8/site-packages/arcgis/learn/models/_arcgis_model.py:459: UserWarning: Cuda is not available&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;warnings.warn("Cuda is not available")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;File "/home/aziz99/ENV/lib/python3.8/site-packages/arcgis/learn/_data.py", line 2687, in prepare_data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;data = pointcloud_prepare_data(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;File "/home/aziz99/ENV/lib/python3.8/site-packages/arcgis/learn/_utils/pointcloud_data.py", line 1845, in pointcloud_prepare_data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;src=PointCloudItemList.from_folder(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AttributeError: type object 'PointCloudItemList' has no attribute 'from_folder'"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty sure that there is nothing wrong with the data as it works normally when I use the prepare_data on the conda environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 07:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-with-arcgis-learn-prepare-data-on-arcgis-2-1/m-p/1261321#M8402</guid>
      <dc:creator>Aziz_AlNajjar</dc:creator>
      <dc:date>2023-02-24T07:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error with arcgis.learn.prepare_data on arcgis==2.1.0.2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-with-arcgis-learn-prepare-data-on-arcgis-2-1/m-p/1263062#M8440</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/661194"&gt;@Aziz_AlNajjar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm affraid a simple pip installation is not enough to run deep learning tools out of the box. There are a lot of dependencies involved. There is even a specific metapackage on &lt;A href="https://anaconda.org/Esri/arcgis_learn" target="_self"&gt;conda&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;As a workaround you could zip your working conda environment and copy/paste in the target machine (you won't be able to use &lt;EM&gt;arcpy&lt;/EM&gt; if ArcGIS PRO isn't present or if there is a version mismatch, but it seems that you are only using arcgis.learn). However not sure if this will work as expected.&lt;/P&gt;&lt;P&gt;Also notice that you are running tools without CUDA which will increase processing time (even using CPU parallel processing).&lt;/P&gt;&lt;P&gt;Maybe the best option is to talk to TI and try to install a proper conda environment with the whole package set.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 15:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-with-arcgis-learn-prepare-data-on-arcgis-2-1/m-p/1263062#M8440</guid>
      <dc:creator>Kepa</dc:creator>
      <dc:date>2023-03-01T15:10:44Z</dc:date>
    </item>
  </channel>
</rss>

