0

I've been trying to install GDAL via poetry on mac but i keep getting an EnvCommandError error. I've tried reinstalling command line tools on mac and i even tried this stack overflow solution where i could log in to poetry's shell, try installing poetry via pip through there and then try adding GDAL via poetry but i still get the same error. Going through the code, it's all repeating this error at different lines of code

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Something about null values not allowed. I'm not exactly sure how to resolve this one. Has anyone encountered this error before with GDAL and poetry?

EDIT: This still isn't fixed yet but i tried installing via homebrew and the installation proceeded. From what i've been reading so far, it seems that the stdio.h that comes with xcode's command line tools isn't compatible with how gdal is setup so if i install via pip, the installation fails. Not sure though what homebrew does differently. Unfortunately, since poetry uses pip, not homebrew, this is not solved yet

Dogfish
  • 94
  • 8

0 Answers0