google / active-qa

Apache License 2.0
346 stars 65 forks source link

ValueError from the run environment step #20

Open dwww2012 opened 5 years ago

dwww2012 commented 5 years ago

All prior steps went fine. Running the gRPC environment server errors out. Thoughts?

Running Python 2.7.14 :: Anaconda custom (x86_64) on CPU

Full stack trace:

python -m px.environments.bidaf_server \ --port=10000 \ --squad_data_dir=data/squad \ --bidaf_shared_file=data/bidaf/shared.json \ --bidaf_model_dir=data/bidaf/ I0514 14:08:35.730832 140735704388480 bidaf_server.py:195] Loading server... Traceback (most recent call last): File "/Users/david/anaconda/lib/python2.7/runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "/Users/david/anaconda/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/david/active-qa/px/environments/bidaf_server.py", line 227, in app.run(main) File "/Users/david/anaconda/lib/python2.7/site-packages/absl/app.py", line 300, in run _run_main(main, args) File "/Users/david/anaconda/lib/python2.7/site-packages/absl/app.py", line 251, in _run_main sys.exit(main(argv)) File "/Users/david/active-qa/px/environments/bidaf_server.py", line 207, in main debug_mode=FLAGS.debug_mode), server) File "/Users/david/active-qa/px/environments/bidaf_server.py", line 84, in init debug_mode=debug_mode) File "/Users/david/active-qa/px/environments/bidaf_server.py", line 107, in _InitializeEnvironment debug_mode=debug_mode) File "px/environments/bidaf.py", line 95, in init self.config, dataset, True, data_filter=data_filter) File "third_party/bi_att_flow/basic/read_data.py", line 199, in read_data shared = json.load(fh) File "/Users/david/anaconda/lib/python2.7/json/init.py", line 291, in load **kw) File "/Users/david/anaconda/lib/python2.7/json/init.py", line 339, in loads return _default_decoder.decode(s) File "/Users/david/anaconda/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Users/david/anaconda/lib/python2.7/json/decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Unterminated string starting at: line 1 column 1781596155 (char 1781596154)