Skip to content

pyferret issue with anaconda install, MacOS, Apple silicon #145

@andyjacobson

Description

@andyjacobson

New M3 Mac running MacOS 14.7.1. Followed installation instructions in the README.md file, notably doing:

CONDA_SUBDIR=osx-64 conda create -n FERRET -c conda-forge pyferret ferret_datasets --yes

This apparently installed OK, but executing ferret in this environment yields:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "", line 1, in
File "/opt/anaconda3/envs/FERRET/lib/python3.10/site-packages/pyferret/init.py", line 468, in init
if not start(memsize=my_memsize, journal=my_journal, verify=my_verify,
File "/opt/anaconda3/envs/FERRET/lib/python3.10/site-packages/pyferret/init.py", line 589, in start
if not libpyferret._start(flt_memsize, False, False,
AttributeError: _ARRAY_API not found
Traceback (most recent call last):
File "", line 1, in
File "/opt/anaconda3/envs/FERRET/lib/python3.10/site-packages/pyferret/init.py", line 468, in init
if not start(memsize=my_memsize, journal=my_journal, verify=my_verify,
File "/opt/anaconda3/envs/FERRET/lib/python3.10/site-packages/pyferret/init.py", line 589, in start
if not libpyferret._start(flt_memsize, False, False,
ImportError: numpy.core.multiarray failed to import

Tried the suggested "conda install 'numpy<2'", which also completed without error. However, the resulting ferret apparently cannot create a graphical window:

NOAA/PMEL TMAP
PyFerret v7.64 (optimized)
Darwin 19.6.0 - 12/10/21
20-Feb-25 16:20

yes? set win/new
grdelWindowCreate: error when calling createWindow in pyferret.graphbind: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
FGD_GACWK: null windowobj
FGD_GSCR: null windowobj
FGD_GSCR: null windowobj
FGD_GSCR: null windowobj
FGD_GSCR: null windowobj
FGD_GSCR: null windowobj
FGD_GSCR: null windowobj
FGD_GSPLR: null windowobj
... and many more such messages until
FGD_GSPLR: null windowobj
FGD_GQDSP: null windowobj
**ERROR: value out of legal range: The implied size in pixels is too small

I sure would like to use ferret on my Mac! Any suggestions out there?

Best, Andy Jacobson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions