我在尝试将 json 文件导入 Google 云计算实例上的 RethinkDB 时遇到错误,我不知道如何处理此错误。任何帮助表示赞赏。这是错误:
root@my-server-name:~# rethinkdb import -f users_0.json --table test.users
Traceback (most recent call last):
File "/usr/local/bin/rethinkdb-import", line 9, in <module>
load_entry_point('rethinkdb==2.3.0.post1', 'console_scripts', 'rethinkdb-import')()
File "/usr/local/lib/python2.7/dist-packages/rethinkdb/_import.py", line 929, in main
import_file(options)
File "/usr/local/lib/python2.7/dist-packages/rethinkdb/_import.py", line 904, in import_file
pkey = rdb_call_wrapper(conn_fn, "table check", table_check, db, table, options["create_args"], options["force"])
File "/usr/local/lib/python2.7/dist-packages/rethinkdb/_backup.py", line 78, in rdb_call_wrapper
return fn(progress, conn, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/rethinkdb/_import.py", line 885, in table_check
if not options["quiet"]:
NameError: global name 'options' is not defined
RethinkDB 运行在与 Docker 相同的 VM 上。我用这个命令实例化了它:
docker run -i -t -p 8080:8080 -p 28015:28015 -p 29015:29015 rethinkdb