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

ModuleNotFoundError: No module named 'aimet_common.libpymo' in release1.28.0 #2835

Open
Keywennn opened this issue Mar 25, 2024 · 2 comments

Comments

@Keywennn
Copy link

when I use bash to check the import, there is no error. but when I import directly, I can't find aimet_common.libpymo.

%%bash
sh /usr/local/lib/python3.8/site-packages/aimet_common/bin/envsetup.sh
python -c "
from aimet_common.defs import QuantScheme
import aimet_common.defs as aimet_common_defs
import aimet_common.libpymo as libpymo
"

no error


import copy
import torch
from torchvision import models
from aimet_torch.cross_layer_equalization import equalize_model
from aimet_torch import visualize_model

ModuleNotFoundError Traceback (most recent call last)
in <cell line: 4>()
2 import torch
3 from torchvision import models
----> 4 from aimet_torch.cross_layer_equalization import equalize_model
5 from aimet_torch import visualize_model

/usr/local/lib/python3.8/site-packages/aimet_torch/cross_layer_equalization.py in
49 import torch
50
---> 51 import aimet_common.libpymo as libpymo # pylint: disable=import-error
52
53 from aimet_common.utils import AimetLogger

ModuleNotFoundError: No module named 'aimet_common.libpymo'

@quic-mangal
Copy link
Contributor

Can you check if your PYTHONPATH is set correctly?

@canyagmur
Copy link

Resolved the issue @480.

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

3 participants