Failed to download `CollecTRI` from OmniPath. Invalid value `loops` for `InteractionsQuery`. AttributeError: module 'omnipath' has no attribute 'static' #108
WARNING:root:Traceback (most recent call last):
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/decoupler/omnip.py", line 523, in get_collectri
ct = op.interactions.CollecTRI.get(
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/omnipath/_core/requests/_utils.py", line 114, in wrapper
return wrapped(args, kwargs)
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/omnipath/_core/requests/_utils.py", line 31, in _get_helper
return cls()._get(kwargs)
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/omnipath/_core/requests/_request.py", line 108, in _get
kwargs = self._validate_params(kwargs)
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/omnipath/_core/requests/_request.py", line 195, in _validate_params
res[self._query_type(k).param] = self._query_type(k)(v)
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/omnipath/_core/query/_query.py", line 136, in call
return self.value(value)
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/omnipath/constants/_constants.py", line 51, in call
return super().call(args, *kw)
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/enum.py", line 384, in call
return cls.new(cls, value)
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/omnipath/constants/_constants.py", line 15, in wrapper
raise e
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/omnipath/constants/_constants.py", line 11, in wrapper
return fun(args, **kwargs)
File "/home/lyt/anaconda3/envs/decoupler/lib/python3.9/enum.py", line 702, in new
raise ve_exc
ValueError: Invalid value loops for InteractionsQuery. Valid options are: ['database', 'databases', 'dataset', 'datasets', 'directed', 'directeds', 'dorothea_level', 'dorothea_levels', 'dorothea_method', 'dorothea_methods', 'entity_type', 'entity_types', 'field', 'fields', 'format', 'formats', 'genesymbol', 'genesymbols', 'header', 'headers', 'license', 'licenses', 'limit', 'limits', 'organism', 'organisms', 'partner', 'partners', 'password', 'passwords', 'resource', 'resources', 'signed', 'signeds', 'source_target', 'source_targets', 'source', 'sources', 'target', 'targets', 'tfregulons_level', 'tfregulons_levels', 'tfregulons_method', 'tfregulons_methods', 'type', 'types'].
WARNING:root:Failed to download CollecTRI from OmniPath. Falling back to static tables. This is not the recommended way to access OmniPath; it is only a backup plan for situations when our server or your computer is experiencing issues.See the below traceback and the omnipath log for details.
/home/lyt/anaconda3/envs/decoupler/lib/python3.9/site-packages/decoupler/_misc.py:22: UserWarning: Failed to download CollecTRI from OmniPath. Falling back to static tables. This is not the recommended way to access OmniPath; it is only a backup plan for situations when our server or your computer is experiencing issues.See the below traceback and the omnipath log for details.
warnings.warn(msg)
File ~/anaconda3/envs/decoupler/lib/python3.9/enum.py:384, in EnumMeta.call(cls, value, names, module, qualname, type, start)
383 if names is None: # simple value lookup
--> 384 return cls.new(cls, value)
385 # otherwise, functional API: we're creating a new Enum type
Hello. When I run this line of code, I get the following error:
Thanks for your answer!