系统Windows 11
D:\NoneBot2>nb init
[?] Project Name: homura
[?] Where to store the plugin? 2) In a "src" folder
[?] Load NoneBot Builtin Plugin? Yes
[?] Which adapter(s) would you like to use? (<up>, <down> to move, <space> to select, <a> to toggle, <i> to invert)
Traceback (most recent call last):
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\cache.py", line 34, in get
return self._data[key]
KeyError: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\conda_data\envs\Python3.8.15\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\conda_data\envs\Python3.8.15\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\conda_data\envs\Python3.8.15\Scripts\nb.exe\__main__.py", line 7, in <module>
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\nb_cli\__init__.py", line 30, in init
create_project()
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\nb_cli\handlers.py", line 105, in create_project
answers2 = prompt(question2, qmark="[?]", style=list_style)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\PyInquirer\prompt.py", line 69, in prompt
answer = run_application(
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\shortcuts.py", line 625, in run_application
result = cli.run()
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\interface.py", line 413, in run
self._redraw()
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\interface.py", line 358, in _redraw
self.renderer.render(self, self.layout, is_done=self.is_done)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\renderer.py", line 424, in render
layout.write_to_screen(cli, screen, mouse_handlers, WritePosition(
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\containers.py", line 142, in write_to_screen
sizes = self._divide_heigths(cli, write_position)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\containers.py", line 177, in _divide_heigths
dimensions = [get_dimension_for_child(c, index) for index, c in enumerate(self.children)]
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\containers.py", line 177, in <listcomp>
dimensions = [get_dimension_for_child(c, index) for index, c in enumerate(self.children)]
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\containers.py", line 175, in get_dimension_for_child
return c.preferred_height(cli, write_position.width, write_position.extended_height)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\containers.py", line 1652, in preferred_height
return self.content.preferred_height(cli, width, max_available_height)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\containers.py", line 999, in preferred_height
preferred=self.content.preferred_height(
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\controls.py", line 254, in preferred_height
content = self.create_content(cli, width, None)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\controls.py", line 259, in create_content
tokens_with_mouse_handlers = self._get_tokens_cached(cli)
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\controls.py", line 238, in _get_tokens_cached
return self._token_cache.get(
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\cache.py", line 37, in get
value = getter_func()
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\prompt_toolkit\layout\controls.py", line 239, in <lambda>
cli.render_counter, lambda: self.get_tokens(cli))
File "D:\conda_data\envs\Python3.8.15\lib\site-packages\PyInquirer\prompts\checkbox.py", line 99, in _get_choice_tokens
tokens.pop() # Remove last newline.
IndexError: pop from empty list
question