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

Failed "import nebulvm" in jupyter notebook #50

Closed
t1endat opened this issue May 11, 2022 · 0 comments
Closed

Failed "import nebulvm" in jupyter notebook #50

t1endat opened this issue May 11, 2022 · 0 comments

Comments

@t1endat
Copy link

t1endat commented May 11, 2022

I try to import nebullvm in jupyter, and get this error :

ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_73095/367574778.py in <module>
      1 #install compilers
----> 2 import nebullvm

~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/nebullvm/__init__.py in <module>
----> 1 from nebullvm.api.frontend.torch import optimize_torch_model  # noqa F401
      2 from nebullvm.api.frontend.tf import optimize_tf_model  # noqa F401
      3 from nebullvm.api.frontend.onnx import optimize_onnx_model  # noqa F401

~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/nebullvm/api/frontend/torch.py in <module>
     22     QuantizationType,
     23 )
---> 24 from nebullvm.converters import ONNXConverter
     25 from nebullvm.transformations.base import MultiStageTransformation
     26 from nebullvm.utils.data import DataManager

~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/nebullvm/converters/__init__.py in <module>
----> 1 from .converters import ONNXConverter  # noqa F401
~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/nebullvm/converters/converters.py in <module>
      7 
      8 from nebullvm.base import ModelParams
----> 9 from nebullvm.converters.tensorflow_converters import (
     10     convert_tf_to_onnx,
     11     convert_keras_to_onnx,

~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/nebullvm/converters/tensorflow_converters.py in <module>
      5 
      6 import tensorflow as tf
----> 7 import tf2onnx
      8 
      9 from nebullvm.base import ModelParams, DataType

~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/tf2onnx/__init__.py in <module>
      9 from .version import git_version, version as __version__
     10 from . import verbose_logging as logging
---> 11 from tf2onnx import tfonnx, utils, graph, graph_builder, graph_matcher, shape_inference, schemas, convert  # pylint: disable=wrong-import-order

~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/tf2onnx/tfonnx.py in <module>
     14 
     15 import tf2onnx
---> 16 import tf2onnx.onnx_opset  # pylint: disable=unused-import
     17 import tf2onnx.tflite_handlers  # pylint: disable=unused-import
     18 import tf2onnx.custom_opsets  # pylint: disable=unused-import
~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/tf2onnx/onnx_opset/__init__.py in <module>
      3 """tf2onnx.onnx_opset module"""
      4 
----> 5 from . import (
      6     common,
      7     controlflow,

~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/tf2onnx/onnx_opset/controlflow.py in <module>
     13 from onnx import onnx_pb
     14 from onnx.onnx_pb import TensorProto
---> 15 from tf2onnx import utils
     16 from tf2onnx.handler import tf_op
     17 from tf2onnx.tf_loader import find_function

~/miniconda3/envs/nebullvm_env/lib/python3.7/site-packages/tf2onnx/utils.py in <module>
     14 import logging
     15 
---> 16 import requests
     17 from requests.adapters import HTTPAdapter
     18 from urllib3.util.retry import Retry

ModuleNotFoundError: No module named 'requests'

The surprising thing is that if i use python run the command directly there is no problem
How can I void this error in jupyter?

@t1endat t1endat changed the title Failed "import nebulvm" after use python -c "import nebullvm" Failed "import nebulvm" in jupyter notebook May 11, 2022
@t1endat t1endat closed this as completed May 11, 2022
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

1 participant