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

Closed
opened 2021-06-16 14:45:57 +00:00 by itamarst · 2 comments
itamarst commented 2021-06-16 14:45:57 +00:00
Owner
        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
            dispatchkey(self)
          File "/usr/lib64/python2.7/pickle.py", line 892, in load_proto
            raise [ValueError](wiki/ValueError), "unsupported pickle protocol: %d" % proto
        exceptions.ValueError: unsupported pickle protocol: 3
``` 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 dispatchkey(self) File "/usr/lib64/python2.7/pickle.py", line 892, in load_proto raise [ValueError](wiki/ValueError), "unsupported pickle protocol: %d" % proto exceptions.ValueError: unsupported pickle protocol: 3 ```
tahoe-lafs added the
unknown
normal
defect
n/a
labels 2021-06-16 14:45:57 +00:00
tahoe-lafs added this to the Support Python 3 milestone 2021-06-16 14:45:57 +00:00
itamarst commented 2021-06-16 14:46:12 +00:00
Author
Owner

Probably should store pickles in older format for now.

Probably should store pickles in older format for now.
GitHub <noreply@github.com> commented 2021-06-16 17:40:19 +00:00
Author
Owner

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
In [de76c1d/trunk](/tahoe-lafs/trac-2024-07-25/commit/de76c1d8ef877c260ea25dd6405406213946d019): ``` Merge pull request #1087 from tahoe-lafs/3741.pickle-versioning-python-3 Limit Pickle protocol to version supported by Python 2 Fixes ticket:3741 ```
tahoe-lafs added the
fixed
label 2021-06-16 17:40:19 +00:00
GitHub <noreply@github.com> closed this issue 2021-06-16 17:40:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#3741
No description provided.