millejoh / emacs-ipython-notebook

Jupyter notebook client in Emacs
http://millejoh.github.io/emacs-ipython-notebook/
GNU General Public License v3.0
1.47k stars 123 forks source link

[error] request--callback: Wrong type argument: integer-or-marker-p, no-conversion #852

Closed sam-s closed 1 year ago

sam-s commented 1 year ago

When I do M-x ein:notebooklist-login RET http://127.0.0.1:8888, I get

[error] request--callback: Wrong type argument: integer-or-marker-p, no-conversion
ein: [error] Login to http://127.0.0.1:8888 failed, error-thrown (wrong-type-argument integer-or-marker-p no-conversion), raw-header HTTP/1.1 200 OK
Server: TornadoServer/6.1
Content-Type: text/html; charset=UTF-8
Date: Sun, 31 Jul 2022 16:24:55 GMT
X-Content-Type-Options: nosniff
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Etag: "90c8ea23149617bfa328ccea65a535419a39fea8"
Content-Length: 18168

System info:

("EIN system info"
 :emacs-version
 "GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
 of 2022-07-31"
 :window-system x
 :emacs-variant nil
 :build "--with-imagemagick --with-mailutils --with-native-compilation"
 :os
 (:uname
  "Linux darter 5.18.10-76051810-generic #202207071639~1659108431~22.04~c9172fb SMP PREEMPT_DYNAMIC Fri J x86_64 x86_64 x86_64 GNU/Linux
"
  :lsb-release
  "No LSB modules are available.
Distributor ID: Pop
Description:    Pop!_OS 22.04 LTS
Release:    22.04
Codename:   jammy
")
 :jupyter
 "Selected Jupyter core packages...
IPython          : 8.4.0
ipykernel        : 6.15.1
ipywidgets       : 7.7.1
jupyter_client   : 7.3.4
jupyter_core     : 4.11.1
jupyter_server   : not installed
jupyterlab       : not installed
nbclient         : 0.6.6
nbconvert        : 6.5.0
nbformat         : 5.4.0
notebook         : 6.4.12
qtconsole        : 5.3.1
traitlets        : 5.3.0
"
 :image-types
 (svg imagemagick png gif tiff jpeg xpm xbm pbm)
 :image-types-available
 (svg imagemagick png gif tiff jpeg xpm xbm pbm)
 :request-backend curl
 :ein
 (:version "20220618.1101"
           :source-dir "/home/sds/.config/emacs/elpa/ein-20220618.1101/")
 :lib
 ((:name "websocket"
         :path "~/.config/emacs/elpa/websocket-20210110.17/websocket.elc"
         :featurep t
         :version-var websocket-version
         :version "1.12")
  (:name "anaphora"
         :path "~/.config/emacs/elpa/anaphora-20180618.2200/anaphora.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "request"
         :path "~/.config/emacs/elpa/request-20220614.1604/request.elc"
         :featurep t
         :version-var request-version
         :version "0.3.3")
  (:name "deferred"
         :path "~/.config/emacs/elpa/deferred-20170901.1330/deferred.elc"
         :featurep t
         :version-var deferred:version
         :version "0.5.0")
  (:name "polymode"
         :path "~/.config/emacs/elpa/polymode-20220322.824/polymode.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "dash"
         :path "~/.config/emacs/elpa/dash-20220608.1931/dash.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "with-editor"
         :path "~/.config/emacs/elpa/with-editor-20220608.1017/with-editor.elc"
         :featurep nil
         :version-var nil
         :version nil)))

Logs:

ein:log-all:

12:16:26:724: [warn] ein:jupyter-default-kernel: (json-end-of-file) @#<buffer *scratch*>
12:16:29:435: [error] Login to http://127.0.0.1:8888 failed, error-thrown (wrong-type-argument integer-or-marker-p no-conversion), raw-header HTTP/1.1 200 OK
Server: TornadoServer/6.1
Content-Type: text/html; charset=UTF-8
Date: Sun, 31 Jul 2022 16:16:29 GMT
X-Content-Type-Options: nosniff
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Etag: "90c8ea23149617bfa328ccea65a535419a39fea8"
Content-Length: 18168
 @#<buffer *scratch*>
12:21:51:966: [error] Login to http://127.0.0.1:8888 failed, error-thrown (wrong-type-argument integer-or-marker-p no-conversion), raw-header HTTP/1.1 200 OK
Server: TornadoServer/6.1
Content-Type: text/html; charset=UTF-8
Date: Sun, 31 Jul 2022 16:21:51 GMT
X-Content-Type-Options: nosniff
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Etag: "90c8ea23149617bfa328ccea65a535419a39fea8"
Content-Length: 18168
 @#<buffer --->
12:24:55:063: [error] Login to http://127.0.0.1:8888 failed, error-thrown (wrong-type-argument integer-or-marker-p no-conversion), raw-header HTTP/1.1 200 OK
Server: TornadoServer/6.1
Content-Type: text/html; charset=UTF-8
Date: Sun, 31 Jul 2022 16:24:55 GMT
X-Content-Type-Options: nosniff
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Etag: "90c8ea23149617bfa328ccea65a535419a39fea8"
Content-Length: 18168
 @#<buffer --->
12:25:44:328: [warn] ein:dev-packages: Symbol’s function definition is void: define-package @#<buffer  *temp*>
dickmao commented 1 year ago

We don't support unreleased versions of emacs. Your hyper-recent build on 2022-07-31 is prey to the byteop bug (fixed in commercial-emacs/commercial-emacs@9d8a6c8).