Your message dated Sat, 24 Dec 2022 06:19:24 +0000
with message-id <[email protected]>
and subject line Bug#1020842: fixed in locust 2.12.1-1
has caused the Debian Bug report #1020842,
regarding python3-locust: Bug in web.py, maybe upgrade to version 2.12?
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.)


-- 
1020842: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020842
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-locust
Version: 1.4.3-3
Severity: important


I tried locust, but (using the hello_world example) couldn't even start it:

[2022-09-27 14:12:45,863] XXX/INFO/locust.main: Starting web interface at 
http://0.0.0.0:8089 (accepting connections from all network interfaces)
Traceback (most recent call last):
  File "/bin/locust", line 33, in <module>
    sys.exit(load_entry_point('locust==1.4.3', 'console_scripts', 'locust')())
  File "/usr/lib/python3/dist-packages/locust/main.py", line 286, in main
    web_ui = environment.create_web_ui(
  File "/usr/lib/python3/dist-packages/locust/env.py", line 165, in 
create_web_ui
    self.web_ui = WebUI(
  File "/usr/lib/python3/dist-packages/locust/web.py", line 102, in __init__
    app.jinja_options["extensions"].append("jinja2.ext.do")
KeyError: 'extensions'


Then I found this when searching for the problem:

"Based on what chfaber shared in this StackOverflow post , the workaround
would be to replace
app.jinja_options['extensions'].append('jinja2.ext.do') with
app.jinja_env.add_extension('jinja2.ext.do')
"

I followed the advice and locust started like it should.

So, maybe time for a newer version? :-)


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-locust depends on:
ii  python3                   3.10.6-1
ii  python3-configargparse    1.5.3-1
ii  python3-flask             2.0.3-1
ii  python3-flask-basicauth   0.2.0-2
ii  python3-gevent            21.12.0-1
ii  python3-geventhttpclient  1.5.3-1+b2
ii  python3-msgpack           1.0.3-1+b1
ii  python3-psutil            5.9.0-1+b1
ii  python3-requests          2.27.1+dfsg-1
ii  python3-werkzeug          2.0.2+dfsg1-3
ii  python3-zmq               22.3.0-1+b2

python3-locust recommends no packages.

python3-locust suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: locust
Source-Version: 2.12.1-1
Done: Sandro Tosi <[email protected]>

We believe that the bug you reported is fixed in the latest version of
locust, 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.
Sandro Tosi <[email protected]> (supplier of updated locust 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, 24 Dec 2022 01:00:17 -0500
Source: locust
Architecture: source
Version: 2.12.1-1
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <[email protected]>
Changed-By: Sandro Tosi <[email protected]>
Closes: 1020842
Changes:
 locust (2.12.1-1) unstable; urgency=medium
 .
   * New upstream release; Closes: #1020842
   * debian/watch
     - track github tags rather than PyPI releases
   * debian/rules
     - feed the debian version to setuptools-scm
     - remove _version.py in clean target, as generated by setuptools-scm
     - setup the version file before building the documentation
     - exclude examples/test_data_management.py from pytest, network access
     - create the locust version file before build, so it's available for test
       and gets installed too
     - adjust how we run tests: disable fake http(s)_proxy, set PATH to use
       `debian/locust`, exclude TestMasterWorkerRunners
   * refresh patches
   * debian/control
     - tests b-d: bump geventhttpclient to >= 2.0.8
     - doc b-d: add typing-extensions, add flask-cors, add sphinx-prompt
     - bump b-d on pyquery to >= 1.4.3
     - add retry, roundrobing and typing-extensions to b-d, needed by tests
     - bump Standard-Versions to 4.6.2.0 (no changes needed)
     - build using pybuild-plugin-pyproject
   * stop building the -doc package
   * debian/locust
     - add a straightforward binary needed to pretend it's `/usr/bin/locust`
       during tests
   * debian/copyright
     - extend packaging copyright years
Checksums-Sha1:
 ab99a81c349cb58856848b042e5f99b1a274ea7e 2509 locust_2.12.1-1.dsc
 80b05d90c15c1219b15c65862b50a072ef9f5210 1321580 locust_2.12.1.orig.tar.xz
 f6cd147358129b62aa0a3711690cfec37e45eb38 333868 locust_2.12.1-1.debian.tar.xz
 8e9ed3f5827fc846d1a432cfcd1ab986461fb95b 9252 locust_2.12.1-1_source.buildinfo
Checksums-Sha256:
 2b0044485ceb4f0835c31880689880dfe199596e89adabeae8b750b8b3b6a7aa 2509 
locust_2.12.1-1.dsc
 20d6dc168d92a6dd298c3492366a52cbd2b20e33e588a56228d28003f4de4b78 1321580 
locust_2.12.1.orig.tar.xz
 23f5c9151b3bc902925600a6e13cb26a690d5e85f3739abc2ced2f92f44bf76f 333868 
locust_2.12.1-1.debian.tar.xz
 63c0ce9479ba943f5bebf167af6bf7cf8414ed6248781fcff98a18a953912f36 9252 
locust_2.12.1-1_source.buildinfo
Files:
 3eb3b70985f0eea8d200f5cda4a13c9e 2509 python optional locust_2.12.1-1.dsc
 a1ab004ad9f03674eac6d57053f0b0db 1321580 python optional 
locust_2.12.1.orig.tar.xz
 d7011ec4f3350ba8fbaea0960ca05d67 333868 python optional 
locust_2.12.1-1.debian.tar.xz
 659b5998b8f270a1690f753557e94953 9252 python optional 
locust_2.12.1-1_source.buildinfo

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

iQIzBAEBCAAdFiEEufrTGSrz5KUwnZ05h588mTgBqU8FAmOmlZQACgkQh588mTgB
qU+klRAA3cww9IFiYkwmZXu/z/nhUZVHHc0q43TnjE4pNse+XNK86X5LufjQvyDj
HkSspuZNOgQtT8t3N1KhtZOYCsL+VsXzkB+2gCI+41zBpSTqjqU3hNsaKeH/8zJ5
9MyRzFzbwAU8c4pKLRui7Lb9kTLiaGMXURmL8VDVYZ7AJbZUlHoRisk4ESTZR558
nWFPLPrnCVIZzUsIytDJ/Ampwd2u1/CBvxtr/9NW8hWeY78hIAUJ1e3z6L5srOBd
mbV8/2mmzt6ZsR/P35W4/yVKbhGFrTbLapUZTkIkYzVpc6xjIfn9AybQLs1shLii
mT/pNHEuzM0WJXTG6eW8pL9ZgyIhZSFKQuVQZmYCvoF0sjBQcAbQr8cSJ3CPGq7U
2z8uwhwahj349F+w7b5S60d/1we4BMO9q4PAUu+99YMZ4XFLz4wjTL0djZV6VjOH
5ila6GCPYKyRN2DK+ssFcqsPRF2walM1/VCUqv9sIPOG6iEfnXWdeQ475AUQIXRH
w3kV2bg6BMKDiHXOBh76CIxN6XEcFRxNqmI0Rv7SSqozvbql1Wu9wKD09sTVk00l
f0RQjaZBwBCuP2HH65t1SdferX8fTJxA0JLwt6nKiVD9TmcEzQYl84MIKsGl0xtQ
Lu7q7hnNOtn81X4VUPcRGbrKwfVsoAV5np6ipFOI0vS7l419w9o=
=6r4C
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to