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 122 forks source link

cannot open notebook with C-c C-o: Keyword argument :encoding not one of ... #815

Closed zacchiro closed 3 years ago

zacchiro commented 3 years ago

Heya, I'm trying to open .ipynb files with EIN using C-c C-o after visiting them, but it fails with the following error in the minibuffer:

Keyword argument :encoding not one of (:type :params :data :files :parser :headers :success :error :complete :timeout :status-code :sync :response :unix-socket)

I'm using the last version of EIN from melpa, i.e., 20211012.347.

I notice that even if loading fails, the jupyter notebook has been started in the background and is running. I can for instance access it via the browser, but not from within Emacs (at least not with C-c C-o).

dickmao commented 3 years ago

That is because Melpa can suck a chair. I am persona non grata there for having loudly condemned their versioning snafu.

It seems your request.el is out of date. The required version (as stipulated in ein-pkg.el) is 0.3.3, but Melpa makes it such that it's impossible to automatically enforce an upgrade. You have to manually do it.

If that's not the problem, I will eat a crow, but my indignation of Melpa remains inviolate.

zacchiro commented 3 years ago

This not only was super useful, but also made me LOL a lot. THANKS! That was indeed the problem.

And, to unleash your wrath even further, I had the same problem with polymode being too out-of-date to make EIN happy. I've upgraded that too, and now I'm happy in EIN-land.

Cheers!