Skip to content

Menu error #227

@azeaglewise

Description

@azeaglewise

dan@EWT-Field-01-Pi4:~ $ consolepi-menu
Launching ConsolePi Serial Console Menu
Traceback (most recent call last):
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/halo/halo.py", line 410, in _render_frame
self._write(output)
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/halo/halo.py", line 305, in _write
self._stream.write(s)
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/colorama/ansitowin32.py", line 47, in write
self.__convertor.write(text)
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/colorama/ansitowin32.py", line 179, in write
self.wrapped.write(text)
UnicodeEncodeError: 'latin-1' codec can't encode character '\u280b' in position 10: ordinal not in range(256)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/etc/ConsolePi/src/consolepi-menu.py", line 1439, in
cpi_menu = ConsolePiMenu()
^^^^^^^^^^^^^^^
File "/etc/ConsolePi/src/consolepi-menu.py", line 54, in init
self.cpi = ConsolePi(bypass_remotes=bypass_remotes, bypass_outlets=bypass_outlets)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/etc/ConsolePi/src/pypkg/consolepi/consolepi.py", line 24, in init
self.remotes = Remotes(self.local, self.cpiexec, bypass_cloud=bypass_cloud)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/etc/ConsolePi/src/pypkg/consolepi/remotes.py", line 54, in init
self.data = asyncio.run(
^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/etc/ConsolePi/src/pypkg/consolepi/remotes.py", line 153, in get_remote
spin.start(
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/halo/halo.py", line 498, in start
self._render_frame()
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/halo/halo.py", line 412, in _render_frame
self._write(encode_utf_8_text(output))
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/halo/halo.py", line 305, in _write
self._stream.write(s)
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/colorama/ansitowin32.py", line 47, in write
self.__convertor.write(text)
File "/etc/ConsolePi/venv/lib/python3.11/site-packages/colorama/ansitowin32.py", line 179, in write
self.wrapped.write(text)
TypeError: write() argument must be str, not bytes

It appears an error occurred in the primary menu

The shell based menu acts as a backup menu in the unlikely event
something breaks with the fully functional python based menu.

The shell menu supports connections to locally attached serial adapters only.

Please report the error above @ https://github.com/Pack3tL0ss/ConsolePi

Enter y/yes to launch the backup shell menu, or enter to exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions