You are not logged in.

#1 2023-02-14 04:23:27

pyman
Member
Registered: 2023-02-14
Posts: 2

xonsh startup warning message

Upon installing the xonsh package and starting it either from the bash prompt or thru chsh, shows the following warning message:

/usr/lib/python3.10/site-packages/prompt_toolkit/eventloop/utils.py:118: DeprecationWarning: There is no current event loop
  return asyncio.get_event_loop_policy().get_event_loop()

Why is this?

As a side note, Arch as of now doesn't seem to supply Python 3.11.

Offline

#2 2023-02-14 04:33:01

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: xonsh startup warning message

pyman wrote:

As a side note, Arch as of now doesn't seem to supply Python 3.11.

https://aur.archlinux.org/packages/python311

Offline

#3 2023-02-14 05:59:06

pyman
Member
Registered: 2023-02-14
Posts: 2

Re: xonsh startup warning message

skunktrader wrote:
pyman wrote:

As a side note, Arch as of now doesn't seem to supply Python 3.11.

https://aur.archlinux.org/packages/python311

I meant the official "python" package providing the /usr/bin/python executable. For the ecosystem of different python versions there is the Virtual Envs or Anaconda or Poetry or Pyenv as a normal user which programmers would prefer. Therefore there's little point in installing the arch version separately in root.

The https://aur.archlinux.org/packages/python311 package does not replace the /usr/bin/python symlinking to /usr/binpython3.10 executable. It simply installs an additional executable /usr/bin/python3.11.  Xonsh seems to refer to the system /usr/bin/python executable which would still give the same warning as it's specifically referring to the python 3.10 based script of /usr/lib/python3.10/site-packages/prompt_toolkit/eventloop/utils.py. It did when I tried form an Anaconda environment of Python 3.11 and Arch-supplied package of Xonsh.

Last edited by pyman (2023-02-14 06:07:27)

Offline

Board footer

Powered by FluxBB