Code Monkey home page Code Monkey logo

Comments (5)

sgillies avatar sgillies commented on June 13, 2024

@lucasbrightnight thanks for the report! I can't reproduce this on my M3 MBP, which has libpcre2 in /opt/homebrew/lib, from Homebrew, and also in /usr/lib, which must be from macOS or XCode, yes? Can you confirm that you have or haven't installed XCode and command line tools on your computer?

from fiona.

lucasbrightnight avatar lucasbrightnight commented on June 13, 2024

@sgillies, sure thing! As I understand it, homebrew installs to /usr/lib paths for intel chips uses whereas Apple M1 chips install to /opt/homebrew paths. I can confirm I have not installed XCode. I am using fish and bash for command line tools.

I can confirm I only have libprec2 installed in the /opt/homebrew file path and not the user/lib path.

from fiona.

sgillies avatar sgillies commented on June 13, 2024

@lucasbrightnight my memory is that Homebrew installed to /usr/local, not /usr. On my work MBP /usr/lib/libpcre2-8.0.dylib has the same timestamp as everything in /System/Library, which suggests that it's part of macOS. I see the same thing on my personal laptop. Certainly, the macOS wheels were built on a system where /usr/lib/libpcre2-8.0.dylib existed, otherwise the library would have been vendored into the wheel like libgdal and friends. I don't have an explanation for why the file is missing from your system.

from fiona.

bvandepoel avatar bvandepoel commented on June 13, 2024

Exactly the same issue here (also on an M1 mac)

from fiona.

geowurster avatar geowurster commented on June 13, 2024

I'm experiencing the issue as well on an M1 Mac running MacOS 12 and:

$ brew --version
Homebrew 4.3.3

$ brew info pcre2 | head -1
==> pcre2: stable 10.43 (bottled), HEAD

$ xcode-select --version
xcode-select version 2395.

$ gdal-config --version
3.9.0

and a Python virtual environment with Fiona installed as a wheel:

$ python3 --version
Python 3.11.9


$ pip show setuptools pip wheel fiona | grep -E "Name|Version"

Name: setuptools
Version: 70.0.0

Name: pip
Version: 24.0

Name: wheel
Version: 0.43.0

Name: fiona
Version: 1.9.6

I have nothing matching /usr/lib/*pcre*, but Homebrew does report that the pcre2 package provides a /opt/homebrew/Cellar/pcre2/10.43/lib/libpcre2-8.0.dylib:

$ brew list
/opt/homebrew/Cellar/pcre2/10.43/bin/pcre2-config
/opt/homebrew/Cellar/pcre2/10.43/bin/pcre2grep
/opt/homebrew/Cellar/pcre2/10.43/bin/pcre2test
/opt/homebrew/Cellar/pcre2/10.43/include/ (2 files)
/opt/homebrew/Cellar/pcre2/10.43/lib/libpcre2-16.0.dylib
/opt/homebrew/Cellar/pcre2/10.43/lib/libpcre2-32.0.dylib
/opt/homebrew/Cellar/pcre2/10.43/lib/libpcre2-8.0.dylib
/opt/homebrew/Cellar/pcre2/10.43/lib/libpcre2-posix.3.dylib
/opt/homebrew/Cellar/pcre2/10.43/lib/pkgconfig/ (4 files)
/opt/homebrew/Cellar/pcre2/10.43/lib/ (8 other files)
/opt/homebrew/Cellar/pcre2/10.43/share/doc/ (109 files)
/opt/homebrew/Cellar/pcre2/10.43/share/man/ (96 files)

It is linked in /opt/homebrew/lib/libpcre2-8.0.dylib. Reinstalling with --no-binary seems to have gotten me a working version of the package.

$ pip install fiona --no-binary fiona

from fiona.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.