[Debian-astro-maintainers] Bug#968781: python3-sunpy: Breaks python3-asdf
Yannick Roehlly
yannick.roehlly at gmail.com
Fri Aug 21 09:54:12 BST 2020
Package: python3-sunpy
Version: 2.0.1-2
Severity: important
Hi,
Having python3-sunpy installed breaks the use of python3-asdf. For instance,
using the example from the asdf documentation:
%<---
import asdf
import numpy as np
# Create some data
sequence = np.arange(100)
squares = sequence**2
random = np.random.random(100)
# Store the data in an arbitrarily nested dictionary
tree = {
'foo': 42,
'name': 'Monty',
'sequence': sequence,
'powers': { 'squares' : squares },
'random': random
}
# Create the ASDF file object from our data tree
af = asdf.AsdfFile(tree)
%<---
fails with:
DistributionNotFound: The 'parfive[ftp]>=1.1.0' distribution was not found and
is required by the application
This happens because asdf parses the 'asdf_extensions' entry points and try to
load them. 'sunpy.io.special.asdf.extension:SunpyExtension' is the sunpy
extension that raises the issue when calling load.
At first, I thought that it could be an asdf bug because parfive[ftp] could be
an optional dependency of sunpy but apparently it is in the install_requires
of
the module[1].
Note that the python3-parfive package in Debian does not contain the ftp
module.
When it is installed, the error raised is:
UnknownExtra: parfive 1.1.1 has no such extra feature 'ftp'
Regards,
Yannick
[1] https://github.com/sunpy/sunpy/blob/master/setup.cfg#L41
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.8.2 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr:en_GB
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-sunpy depends on:
ii libc6 2.31-3
ii python3 3.8.2-3
ii python3-astropy 4.1~rc1-2
ii python3-matplotlib 3.3.0-3
ii python3-numpy [python3-numpy-abi9] 1:1.19.1-1
ii python3-pandas 1.0.4+dfsg-1
ii python3-scipy 1.5.2-2
Versions of packages python3-sunpy recommends:
ii python3-bs4 4.9.1-1
ii python3-drms 0.5.7-1
ii python3-requests 2.23.0+dfsg-2
ii python3-skimage 0.17.2-2
ii python3-sqlalchemy 1.3.18+ds1-1
ii python3-suds 0.8.4-1
python3-sunpy suggests no packages.
-- no debconf information
--
A mathematician is a device for turning coffee into theorems.
-- P. Erdos
More information about the Debian-astro-maintainers
mailing list