python-3.x - 在 MacOS Big Sur 上恢复 RethinkDB 备份
问题描述
升级到 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 工具并重新安装它们。同样的结果。
解决方案
推荐阅读
- r - 计算数据框 R 中多列的 95% 可信区间
- intellij-idea - IntelliJ markdown:如何在浏览器中打开 localhost 链接?
- mysql - 带连接的慢查询 - 作为单个查询快速工作
- mysql - 如何连接到托管在 pythonanywhere 上的 mysql 数据库?
- javascript - 用一些 JS 定位 css 类
- clojure - 如何在 compojure-api 中为 Swagger 实现中间件,以将模式从 kabab-case 转换为 camelCase
- gigya - 我正在尝试从 Postman 调用 accounts.notifylogin (Gigya API) 但收到 403003 错误
- python - 带有硒的python应用程序因MaxRetryError而失败
- amazon-web-services - 在 scala 中找不到键的配置设置
- html - Angular 8.3:如何在跳转页面而不是添加虚拟>时防止标签默认锚定?