ipython Problem (suspected python select or vt100)

Eckard Brauer hangglider at gmx.de
Wed Mar 29 09:25:35 UTC 2023


I'm on MacOSX 10.5 Tiger, PPC architecture.

Ipython (3.11.2 currently but already had the same with earlier
verions of atleast 3.10 and 3.11) installs fine. But trying to use it
(without any further args, just as command shell) bombs (see below).
Piping into or redirecting input works fine.

Putting  a debug print  statement to the bottom function, it shows up
that it's on the 3rd call of selectors.KqueueSelector.register(),

Is that either a known problem or could any kind person provide some
helpful hints to solve that?

Thanks in advance,
Eckard


----- snip! -----
...
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/site-packages/prompt_toolkit/application/
application.py", line 737, in _run_async
     with self.input.raw_mode(), self.input.attach(
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/contextlib.py", line 137, in __enter__
     return next(self.gen)
            ^^^^^^^^^^^^^^
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/site-packages/prompt_toolkit/input/vt100.py", line 176,
in _attached_input
     loop.add_reader(fd, callback_wrapper)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/asyncio/selector_events.py", line 340, in add_reader
     self._add_reader(fd, callback, *args)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/asyncio/selector_events.py", line 267, in _add_reader
     self._selector.register(fd, selectors.EVENT_READ,
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/
lib/python3.11/selectors.py", line 522, in register
     self._selector.control([kev], 0, 0)
OSError: [Errno 45] Operation not supported

If you suspect this is an IPython 8.8.0 bug, please report it at:
     https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev at python.org

You can print a more detailed traceback right now with "%tb", or use
"%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
     %config Application.verbose_crash=True
----- snipsnap! -----
*** DEBUG: KqueueSelector.register(self, fileobj, events, data) =
(<selectors.KqueueSelector object at 0x2d8c2f0>, 0, 1, (<Handle
_attached_input.<locals>.callback_wrapper() at /opt/local/Library/
Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/
prompt_toolkit/input/vt100.py:165>, None))
----- snap! -----



More information about the macports-users mailing list