jorgenschaefer/elpy

TypeError: object int can't be used in 'await' expression

Opened this issue · 0 comments

Hi there,

I would like to use emacs-jupyter on Windows (and on Macos). I have installed and configured DOOM-Emacs (I prefer it to emacs).

This is the elpy-config report:

Elpy Configuration

Emacs.............: 28.2
Elpy..............: 1.35.0
Virtualenv........: None
Interactive Python: jupyter ... (c:/Users/Albert/AppData/Roaming/Python/Python311/Scripts/jupyter.exe)
RPC virtualenv....: rpc-venv (c:/Users/Albert/.emacs.d/.local/cache/elpy/rpc-venv)
Python...........: c:/Windows/py.exe 3.11.0 (c:/Windows/py.exe)
Jedi.............: 0.18.2
Autopep8.........: 2.0.1
Yapf.............: 0.32.0
Black............: 23.1.0
Syntax checker....: flake8.exe (c:/Users/Albert/AppData/Roaming/Python/Python311/Scripts/flake8.exe)

Warnings

You have not activated a virtual env. It is not mandatory but often a good idea
to work inside a virtual env. You can use M-x pyvenv-activate or M-x pyvenv-workon to activate one.

Options

`Raised' text indicates buttons; type RET or click mouse-1 on a button to invoke
its action. Invoke [+] to expand a group, and [-] to collapse an expanded group.
Invoke the [Group], [Face], and [Option] buttons below to edit that item in
another window.

When I try to send the buffer to the repl (jupyter) with C-c C-c it gives me this error:

Process Python finished
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Jupyter console 6.4.4

Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.9.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: Task exception was never retrieved
future: <Task finished name='Task-7' coro=<ZMQTerminalInteractiveShell.handle_external_iopub() done, defined at C:\Users\Albert\AppData\Roaming\Python\Python311\site-packages\jupyter_console\ptshell.py:839> exception=TypeError("object int can't be used in 'await' expression")>
Traceback (most recent call last):
File "C:\Users\Albert\AppData\Roaming\Python\Python311\site-packages\jupyter_console\ptshell.py", line 842, in handle_external_iopub
poll_result = await self.client.iopub_channel.socket.poll(500)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object int can't be used in 'await' expression

I've searched the net but haven't found a solution.

(python 3.11.0, jupyter_client 8.0.2, notebook 6.5.2, emacs 28.2)

Thank you