ioos / erddapy

Python interface for ERDDAP
https://ioos.github.io/erddapy/
BSD 3-Clause "New" or "Revised" License
77 stars 30 forks source link

errdapy not available for Apple Silicon macOS 12 systems #227

Closed truedichotomy closed 2 years ago

truedichotomy commented 2 years ago

Currently I'm unable to install errdapy for my Apple Silicon based Mac. Please add support for these systems.

abkfenris commented 2 years ago

How are you trying to install it, and what kind of error does it give you?

It might be easiest for us to help debug if you include the full error log.

truedichotomy commented 2 years ago

I get the following error when trying to install using pip:

(base) gong@polaris ~ % pip install errdapy
ERROR: Could not find a version that satisfies the requirement errdapy (from versions: none)
ERROR: No matching distribution found for errdapy
(base) gong@polaris ~ % 

I wasn't able to install errdapy using conda last night but somehow this morning it lets me install. However when I tried to load it in python, I countered the following error:

(base) gong@polaris covid19 % ipython
Python 3.9.9 | packaged by conda-forge | (main, Dec 20 2021, 02:41:07) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from erddapy import ERRDAP
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Input In [1], in <module>
----> 1 from erddapy import ERRDAP

ImportError: cannot import name 'ERRDAP' from 'erddapy' (/Users/gong/miniforge3/lib/python3.9/site-packages/erddapy/__init__.py)

Here is my system info:

(base) gong@polaris ~ % uname -a 
Darwin polaris.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64
ebridger commented 2 years ago

You have a typo. errddapy has one r, not two. Try: erddapy.
https://pypi.org/search/?q=erddapy&o=

truedichotomy commented 2 years ago

Wow, I didn't realize how much trouble my brain had differentiating ERRDAP and ERDDAP! Thank you.

ocefpaf commented 2 years ago

BTW, erddapy is pure Python, it should run in any system where Python runs.

abkfenris commented 2 years ago

My first thought was that it might be trying to pull in a version of Numpy that might be incompatible with Apple Silicon rather than erddapy being the issue itself.