Issue #1216 new

Sessions Python2/3 compability "unsupported pickle protocol: 3"

created an issue


  • Starting a cherrypy server with python 3 and create a new session
  • Stop the server
  • Start the server using python 2

It fails also the other way around; when starting a session using python 2 first and switching to python3; But then a ValueError is raised.


  File "path/to/cherrypy/lib/", line 296, in get
    if not self.loaded: self.load()
  File "path/to/cherrypy/lib/", line 234, in load
    data = self._load()
  File "path/to/cherrypy/lib/", line 441, in _load
    return pickle.load(f)
ValueError: unsupported pickle protocol: 3

Expected: cherrypy should throw away the old session or raise a special exception

Comments (3)

  1. Log in to comment