Your message dated Sat, 25 May 2024 20:40:58 +0000
with message-id <[email protected]>
and subject line Bug#1068290: fixed in fastkml 0.12-4
has caused the Debian Bug report #1068290,
regarding python3-fastkml: ImportError since python3-pygeoif 1.4.0
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1068290: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068290
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-fastkml
Version: 0.12-3
Severity: grave
Tags: upstream
Justification: renders package unusable
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Since python3-pygeoif 1.4.0-1 appeared in Debian testing, fastkml cannot 
be imported at all:

    In [1]: import fastkml
    ---------------------------------------------------------------------------
    ImportError                               Traceback (most recent call last)
    File /usr/lib/python3/dist-packages/fastkml/geometry.py:39
         38 from shapely.geometry import Polygon
    ---> 39 from shapely.geometry import asShape
         40 from shapely.geometry.polygon import LinearRing

    ImportError: cannot import name 'asShape' from 'shapely.geometry' 
(/usr/lib/python3/dist-packages/shapely/geometry/__init__.py)

    During handling of the above exception, another exception occurred:

    ImportError                               Traceback (most recent call last)
    Cell In[1], line 1
    ----> 1 import fastkml

    File /usr/lib/python3/dist-packages/fastkml/__init__.py:34
         32 from .atom import Contributor
         33 from .atom import Link
    ---> 34 from .kml import KML
         35 from .kml import Data
         36 from .kml import Document

    File /usr/lib/python3/dist-packages/fastkml/kml.py:46
         44 import fastkml.atom as atom
         45 import fastkml.config as config
    ---> 46 import fastkml.gx as gx
         48 from .base import _BaseObject
         49 from .base import _XMLObject

    File /usr/lib/python3/dist-packages/fastkml/gx.py:92
         89 from pygeoif.geometry import GeometryCollection
         91 from .config import GXNS as NS
    ---> 92 from .geometry import Geometry
         94 logger = logging.getLogger(__name__)
         97 class GxGeometry(Geometry):

    File /usr/lib/python3/dist-packages/fastkml/geometry.py:46
         44     from pygeoif.geometry import MultiPoint, MultiLineString, 
MultiPolygon
         45     from pygeoif.geometry import LinearRing
    ---> 46     from pygeoif.geometry import as_shape as asShape
         48 import logging
         50 from pygeoif.geometry import GeometryCollection

    ImportError: cannot import name 'as_shape' from 'pygeoif.geometry' 
(/usr/lib/python3/dist-packages/pygeoif/geometry.py)

I believe this is because both shapely and pygeoif deprecated 
asShape/as_shape respectively. The function is now called just "shape" 
in both.

Unfortunately, fastkml doesn't have a newer release compatible with 
recent pygeoif (or shapely) versions. There's only been a steady stream 
of 1.0.alphas, most of which are broken in various ways (I have a 
project that depends on fastkml so its CI has been notifying me of ways 
my project breaks with those alphas and I tried to work around these for 
a while but recently gave up and just pinned fastkml to 0.12).

I think it might be okay to just patch fastkml/geometry.py to

    from shapely.geometry import shape as asShape
    …
    from pygeoif.geometry import shape as asShape

but it needs to be tested more thoroughly.

Also, fastkml 0.12 explicitly depends on pygeoif < 1.0, for good reason 
apparently, so it's a bit unfortunate that this dependency is relaxed in 
the Debian package. :-(

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.15-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_USER
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages python3-fastkml depends on:
ii  python3                3.11.6-1
ii  python3-dateutil       2.9.0-2
ii  python3-pkg-resources  68.1.2-2
ii  python3-pygeoif        1.4.0-1

python3-fastkml recommends no packages.

python3-fastkml suggests no packages.

-- no debconf information

-- 
Tomáš "liskin" ("Pivník") Janoušek, https://lisk.in/

--- End Message ---
--- Begin Message ---
Source: fastkml
Source-Version: 0.12-4
Done: Andreas Tille <[email protected]>

We believe that the bug you reported is fixed in the latest version of
fastkml, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated fastkml package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 25 May 2024 20:49:52 +0200
Source: fastkml
Architecture: source
Version: 0.12-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 1068290
Changes:
 fastkml (0.12-4) unstable; urgency=medium
 .
   [ Antonio Valentino ]
   * debian/patches:
     - New 0001-Compatibility-with-pygeoif-1.4.0.patch.
       Closes: #1068290.
 .
   [ Andreas Tille ]
   * Standards-Version: 4.7.0 (routine-update)
Checksums-Sha1:
 7d2c536906a7abf8196f4a1dab8ecf95aad46e53 2067 fastkml_0.12-4.dsc
 0714d5c86d972238016c66bf59442066495f554b 4168 fastkml_0.12-4.debian.tar.xz
 0bf1ba7c54a01a15dbd436cbf11600c27b89f2cb 6791 fastkml_0.12-4_amd64.buildinfo
Checksums-Sha256:
 0002e28c8a569a2d440109b874c06573e7e3c3f05853c86daa28faea7826f0af 2067 
fastkml_0.12-4.dsc
 bea6e94e16acbb3307c9550f83b180cfd5d70e3e2f2f974689604f0b91309f2b 4168 
fastkml_0.12-4.debian.tar.xz
 810930de81212e6e15c1989a09364499b652db4f80ba94be709aef896648bcb8 6791 
fastkml_0.12-4_amd64.buildinfo
Files:
 ca04b537bdaba39832c127b13ba1cbbe 2067 python optional fastkml_0.12-4.dsc
 268d3f9f22dd535a344f39462f7d4374 4168 python optional 
fastkml_0.12-4.debian.tar.xz
 64c68e8c1c0b9a733c595ee2d42cd691 6791 python optional 
fastkml_0.12-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCAAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmZSQuURHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtE4+w/9Fw2R9w32D2E6kY7O3JgSqFLawMWwouXP
xYIV8DLKgg098oK7SUYRukT1dyNq0DpfOHM+gvFjgFByfoHNor01B7yfGmHxYPFK
5QhSxu3TSYzTW6QQwP+iSFWPfYw1uI5jGnMneJCkING8OLNlI3PKZvEih16X6iky
1MqD0PFEFDiu3XqQSc0hqcSvPxKLkIRi/ZfzCMPlKt+5yDZQkrDiGnrEsKuWj2Kq
K1Y93CBFeFA+6DU3/ScOxs5jSDb6arbJhmernTPp30EPfoVep9P/fwX0B4292Y47
9lLYt/hJq7TZmshH/Y7dBNymggNojywDNLcZB9eY6MDB4/Bpq7+cmrzF/5y8haOq
YalMQeOaEFWxJpCkyRyrA6SzwSew4jRvpq8qodRpYcPjmx8UevhLYdhAj6wRpC8r
DbkVlad7/Z14rWaPhulBI9GibstREjk1IpEyamzpbBq7TCxcR/MInmdgIeZvki3H
N+Fu3xid4zEIGeO/WS4cr5puMVXF5gNMw+q6qGAR0JaqayMKLhdEIlHDwT7UxKbf
fookY2G31eGtrTiyl3NlyBhNrrG15+qB/ejE0OQQ2Mbt2U7pVbk5GWct7b6ZT550
1VcB+gbAcs+BEawYm3P8u+g/ABy5gu0f7DmIMpHU5ACc4zhE5GB9R64BR3jTdsF1
MLPdjpZki2U=
=Ec+I
-----END PGP SIGNATURE-----

Attachment: pgp4GQUx4nPi4.pgp
Description: PGP signature


--- End Message ---

Reply via email to