Created
January 27, 2020 19:17
-
-
Save yvanzo/a4191722c5ed4741614db055929d34ef to your computer and use it in GitHub Desktop.
python -m sir -d reindex --entity-type=instrument
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PoolWorker-1 2020-01-27 19:13:35,829 DEBUG: Importing <class 'sir.schema.modelext.CustomInstrument'> (1, None) | |
PoolWorker-1 2020-01-27 19:13:35,833 DEBUG: Loading <generator object <genexpr> at 0x7fa44828cd20> instead of begin_date on <class 'mbdata.models.InstrumentAlias'> | |
PoolWorker-1 2020-01-27 19:13:35,833 DEBUG: Loading <generator object <genexpr> at 0x7fa44828cd70> instead of end_date on <class 'mbdata.models.InstrumentAlias'> | |
PoolWorker-1 2020-01-27 19:13:35,833 DEBUG: Loading only ['name', 'locale', 'sort_name', 'type', 'primary_for_locale', 'id', 'begin_date_year', 'begin_date_month', 'begin_date_day', 'end_date_year', 'end_date_month', 'end_date_day'] on <class 'mbdata.models.InstrumentAlias'> | |
PoolWorker-1 2020-01-27 19:13:35,833 DEBUG: Deferring begin_date on Mapper|InstrumentAlias|instrument_alias | |
PoolWorker-1 2020-01-27 19:13:35,833 ERROR: Failed to import instrument with id in bounds (1, None) | |
PoolWorker-1 2020-01-27 19:13:35,834 ERROR: _wildcard_token | |
Traceback (most recent call last): | |
File "sir/indexing.py", line 191, in _index_entity_process_wrapper | |
return index_entity(*args) | |
File "sir/indexing.py", line 218, in index_entity | |
_query_database(entity_name, condition, data_queue) | |
File "sir/indexing.py", line 256, in _query_database | |
query = search_entity.query.filter(condition).with_session(session) | |
File "sir/schema/searchentities.py", line 155, in query | |
self._query = self.build_entity_query() | |
File "sir/schema/searchentities.py", line 231, in build_entity_query | |
*required_columns) | |
File "sir/schema/searchentities.py", line 80, in defer_everything_but | |
load.defer(key) | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/strategy_options.py", line 1003, in defer | |
{"deferred": True, "instrument": True} | |
File "<string>", line 2, in set_column_strategy | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/base.py", line 45, in _generative | |
fn(self, *args[1:], **kw) | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/strategy_options.py", line 195, in set_column_strategy | |
path = self._generate_path(self.path, attr, "column") | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/strategy_options.py", line 135, in _generate_path | |
path = path[attr] | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/path_registry.py", line 267, in __getitem__ | |
return dict.__getitem__(self, entity) | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/path_registry.py", line 270, in __missing__ | |
self[key] = item = PropRegistry(self, key) | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/path_registry.py", line 208, in __init__ | |
self.parent.path + self.prop._wildcard_token | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 853, in __getattr__ | |
return self._fallback_getattr(key) | |
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 831, in _fallback_getattr | |
raise AttributeError(key) | |
AttributeError: _wildcard_token | |
MainProcess 2020-01-27 19:13:35,835 ERROR: Failed to import instrument. | |
MainProcess 2020-01-27 19:13:35,835 ERROR: _wildcard_token | |
Traceback (most recent call last): | |
File "sir/indexing.py", line 150, in _multiprocessed_import | |
for r in results: | |
File "/usr/local/lib/python2.7/multiprocessing/pool.py", line 673, in next | |
raise value | |
AttributeError: _wildcard_token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment