jupyter notebook fails: import encodestring from base64 error

  jupyter, python

I suspect this is related to no longer using python 2 (hurray!).

However, I’m not able to open, or event start jupyter notebook without it generating the error:

ImportError: cannot import name 'encodestring' from 'base64' (/Users/me/.pyenv/versions/3.9.0/lib/python3.9/base64.py)

I’m using pipenv shell. I was able to install a few of the missing packages before getting stuck here. Now, I cannot even get the Notebook to fire-up. In which case perhaps I could fix/remove whatever code that is assuming text is a string instead of bytes…

This is not a package that normally needs to be installed directly… so I’m at a loss.

Thank you for any guidance.

– E

Source: Python Questions

LEAVE A COMMENT