<?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 geopandas with arcpy 10.7.1 in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/geopandas-with-arcpy-10-7-1/m-p/645685#M4391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently upgraded my ArcGIS Desktop from 10.6.1 to 10.7.1 and I am having trouble finding a virtual environment that supports both 10.7.1 and open source GIS python libraries. I have a conda environment that works for 10.6.1 and open source, but when I try this environment with 10.7.1 it will not import geopandas or rasterio. I did a little digging and it seems this may have something to do with the different gdal bindings for 10.6.1 and 10.7.1. I noticed that when I remove the DTBGGP64.pth from the conda env, the geopandas and rasterio libraries work (arcpy does not though obviously). Has anyone encountered this? I am including the 10.6.1 conda environment yml file that worked great before I upgraded to 10.7.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After trying the 10.6.1 conda environment as-is, I created a new environment using the 10.7.1 library versions (pip.operations.freeze.freeze()) and adding the open source GIS libraries through conda. I copied the DTBGGP64.pth to the site packages folder of the new env. The problem is exactly the same. Arcpy functions work fine, but rasertio and geopandas give import errors. When I remove the DTBGGP64.pth, rasterio and geopandas work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: these are the specific errors I am getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;with DTBGGP64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import rasterio&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "C:\ProgramData\Anaconda3\envs\arcpy_10_7\lib\site-packages\rasterio\__init__.py", line 15, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from rasterio._base import (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ImportError: DLL load failed: The specified procedure could not be found.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;without DTBGGP64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import rasterio&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import geopandas&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ImportError: No module named arcpy&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2020 20:04:33 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-02-21T20:04:33Z</dc:date>
    <item>
      <title>geopandas with arcpy 10.7.1</title>
      <link>https://community.esri.com/t5/developers-questions/geopandas-with-arcpy-10-7-1/m-p/645685#M4391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently upgraded my ArcGIS Desktop from 10.6.1 to 10.7.1 and I am having trouble finding a virtual environment that supports both 10.7.1 and open source GIS python libraries. I have a conda environment that works for 10.6.1 and open source, but when I try this environment with 10.7.1 it will not import geopandas or rasterio. I did a little digging and it seems this may have something to do with the different gdal bindings for 10.6.1 and 10.7.1. I noticed that when I remove the DTBGGP64.pth from the conda env, the geopandas and rasterio libraries work (arcpy does not though obviously). Has anyone encountered this? I am including the 10.6.1 conda environment yml file that worked great before I upgraded to 10.7.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After trying the 10.6.1 conda environment as-is, I created a new environment using the 10.7.1 library versions (pip.operations.freeze.freeze()) and adding the open source GIS libraries through conda. I copied the DTBGGP64.pth to the site packages folder of the new env. The problem is exactly the same. Arcpy functions work fine, but rasertio and geopandas give import errors. When I remove the DTBGGP64.pth, rasterio and geopandas work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: these are the specific errors I am getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;with DTBGGP64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import rasterio&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "C:\ProgramData\Anaconda3\envs\arcpy_10_7\lib\site-packages\rasterio\__init__.py", line 15, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from rasterio._base import (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ImportError: DLL load failed: The specified procedure could not be found.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;without DTBGGP64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import rasterio&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import geopandas&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ImportError: No module named arcpy&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 20:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/geopandas-with-arcpy-10-7-1/m-p/645685#M4391</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-21T20:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: geopandas with arcpy 10.7.1</title>
      <link>https://community.esri.com/t5/developers-questions/geopandas-with-arcpy-10-7-1/m-p/645686#M4392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know it's been several months since your post, but maybe this will help you or others that are in a similar situation. I also had a need for rasterio which uses GDAL and ran into the same dll load failed error.&amp;nbsp;Installing from wheels worked for me. I know it's not best practice to mix conda w/ pip, but I haven't experienced any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the instructions from the rasterio page&amp;nbsp;&lt;A class="link-titled" href="https://pypi.org/project/rasterio/" title="https://pypi.org/project/rasterio/"&gt;rasterio · PyPI&lt;/A&gt;. Wheels can be found at&amp;nbsp;&lt;A class="link-titled" href="https://www.lfd.uci.edu/~gohlke/pythonlibs/" title="https://www.lfd.uci.edu/~gohlke/pythonlibs/"&gt;Python Extension Packages for Windows - Christoph Gohlke&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once rasterio and gdal were installed using the wheels, I was able to import both arcpy and rasterio without any issues. I haven't tried geopandas, but I imagine it would work since the problem seemed to be with gdal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 17:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/geopandas-with-arcpy-10-7-1/m-p/645686#M4392</guid>
      <dc:creator>JimmyKnowles</dc:creator>
      <dc:date>2020-07-15T17:00:45Z</dc:date>
    </item>
  </channel>
</rss>

