Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.rc > #342913
| From | Jochen Sprickerhof <jochen@sprickerhof.de> |
|---|---|
| Newsgroups | linux.debian.bugs.rc |
| Subject | Bug#1037165: vit: Python TypeError: 'str' object does not support item assignment |
| Date | 2023-06-08 08:40 +0200 |
| Message-ID | <GEhtn-es4E-3@gated-at.bofh.it> (permalink) |
| References | <GDK4p-e6Wt-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Control: severity -1 normal
Hi Matthew,
On Tue, 6 Jun 2023 19:43:34 +0100 Matthew Lemon <y+debian@yulqen.org> wrote:
> Traceback (most recent call last):
> File "/usr/bin/vit", line 33, in <module>
> sys.exit(load_entry_point('vit==2.2.0', 'console_scripts', 'vit')())
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/vit/command_line.py", line 5, in main
> Application(options, filters)
> File "/usr/lib/python3/dist-packages/vit/application.py", line 77, in __init__
> self.refresh(False)
> File "/usr/lib/python3/dist-packages/vit/application.py", line 920, in refresh
> self.bootstrap(load_early_config)
> File "/usr/lib/python3/dist-packages/vit/application.py", line 110, in bootstrap
> self.load_contexts()
> File "/usr/lib/python3/dist-packages/vit/application.py", line 104, in load_contexts
> self.contexts = self.task_config.get_contexts()
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/vit/config_parser.py", line 333, in get_contexts
> subtree = self.subtree('context.')
> ^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/vit/config_parser.py", line 292, in subtree
> tree_location[part] = {} if len(parts) else value
> ~~~~~~~~~~~~~^^^^^^
> TypeError: 'str' object does not support item assignment
I can't reproduce this in a fresh system (downgrading severity accordingly). Do you have any taskwarrior or vit config files in your home? Judging from the trace above I guess it is a custom taskwarrior config. Can you try without that?
Cheers Jochen
Back to linux.debian.bugs.rc | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#1037165: vit: Python TypeError: 'str' object does not support item assignment Jochen Sprickerhof <jochen@sprickerhof.de> - 2023-06-08 08:40 +0200 Processed: Re: vit: Python TypeError: 'str' object does not support item assignment "Debian Bug Tracking System" <owner@bugs.debian.org> - 2023-06-08 08:40 +0200
csiph-web