问题描述
升级到 MacOS 11(“Big Sur”)后,我的本地 Rethink 数据库消失了。不过没关系,因为我有备份。但我这辈子都无法恢复它。
rethinkdb restore [file]
和 rethinkdb import [file]
不起作用,但经过一些谷歌搜索后我发现我必须安装 python 工具 (pip3 install rethinkdb
)。我这样做了,但现在出现此错误:
% rethinkdb restore rethinkdb_dump_2020-11-21T20:35:20.tar.gz > bug.log
Traceback (most recent call last):
File "/usr/local/bin/rethinkdb-restore",line 10,in <module>
sys.exit(main())
File "/Users/$USER/Library/Python/3.8/lib/python/site-packages/rethinkdb/_restore.py",line 339,in main
do_restore(options)
File "/Users/$USER/Library/Python/3.8/lib/python/site-packages/rethinkdb/_restore.py",line 315,in do_restore
_import.import_tables(options,sources)
File "/Users/$USER/Library/Python/3.8/lib/python/site-packages/rethinkdb/_import.py",line 1359,in import_tables
progress_bar.start()
File "/Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py",line 121,in start
self._popen = self._Popen(self)
File "/Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/lib/python3.8/multiprocessing/context.py",line 224,in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/lib/python3.8/multiprocessing/context.py",line 283,in _Popen
return Popen(process_obj)
File "/Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_spawn_posix.py",line 32,in __init__
super().__init__(process_obj)
File "/Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_fork.py",line 19,in __init__
self._launch(process_obj)
File "/Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_spawn_posix.py",line 47,in _launch
reduction.dump(process_obj,fp)
File "/Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/lib/python3.8/multiprocessing/reduction.py",line 60,in dump
ForkingPickler(file,protocol).dump(obj)
TypeError: cannot pickle '_thread._local' object
我尝试卸载 RethinkDB 和 Python 工具并重新安装它们。同样的结果。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)