From 42eeca7e3fff30b902fedd445899949b4f22e3bc Mon Sep 17 00:00:00 2001 From: Kyla Date: Wed, 20 Nov 2024 05:46:03 +0330 Subject: [PATCH] fix ModuleNotFoundError: No module named 'exceptions' Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: File "/root/redenv/lib/python3.11/site-packages/instagrapi/__init__.py", line 7, in Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: from instagrapi.mixins.account import AccountMixin Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: File "/root/redenv/lib/python3.11/site-packages/instagrapi/mixins/account.py", line 9, in Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: from instagrapi.extractors import extract_account, extract_user_short Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: File "/root/redenv/lib/python3.11/site-packages/instagrapi/extractors.py", line 37, in Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: from .utils import InstagramIdCodec, json_value Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: File "/root/redenv/lib/python3.11/site-packages/instagrapi/utils.py", line 8, in Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: from exceptions import ValidationError Nov 20 03:10:09 vmi1357653.contaboserver.net python[3948062]: ModuleNotFoundError: No module named 'exceptions' fix --- instagrapi/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instagrapi/utils.py b/instagrapi/utils.py index 0e22887c..d83b1a12 100644 --- a/instagrapi/utils.py +++ b/instagrapi/utils.py @@ -5,7 +5,7 @@ import string import time import urllib -from exceptions import ValidationError +from .exceptions import ValidationError class InstagramIdCodec: