cchdo / libcchdo

Other
0 stars 1 forks source link

Hydro datadir fetch cannot find 35TH20000724 cruise by expocode #85

Closed DocOtak closed 10 years ago

DocOtak commented 10 years ago

Original report by Roxanne Lee (Bitbucket: hellorox, GitHub: hellorox).


hydro datadir fetch cannot find cruise by expocode (http://cchdo.ucsd.edu/cruise/35TH20000724)


(hydro_a)ghdc:uow r6lee$ hydro datadir fetch maps "Maps created" 35TH20000724 1559:09,654 W datadir/processing.py:339 mkdir_uow None of the ids given refer to Queue files. 1559:09,654 I datadir/processing.py:343 mkdir_uow Using id as ExpoCode 1559:09,777 C scripts.py:2730 main Traceback (most recent call last): File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/scripts.py", line 2728, in main hydro_parser.exit(args.main(args)) File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/scripts.py", line 1416, in datadir_fetch dl_originals=(not args.skip_dl_original)) File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/datadir/processing.py", line 386, in mkdir_uow os.path.join(dirpath, UOWDirName.online), expocode) File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/datadir/store.py", line 779, in fetch_online cruise = self._cruise(cid) File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/datadir/store.py", line 770, in _cruise raise ValueError(u'Unable to find cruise for {0}'.format(cid)) ValueError: Unable to find cruise for 35TH20000724

DocOtak commented 10 years ago

Original comment by Roxanne Lee (Bitbucket: hellorox, GitHub: hellorox).


Or by the cruise ID:

(hydro_a)ghdc:uow r6lee$ hydro datadir fetch maps "Maps created" 177 1607:25,200 D datadir/store.py:726 _queuefile_info {u'attr': u'address', u'obj_id': 54, u'p_c': u'CCHDO importer', u'value': u'Japan Marine Science and Technology Center (JAMSTEC)\n2-15 Natsushima, Yokosuka,\nKanagawa 237-0061\n041 \nJAPAN\nEMAIL: swata@jamstec.go.jp', u'ts_c': u'2014-07-07 12:53:08.083256', u'state': u'acc', u'id': 177} 1607:25,201 C scripts.py:2730 main Traceback (most recent call last): File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/scripts.py", line 2728, in main hydro_parser.exit(args.main(args)) File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/scripts.py", line 1416, in datadir_fetch dl_originals=(not args.skip_dl_original)) File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/datadir/processing.py", line 337, in mkdir_uow qfis = self.dstore.as_received_infos(*ids) File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/datadir/store.py", line 159, in as_received_infos qfis.append(self._queuefile_info(qfile)) File "/usr/local/cchdo/hydro-vm/hydro_a/lib/python2.7/site-packages/libcchdo/datadir/store.py", line 728, in _queuefile_info 'filename': asr['value']['filename'], TypeError: string indices must be integers

DocOtak commented 10 years ago

Original comment by myshen (Bitbucket: myshen, GitHub: myshen).


Are you using the right dstore?

DocOtak commented 10 years ago

Original comment by Roxanne Lee (Bitbucket: hellorox, GitHub: hellorox).


whoops, thanks!!

DocOtak commented 10 years ago

Original comment by abarna (Bitbucket: abarna, GitHub: abarna).


So resolved?

DocOtak commented 10 years ago

Original comment by myshen (Bitbucket: myshen, GitHub: myshen).


Use dstore = not dstore = pycchdo