Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs with instructions on installing pdgraster on devices with Apple Silicon chips #30

Open
robyngit opened this issue May 22, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@robyngit
Copy link
Member

I ran into issues installing pdgraster on a Mac with an Apple Silicon chip (M2). Since other developers might hit similar roadblocks, we may want to eventually update the docs with some additional instructions. For now, I just wanted to document the steps I took to get it working in case I or others need to refer to it the future.

Pillow library

The Pillow library was not being installed with the correct architecture (ARM64) binaries.

Steps to resolve:

pip uninstall pillow
pip cache purge
export CFLAGS="-arch arm64"
export LDFLAGS="-arch arm64"
pip install --no-cache-dir --no-binary :all: "Pillow>=9,<10"

Because the error message initially mentioned jpeg I also initially installed it via brew, however, I don't know if this was necessary in the end.

arch -arm64 brew install jpeg

libspatialindex install

To install libspatialindex I had to use the brew command with the arch flag to specify the architecture:

arch -arm64 brew install spatialindex

pdgstaging install?

I installed pdgraster using pip install -e . I'm not sure why it failed to install pdgstaging (since it is listed in setup.py), but I had to install it manually using pip install git+https://github.com/PermafrostDiscoveryGateway/viz-staging. This might be unique to my particular case, but I wanted to document it here in case others run into the same issue.

@robyngit robyngit added the documentation Improvements or additions to documentation label May 22, 2024
@robyngit robyngit changed the title Update docs with installing pdgraster on devices with Apple Silicon chips Update docs with instructions on installing pdgraster on devices with Apple Silicon chips May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant