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

Handle ImportError as MissingDependencyException #8682

Closed
1 task
sentry-io bot opened this issue May 13, 2021 · 3 comments · Fixed by #8697
Closed
1 task

Handle ImportError as MissingDependencyException #8682

sentry-io bot opened this issue May 13, 2021 · 3 comments · Fixed by #8697
Assignees
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework tool:sentry type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@sentry-io
Copy link

sentry-io bot commented May 13, 2021

Sentry Issue: RASA-OPEN-SOURCE-91E

ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.
  File "site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *

ImportError: Traceback (most recent call last):
  File "c:\users\hp pc\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions....
(13 additional frame(s) were not displayed)
...
  File "rasa\model_training.py", line 22, in <module>
    from rasa.nlu.model import Interpreter
  File "rasa\nlu\model.py", line 14, in <module>
    from rasa.nlu import components, utils
  File "rasa\nlu\components.py", line 7, in <module>
    import rasa.utils.train_utils
  File "rasa\utils\train_utils.py", line 37, in <module>
    from rasa.utils.tensorflow.callback import RasaTrainingLogger, RasaModelCheckpoint
  File "rasa\utils\tensorflow\callback.py", line 5, in <module>
    import tensorflow as tf

Definition of Done:

  • wrap import in try-except block and raise MissingDependencyException from ImportError
@ancalita ancalita added area:rasa-oss 🎡 Anything related to the open source Rasa framework tool:sentry type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels May 13, 2021
@sentry-io
Copy link
Author

sentry-io bot commented May 14, 2021

Sentry issue: RASA-OPEN-SOURCE-8V0

@ancalita
Copy link
Member

Handled by PR #8697

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework tool:sentry type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant