#45295: py34-aplpy @0.9.12 py34-pyregion is not available ---------------------+-------------------------------- Reporter: elenc@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: py34-aplpy ---------------------+-------------------------------- py34-pyregion doesn't appear to be available. It is required when overlaying DS9 regions onto FITS images e.g. {{{ import aplpy fig = aplpy.FITSFigure("test.fits") fig.show_regions("test.reg") }}} results in {{{
python3.4 test.py WARNING: FITSFixedWarning: RADECSYS= 'FK5 ' RADECSYS is non-standard, use RADESYSa. [astropy.wcs.wcs] Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/aplpy/regions.py", line 88, in ds9 import pyregion ImportError: No module named 'pyregion'
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "test.py", line 4, in <module> fig.show_regions("test.reg") File "<string>", line 2, in show_regions File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/aplpy/decorators.py", line 25, in _auto_refresh return f(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/aplpy/regions.py", line 63, in show_regions PC, TC = ds9(region_file, self._header, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/aplpy/regions.py", line 90, in ds9 raise ImportError("The pyregion package is required to load region files") ImportError: The pyregion package is required to load region files }}} Perhaps pyregion should be added as a dependency or as a variant? -- Ticket URL: <https://trac.macports.org/ticket/45295> MacPorts <http://www.macports.org/> Ports system for OS X