Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 在MacOS Big Sur上恢复数据库备份_Python 3.x_Macos_Rethinkdb_Rethinkdb Python - Fatal编程技术网

Python 3.x 在MacOS Big Sur上恢复数据库备份

Python 3.x 在MacOS Big Sur上恢复数据库备份,python-3.x,macos,rethinkdb,rethinkdb-python,Python 3.x,Macos,Rethinkdb,Rethinkdb Python,升级到MacOS 11(“Big-Sur”)后,我的本地反思数据库消失了。但没关系,因为我有后备人员。但我不能,为了我的生命,恢复它 referencedb restore[file]和referencedb import[file]不起作用,但在谷歌搜索了一番后,我发现我必须安装python工具(pip3 install referencedb)。我这样做了,但现在我得到了这个错误: % rethinkdb restore rethinkdb_dump_2020-11-21T20:35:20.

升级到MacOS 11(“Big-Sur”)后,我的本地反思数据库消失了。但没关系,因为我有后备人员。但我不能,为了我的生命,恢复它

referencedb restore[file]
referencedb import[file]
不起作用,但在谷歌搜索了一番后,我发现我必须安装python工具(
pip3 install referencedb
)。我这样做了,但现在我得到了这个错误:

% 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
%referencedb restore referencedb_dump_2020-11-21T20:35:20.tar.gz>bug.log
回溯(最近一次呼叫最后一次):
文件“/usr/local/bin/db restore”,第10行,在
sys.exit(main())
文件“/Users/$USER/Library/Python/3.8/lib/Python/site packages/referencedb/_restore.py”,第339行,在main中
不还原(选项)
do_restore中的文件“/Users/$USER/Library/Python/3.8/lib/Python/site packages/referencedb/_restore.py”,第315行
_import.import_表(选项、源)
文件“/Users/$USER/Library/Python/3.8/lib/Python/site packages/referencedb/_import.py”,第1359行,在import_表格中
进度条开始()
文件“/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.8/multiprocessing/process.py”,第121行,开始
self.\u popen=self.\u popen(self)
文件“/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.8/multiprocessing/context.py”,第224行,在
返回_default_context.get_context().Process._Popen(Process_obj)
文件“/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.8/multiprocessing/context.py”,第283行,在
返回Popen(过程对象)
文件“/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.8/multiprocessing/popen_spawn_posix.py”,第32行,在__
super().\uuuu init\uuuj(进程对象)
文件“/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.8/multiprocessing/popen_fork.py”,第19行,在__
自启动(过程obj)
文件“/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.8/multiprocessing/popen_spawn_posix.py”,第47行,在发布中
减少.转储(处理对象,fp)
文件“/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.8/multiprocessing/reduce.py”,第60行,在转储文件中
ForkingPickler(文件、协议).dump(obj)
TypeError:无法pickle“\u线程.\u本地”对象
我尝试卸载RequiredDB和Python工具,然后重新安装它们。同样的结果