#3741 closed defect (fixed)

Can't go back from Python 3 to Python 2 on a node

Reported by: itamarst Owned by: itamarst
Priority: normal Milestone: Support Python 3
Component: unknown Version: n/a
Keywords: Cc:
Launchpad Bug:

Description

        Traceback (most recent call last):
          File "/home/itamarst/Devel/tahoe-lafs/venv27/lib64/python2.7/site-packages/twisted/application/app.py", line 399, in startReactor
            self.config, oldstdout, oldstderr, self.profiler, reactor)
          File "/home/itamarst/Devel/tahoe-lafs/venv27/lib64/python2.7/site-packages/twisted/application/app.py", line 312, in runReactorWithLogging
            reactor.run()
          File "/home/itamarst/Devel/tahoe-lafs/venv27/lib64/python2.7/site-packages/twisted/internet/base.py", line 1283, in run
            self.mainLoop()
          File "/home/itamarst/Devel/tahoe-lafs/venv27/lib64/python2.7/site-packages/twisted/internet/base.py", line 1292, in mainLoop
            self.runUntilCurrent()
        --- <exception caught here> ---
          File "/home/itamarst/Devel/tahoe-lafs/venv27/lib64/python2.7/site-packages/twisted/internet/base.py", line 913, in runUntilCurrent
            call.func(*call.args, **call.kw)
          File "/home/itamarst/Devel/tahoe-lafs/src/allmydata/storage/crawler.py", line 281, in start_slice
            self.start_current_prefix(start_slice)
          File "/home/itamarst/Devel/tahoe-lafs/src/allmydata/storage/crawler.py", line 362, in start_current_prefix
            self.finished_cycle(cycle)
          File "/home/itamarst/Devel/tahoe-lafs/src/allmydata/storage/expirer.py", line 316, in finished_cycle
            history = pickle.load(f)
          File "/usr/lib64/python2.7/pickle.py", line 1384, in load
            return Unpickler(file).load()
          File "/usr/lib64/python2.7/pickle.py", line 864, in load
            dispatch[key](self)
          File "/usr/lib64/python2.7/pickle.py", line 892, in load_proto
            raise ValueError, "unsupported pickle protocol: %d" % proto
        exceptions.ValueError: unsupported pickle protocol: 3

Change History (2)

comment:1 Changed at 2021-06-16T14:46:12Z by itamarst

Probably should store pickles in older format for now.

comment:2 Changed at 2021-06-16T17:40:19Z by GitHub <noreply@…>

  • Resolution set to fixed
  • Status changed from new to closed

In de76c1d/trunk:

Merge pull request #1087 from tahoe-lafs/3741.pickle-versioning-python-3

Limit Pickle protocol to version supported by Python 2

Fixes ticket:3741

Note: See TracTickets for help on using tickets.