Install & Compatibility
Where this runs
tested against v7.0.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✕ build_error
py 3.11
✕ build_error
✓ 33.6s
py 3.12
✕ build_error
✓ 31.5s
py 3.13
✕ build_error
✓ 32s
py 3.9
✕ build_error
✓ 40.2s
813MB installed
● package 813MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Map
✓ import sunpy.map
✗ from sunpy import Map
Map is a module, not a class; use sunpy.map.Map for the class
sunpy.map.Map
✓ import sunpy.map; smap = sunpy.map.Map(...)
✗ from sunpy.map import Map
Direct import of Map is possible but discouraged due to namespace conflicts with built-in map()
Downloads an AIA 193 Å image from JSOC and displays it
import sunpy.map
import astropy.units as u
from sunpy.net import Fido, attrs as a
# Download an AIA 193 image (requires internet)
result = Fido.search(a.Time('2020-01-01 00:00:00', '2020-01-01 00:00:10'),
a.Instrument.aia, a.Wavelength(193*u.angstrom))
files = Fido.fetch(result)[0]
# Load and plot map
m = sunpy.map.Map(files)
m.plot()
sunpy --version
Errors
Common errors & fixes
ImportError: cannot import name 'Map' from 'sunpy'
Using 'from sunpy import Map' which imports the module, not the class.
fixUse 'import sunpy.map' then 'sunpy.map.Map'.
TypeError: Cannot parse unit from input
Passing plain numbers to coordinate constructors without astropy units.
fixUse astropy.units, e.g., coord = SkyCoord(10*u.deg, 20*u.deg, frame='heliographic_stonyhurst').
sunpy.net.vso - VSOClient error: No data found for the given query
VSO query parameters too restrictive or server issue; JSOC may have different availability.
fixBroaden time range or use different instrument/wavelength. Consider using Fido with attrs from sunpy.net.attrs.
Upgrade
Version history
7.1.2latest on PyPI · released Apr 19, 2026
Audit
Dependencies
astropyrequiredCore dependency for units, coordinates, and FITS handling
drmsoptionalAccess JSOC DRMS data export (e.g., HMI, AIA)
parfiveoptionalParallel file download client