Opened 5 months ago

Closed 5 months ago

#65762 closed defect (fixed)

py-metpy: Missing runtime dependency on py-pyproj

Reported by: mf2k (Frank Schima) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-metpy

Description

$ port installed py310-metpy
The following ports are currently installed:
  py310-metpy @1.3.1_0 (active)
$ ipython
Python 3.10.6 (main, Aug  3 2022, 05:37:08) [Clang 13.0.0 (clang-1300.0.29.30)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.2.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import metpy
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 import metpy

File /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/metpy/__init__.py:35, in <module>
     32 os.environ['PINT_ARRAY_PROTOCOL_FALLBACK'] = '0'
     34 from ._version import get_version  # noqa: E402
---> 35 from .xarray import *  # noqa: F401, F403, E402
     37 __version__ = get_version()
     38 del get_version

File /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/metpy/xarray.py:27, in <module>
     24 import warnings
     26 import numpy as np
---> 27 from pyproj import CRS, Proj
     28 import xarray as xr
     30 from ._vendor.xarray import either_dict_or_kwargs, expanded_indexer, is_dict_like

ModuleNotFoundError: No module named 'pyproj'

Change History (1)

comment:1 Changed 5 months ago by Marius Schamschula <mschamschula@…>

Resolution: fixed
Status: assignedclosed

In d3a198a62590f732ce1bcbe25bea7945adcc16e4/macports-ports (master):

py-metpy: add py-pyproj dependency

Closes: #65762

Note: See TracTickets for help on using tickets.