Your message dated Mon, 26 Dec 2022 14:59:09 +0000
with message-id <[email protected]>
and subject line Bug#1023633: fixed in scalene 1.5.16-1
has caused the Debian Bug report #1023633,
regarding python3-scalene: can't import (or execute) scalene
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.)
--
1023633: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023633
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-scalene
Version: 1.4.1-1
Severity: important
X-Debbugs-Cc: [email protected]
Dear Maintainer,
Running scalene, either with the CLI command `scalene`, or `python3.10 -m
scalene`, or `python3.9 -m scalene`, causes this (or similiar) import error:
Traceback (most recent call last):
File "/usr/bin/scalene", line 33, in <module>
sys.exit(load_entry_point('scalene==1.4.1', 'console_scripts',
'scalene')())
File "/usr/bin/scalene", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/scalene/__main__.py", line 4, in
<module>
from scalene import scalene_profiler
File "/usr/lib/python3/dist-packages/scalene/scalene_profiler.py", line 46,
in <module>
from scalene.scalene_mapfile import ScaleneMapFile
File "/usr/lib/python3/dist-packages/scalene/scalene_mapfile.py", line 6, in
<module>
from scalene import get_line_atomic # type: ignore
ImportError: cannot import name 'get_line_atomic' from 'scalene'
(/usr/lib/python3/dist-packages/scalene/__init__.py)
The problem is easily traced to the included get_line_atomic C extension
being installed to /usr/lib/scalene/lib, which is not on Python's search
path for modules. Extension modules should be installed alongside their
pure-Python companions, in /usr/lib/python3/dist-packages (see: every other
Python package with a C extension.)
This also explains why the generated manpage is a duplicate of `python3 -h`.
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-0-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8),
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-scalene depends on:
ii libc6 2.36-4
ii libgcc-s1 12.2.0-9
ii libstdc++6 12.2.0-9
ii python3 3.10.6-1
ii python3-cloudpickle 2.0.0-1
ii python3-numpy 1:1.21.5-1+b1
ii python3-rich 12.4.4-1
Versions of packages python3-scalene recommends:
ii python3-ipython 8.5.0-1
ii python3-pynvml 11.515.75-1
python3-scalene suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: scalene
Source-Version: 1.5.16-1
Done: Emmanuel Arias <[email protected]>
We believe that the bug you reported is fixed in the latest version of
scalene, 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.
Emmanuel Arias <[email protected]> (supplier of updated scalene 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: SHA512
Format: 1.8
Date: Mon, 26 Dec 2022 09:33:26 -0300
Source: scalene
Architecture: source
Version: 1.5.16-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Emmanuel Arias <[email protected]>
Closes: 1023633 1025237
Changes:
scalene (1.5.16-1) unstable; urgency=medium
.
* New upstream version (Closes: #1025237, #1023633).
* d/patches: Update patches according to upstream changes.
* d/control: Bump Standards-Version to 4.6.1.1 (from 4.6.0; no further
changes).
* d/copyright: Update the Source upstream link.
* d/control: Update Homepage upstream link.
* d/copyright: Update the upstream name and contact email in the file.
* d/python3-scalene.install: install scalene-gui in
/usr/share/python3-scalene/.
- d/patches: Add 0005-Point-to-the-debianize-scalene-gui-path.patch to
redirect correctly the scalene-gui path.
- d/control: Add libjs-bootstrap4 and libjs-jquery as dependency of the
package. These are used by the scalene-gui.
* d/patches: Add 0004-Remove-links-to-external-resource.patch patch to
remove links for external libs.
* d/rules: Fix where the *.so files are installed. Now they are living in
/usr/lib/python*/dist-packages/scalene/.
- Add Debian SOABI name to crdp and get_line_atomic extensions.
* d/source/lintian-overrides: Override source-is-missing,
very-long-line-length-in-source-file and
source-contains-prebuilt-javascript-object they are because scalene-gui
contains some js files.
- python3-scalene.lintian-overrides: Override privacy-breach-generic, this
is because scalene-gui use vega-embed and vega-lite and they are not in
Debian yet.
* d/patches/0006-Add-hardening-flags-in-the-build.patch: Add patch to use
CXXFLAGS, CPPFLAGS and LDFLAGS in build to solve hardening issues.
- d/rules: Change DEB_BUILD_MAINT_OPTIONS to hardening=+all from
hardening=+bindnow.
* d/control: Add cython3 and python3-jinja2 as Build Depends.
- Run wrap-and-sort.
* d/control: Remove trivial autopkgtest-pkg-python.
* d/tests: Add autopkgtest.
* d/copyright: Add more files and its copyright notes.
- Use expat License instead of MIT license.
- Add crdp vendored extension to copyright.
Checksums-Sha1:
860b73ecf4c3202c13ee49d10f1d1b0d86e362a2 1635 scalene_1.5.16-1.dsc
2eccf2266708cb67455e31fb7381ed7ea4846996 5498550 scalene_1.5.16.orig.tar.gz
1c687623801cb92f20c79320cb8b71763334f95c 8780 scalene_1.5.16-1.debian.tar.xz
cf9b013c3a9513bb6b1e1ba5f0760b69fc9ea31a 7478 scalene_1.5.16-1_source.buildinfo
Checksums-Sha256:
565f7ded15af853f449082feb07baf611a13d1a7607f7a97cd997ae7b88d071c 1635
scalene_1.5.16-1.dsc
2b09aa9b3c5e59c87a08db38771cb75fc0b4c504e93b4be2203f01177ca054b0 5498550
scalene_1.5.16.orig.tar.gz
633c9b9b818a146de1327e29845af9c26f1f69694cd8137ec1a98be91ecc97d3 8780
scalene_1.5.16-1.debian.tar.xz
e51015c3036ab37bdc5c190b4e15c27d56970e0c19c8341672941dd90f5c1fae 7478
scalene_1.5.16-1_source.buildinfo
Files:
0191fad65e6c8bf1d9dd3297c72158e3 1635 python optional scalene_1.5.16-1.dsc
321cb3c55ff2d1d2dc8a8a74023f08d0 5498550 python optional
scalene_1.5.16.orig.tar.gz
e4bcfc9b17ff0c751a80c5ac13468453 8780 python optional
scalene_1.5.16-1.debian.tar.xz
1273a5a11c42d56e07d7c13a9d5e8073 7478 python optional
scalene_1.5.16-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCY6mUrxQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2Gg+AQD78eZZzjWF3ik3MIPCQ4f3Bq4GrS6a
MqIp2m2sqNtXkAEAk2V4j89qxqsdnkHLptsfTcLRMzNSWJG08YXTNpZWVQo=
=RpD7
-----END PGP SIGNATURE-----
--- End Message ---