Can't import fiona because libgdal.29.dylib
can't be found
#1131
-
Expected behavior and actual behavior.
Instead, I see the following:
Operating systemM1 Mac running macOS Monterey 12.1 Fiona and GDAL version and provenanceFiona version 1.8.20 installed via pip GDAL version 3.4.1_1 installed with brew I "fixed" the issue simply by running the following command:
But I thought I would report a bug because I couldn't find any information on this issue, and the "solution" is not obvious. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 7 replies
-
@ischmidt20 I'm sorry you're having a hard time. The line |
Beta Was this translation helpful? Give feedback.
-
I faced the same issue. I had to rebuild from source. Reinstalling via pip did not avoid the error. |
Beta Was this translation helpful? Give feedback.
-
renaming libgdal.30.dylib to libgdal.29.dylab worked for me (but my files were in |
Beta Was this translation helpful? Give feedback.
-
@nicolegoebel renaming the libraries will almost certainly break something. I can't recommend anything other than what @krober10nd has done. Install GDAL using homebrew, make sure that gdal-config is on your executable path, and then |
Beta Was this translation helpful? Give feedback.
-
Okay thanks!!
…On Tue, Jun 7, 2022 at 1:48 PM Sean Gillies ***@***.***> wrote:
@nicolegoebel <https://github.com/nicolegoebel> renaming the libraries
will almost certainly break something. I can't recommend anything other
than what @krober10nd <https://github.com/krober10nd> has done. Install
GDAL using homebrew, make sure that gdal-config is on your executable path,
and then pip install --no-binary=fiona fiona.
—
Reply to this email directly, view it on GitHub
<#1054 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPPCSZYALVSVMHW7EFBODVN6YTTANCNFSM5MLWPVUA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Nicole Goebel
Data Scientist
ACLIMA INC
Direct (415) 735-5389 | Email ***@***.***
10 Lombard St. Suite 400 | San Francisco, CA 94111
Hello, we're Aclima <http://www.aclima.io/>.
This email and any attachments may contain private, confidential and
privileged material for the sole use of the intended recipient. If you are
not the intended recipient, please immediately delete this email and any
attachments.
|
Beta Was this translation helpful? Give feedback.
-
Actually this did not work for me and now I am back to where I started. Except that there is no longer a |
Beta Was this translation helpful? Give feedback.
-
I also want to chime in and say that reinstalling gdal and fiona with various combinations of arguments never fixed this. The only thing that worked was simply renaming the file as described above, which I'll admit was a very surprising solution. |
Beta Was this translation helpful? Give feedback.
-
I am having having this issue as well, but I have |
Beta Was this translation helpful? Give feedback.
-
Update: I've got a hypothesis at #1131 (reply in thread). Please read it before you rename your library. To be clear: the project does not endorse renaming the shared library file. It's likely to trip you up again in the future. I've converted this to a discussion and hope that someone who knows homebrew inside and out can explain how to get homebrew libgdal into good working order. |
Beta Was this translation helpful? Give feedback.
-
The same issue cropped up with fiona 1.18 and libgdal.32 on macOS with brew installed gdal at version 3.6.2. The same correction -- copying (I just created a symlink...) the file to create the path to the sought-for but missing earlier version.
|
Beta Was this translation helpful? Give feedback.
-
Same issue here, running commands as suggested in #1131 (reply in thread) did not help. |
Beta Was this translation helpful? Give feedback.
Update: I've got a hypothesis at #1131 (reply in thread). Please read it before you rename your library.
To be clear: the project does not endorse renaming the shared library file. It's likely to trip you up again in the future.
I've converted this to a discussion and hope that someone who knows homebrew inside and out can explain how to get homebrew libgdal into good working order.