- Package:
- photofilmstrip
- Source:
- photofilmstrip
- Submitter:
- Gravis
- Date:
- 2022-06-15 18:24:03 UTC
- Severity:
- important
- Tags:
Dear Maintainer,
* What led up to the situation?
Run program (GUI mode), create new project, add picture.
* What was the outcome of this action?
Program throws an uncaught exception before hanging:
File "/home/gravis/pfs/photofilmstrip/gui/ImageSectionEditor.py", line 481, in
OnResize
self.__Scale()
File "/home/gravis/pfs/photofilmstrip/gui/ImageSectionEditor.py", line 122,
in __Scale
self._imgProxy.Scale(newWidth, newHeight)
File "/home/gravis/pfs/photofilmstrip/gui/ImageSectionEditor.py", line 675,
in Scale
img = self._wxImg.Scale(width, height)
TypeError: Image.Scale(): argument 1 has unexpected type 'float'
Hi, thanks for reporting this. It looks like you running PhotoFilmStrip from source. Whats your environment you running it on? Especially python version and wxPython version? As a quick fix you might edit the file "/home/gravis/pfs/photofilmstrip/gui/ImageSectionEditor.py" on line 675. Change the line: img = self._wxImg.Scale(width, height) to img = self._wxImg.Scale(int(round(width)), int(round(height))) I have a look at the issue myself and try to publish a fix. Regards, Jens Zitat von Gravis <noreply+debian.reportbug.photofilmstrip@adaptivetime.com> (So 29 Mai 2022 13:31:37 CEST):
Hi,
I can confirm this bug on current Debian Sid, Python 3.10 and
python3-wxgtk4.0 4.0.7.
Am 04.06.22 um 10:24 schrieb PhotoFilmStrip:
Traceback (most recent call last):
File
"/usr/lib/python3/dist-packages/photofilmstrip/gui/PnlPfsProject.py",
line 501, in OnLvPicsSelectionChanged
self._OnPicsSelectionChanged(selItems, selPics)
File
"/usr/lib/python3/dist-packages/photofilmstrip/gui/PnlSlideshow.py",
line 127, in _OnPicsSelectionChanged
self.bitmapLeft.SetSection(wx.Rect(*selPics[0].GetStartRect()))
TypeError: Rect(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 2 has unexpected type 'float'
overload 3: argument 1 has unexpected type 'int'
overload 4: argument 1 has unexpected type 'int'
overload 5: argument 1 has unexpected type 'int'
overload 6: argument 1 has unexpected type 'int'
Traceback (most recent call last):
File
"/usr/lib/python3/dist-packages/photofilmstrip/gui/ImageSectionEditor.py",
line 221, in OnPaint
self.__DrawSection(dc)
File
"/usr/lib/python3/dist-packages/photofilmstrip/gui/ImageSectionEditor.py",
line 150, in __DrawSection
sectRect = self.__SectRectToClientRect()
File
"/usr/lib/python3/dist-packages/photofilmstrip/gui/ImageSectionEditor.py",
line 140, in __SectRectToClientRect
sectRect = wx.Rect(left + (self._sectRect.GetLeft() * self._zoom),
TypeError: Rect(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 1 has unexpected type 'float'
overload 3: argument 1 has unexpected type 'float'
overload 4: argument 1 has unexpected type 'float'
overload 5: argument 1 has unexpected type 'float'
overload 6: argument 1 has unexpected type 'float'
Please ping me when that's done.
Best wishes
We believe that the bug you reported is fixed in the latest version of
photofilmstrip, 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 1012049@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Philipp Huebner <debalance@debian.org> (supplier of updated photofilmstrip 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 15 Jun 2022 20:07:58 +0200
Source: photofilmstrip
Architecture: source
Version: 4.0.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Philipp Huebner <debalance@debian.org>
Closes: 1012049
Changes:
photofilmstrip (4.0.0-1) unstable; urgency=medium
.
[ Philipp Huebner ]
* New upstream version 4.0.0 (Closes: #1012049)
* Updated years in debian/copyright
* Updated debian/source/lintian-overrides
.
[ Debian Janitor ]
* Remove obsolete field Name from debian/upstream/metadata
(already present in machine-readable debian/copyright).
* Update standards version to 4.6.0, no changes needed.
Checksums-Sha1:
f7dac17d4d58cd9aeb9dcf4ea62399c7601808b9 2100 photofilmstrip_4.0.0-1.dsc
3a1c34ff2e9d6aeacaecd72611bbfdc0ecd77b8f 18007854 photofilmstrip_4.0.0.orig.tar.gz
d8be5432a627e7befa63ec3bbb60d5d1a58f01f6 3384 photofilmstrip_4.0.0-1.debian.tar.xz
d34fd9ebb5b0e30e5793ffe5149d5ae3bb2f1bb0 9387 photofilmstrip_4.0.0-1_amd64.buildinfo
Checksums-Sha256:
43086a4db75b40fbd2849d590fe4e7e6525872d448e601378d1ae78128e18f15 2100 photofilmstrip_4.0.0-1.dsc
7697045268a26e2b52bd48cb7aa137d72018d51cb8c8cb836165c9fdaa24c60d 18007854 photofilmstrip_4.0.0.orig.tar.gz
5a23406615fd8f040aba27feb67340784def9f03968b2a8f67f64173a5d06fe6 3384 photofilmstrip_4.0.0-1.debian.tar.xz
31d87b0262ce9e63434eb358792b0de9c2aa6aa1e93e629cf93ebd7444e61297 9387 photofilmstrip_4.0.0-1_amd64.buildinfo
Files:
f0e3ebddeeb1941c8d959aed4c0e641f 2100 video optional photofilmstrip_4.0.0-1.dsc
5dfa218904903be9f040d5c28007dd19 18007854 video optional photofilmstrip_4.0.0.orig.tar.gz
274038f9b398a3a954feb928388f2682 3384 video optional photofilmstrip_4.0.0-1.debian.tar.xz
fc06518d3834a86fdd1a1e1313764ec6 9387 video optional photofilmstrip_4.0.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJJBAEBCgAzFiEECEGLvkRyDy26xQXsunokltrkDRwFAmKqIIIVHGRlYmFsYW5j
ZUBkZWJpYW4ub3JnAAoJELp6JJba5A0cb2YQANnQltaDYNuHj5qrENo5XlNXG+d8
NrxuOmm/cO/Fww2XcHc1QEJP7Yw5zSln0axZngflEncFFPMlCVR9l+zuGjGoLbt5
kIdOIKmfkvcPrdzB870dMcG3YtxxWiqBXjB3PBEcc6jgpfIxTWywIp3k0wLUobTZ
LeV2dUlhKeve5JkRI4N5LHItvmlrqjcYZl5A8mUuVrQZFepq6w0NnwF/tfy9hxAv
8QKhQRGctzfYZHK1IYh4g+b8mPy8ttKedHZWjdaE7brTKD7DuciXUjZByEPJ8wV8
gnBu8RDNk+f5Tkm5y8M4xz30pZ78vTSfvKSMVEvFRUdErnlkBjh42OOjqLzUFOZO
U/0SA4+oUb3IZc7kFu4/FVHSlFOY656zixEsolqGedlBNQz/TBb/Yjwrr/kP42PY
uSbCe4af3L6HumXqO+m4Yfh1p+SnL2evx8E7w7uEsmVK8us1rYSLiRO44i0AEXJy
Ea5NuWnX4sxCgaif+tRSr4oYkOR+xNtomGNlrno8UMuWVkNrIlHZ4e4UcgGwjSfS
PLvlIgyFhumzE8foZpAATaUpr8mZ0C0qYUd0HVUZc0J4p29ibdOr8KIIZ+VG+EOr
lgJLTNOhP4bjXeEkPF5amI53Uy3139SbxWJK3a9jPKmVL+UWWLMlsv36HiPatQxh
Eh4R/e1xx6glgjOx
=CPQS
-----END PGP SIGNATURE-----