I installed fiona into an environment in ArcPro and then launched it from Anaconda using Jupyter notebook. When I try to import it I get an import error. This error is being discussed on gis.stackexchange here. Their workaround was to downgrade Fiona to version 1.8.4, but I'm working from an updated version of Pro that doesn't give an option to downgrade the package.
python - Installing Fiona into cloned conda environment in ArcGIS Pro gives ImportError - Geographic Information Systems…
You have to do this through conda... If you are familiar with it...
dry run, check, if ok, remove the dry-run
--no-pin is to remove esri's parental controls
<SPAN class="comment token"># ---- first do a dry run to see what is going to happen</SPAN> conda install fiona<SPAN class="operator token">=</SPAN><SPAN class="number token">1.18</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="number token">4</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>no<SPAN class="operator token">-</SPAN>pin <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>dry<SPAN class="operator token">-</SPAN>run <SPAN class="comment token"># ---- Then if everything looks fine,</SPAN> conda install fiona<SPAN class="operator token">=</SPAN><SPAN class="number token">1.18</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="number token">4</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>no<SPAN class="operator token">-</SPAN>pin<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
you have arcgis 1.7.1
the current version is 1.8.1
could be the problem... I don't know the version history
You might have to go fishing on their GitHub site for Issues around fiona, if they are there
GitHub - Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python
I can see that the packages are installed, but when I try to import them in my notebook I'm getting the same error:
Does it seem like there's a different problem? When I search for this error I see a lot of people discussing other packages interfering with each other. I'm sharing my package list in case any conflicts pop out?
https://anaconda.org/Esri/gdal/files
has ...1 and ...11 versions of tar.bz
from
https://anaconda.org/Esri/gdal
But I am on Pro 2.6 Beta 1 at present, so my "conda list" won't help
This seemed to work, but then when I had to update another package Fiona stopped working. I tried uninstalling and reinstalling the same way, and now Fiona doesn't seem to be repairable.
ArcPro released a patch and now you appear to be able to choose Fiona 1.8.4, 1.8.11, and 1.8.13, but none of them are working. When I try installing fiona 1.8.11 from the Anaconda Prompt it says:
ArcPro had installed a different gdal, so I installed gdal 2.3.3, but I get the same error. I noticed the list of packages installed shows:
Is the problem be that it's expecting gdal=2.3.3=arcgispro_1 and it's getting gdal=2.3.3=arcgispro_11? And if that's the problem, where/how do I change the build number?
-OR- I notice the version of fiona and geopandas changes in Pro depending on what order you install the packages in. Is there a correct install sequence that would end up with a working environment?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.