Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RefiImportError: module 'textblob' is restricted. #1

Open
pinpss opened this issue Sep 28, 2021 · 1 comment
Open

RefiImportError: module 'textblob' is restricted. #1

pinpss opened this issue Sep 28, 2021 · 1 comment

Comments

@pinpss
Copy link

pinpss commented Sep 28, 2021

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. 
@jasonramchandani
Copy link
Contributor

@pinpss So this notebook is not designed for use in codebook as you see the textblob package is not available. I am just finishing a version using NLTK Vader Sentiment engine which is available in codebook I believe. I will let you know when i publish it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants