0

I'm trying to create a python script that pulls directional information from photo attachments in a FGDB. I've downloaded the exifread module using pip, but I'm still getting the 'No module named 'exifread'' error whenever I try to run my code. I believe there could be an error with versioning between the version of exifread I installed and my version of python.

Has anyone figured out how to install the exifread module that works with Arcgis Pro?

1
  • How did you tell Arcgis Pro to use the Python environment of your system where you probably installed exifread? Jul 20, 2021 at 21:16

1 Answer 1

0

Pip probably installed exifread to a different version of Python than the version ArcGIS Pro uses. The Python version that installs with ArcGIS Pro is a walled garden. You cannot install third-party libraries to that version of Python unless they are ESRI authorized and preinstalled with Pro. You can clone your Python environment (create a new version of Python) on your computer and use that cloned environment to install third-party packages.

These ArcGIS Pro Python versions come preinstalled with the conda installer. Best to stick with conda for installing rather than pip to avoid conflicting library versions in any cloned versions you may create.

I see that the default version of Pro Python includes pillow-simd (a fork of Pilllow). Pillow, and PIL in the 2.7 days was capable of reading EXIF data. Maybe investigate the exif reading powers of pillow-simd. Here is a link to get you started. This will save you a lot of hassles having to have IT clone your Python environment and recloning it when they have to reset your roaming Windows profile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.