-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I cannot run this notebook on the Refinitiv CodeBook App.
I have the following error message:
RefiImportError Traceback (most recent call last)
<ipython-input-7-bdaa1733d26a> in <module>
----> 1 from textblob import TextBlob as tb
/opt/conda/lib/python3.7/site-packages/eikon_hub/notebook/whitelisted.py in restrict_modules_whitelist(name, globals, locals, fromlist, level)
43 check = CheckWhiteListed()
44 check.whitelist = valid_modules
---> 45 check.check(name)
46 logging.info(f"importing {name}")
47 # if name not in valid_modules:
/opt/conda/lib/python3.7/site-packages/eikon_hub/notebook/check_white_list.py in check(self, module)
75 def check(self, module):
76 if not self._is_local(module):
---> 77 self._is_module_enabled(module)
78 else:
79 modules = module.split('.')
/opt/conda/lib/python3.7/site-packages/eikon_hub/notebook/check_white_list.py in _is_module_enabled(self, module)
71 package, *_ = package.rpartition('.')
72 else:
---> 73 raise RefiImportError("module '%s' is restricted." % module)
74
75 def check(self, module):
RefiImportError: module 'textblob' is restricted.
Metadata
Metadata
Assignees
Labels
No labels