Skip to content

RefiImportError: module 'textblob' is restricted.  #1

@pinpss

Description

@pinpss

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions