Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RefiImportError: module 'textblob' is restricted.  #1

Copy link
Copy link
@pinpss

Description

@pinpss
Issue body actions

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. 
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.