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 'exceptions' #1

Open
Kokozzi opened this issue Jan 10, 2020 · 6 comments
Open

ModuleNotFoundError: No module named 'exceptions' #1

Kokozzi opened this issue Jan 10, 2020 · 6 comments

Comments

@Kokozzi
Copy link

Kokozzi commented Jan 10, 2020

Full lib seems to be broken because of incorrect modules imports:

>>> from sendsay.api import SendsayAPI                                                                                 
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/.../.venv/lib/python3.7/site-packages/sendsay/api.py", line 8, in <module>
    from exceptions import SendsayAPIError
ModuleNotFoundError: No module named 'exceptions'

Tested with Python 3.7.5, Ubuntu 18.04.3 LTS.

@Kokozzi Kokozzi changed the title Incorrect import ModuleNotFoundError: No module named 'exceptions' Jan 10, 2020
@hezymal
Copy link

hezymal commented Mar 19, 2020

Same problem:

Traceback (most recent call last):
  File ".\index.py", line 2, in <module>
    from sendsay.api import SendsayAPI
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\sendsay\api.py", line 8, in <module>
    from exceptions import SendsayAPIError
ModuleNotFoundError: No module named 'exceptions'

@Kokozzi
Copy link
Author

Kokozzi commented Mar 19, 2020

After direct message to SendSay support they mentioned, that it's only python2 lib. It won't work with python3.

@hezymal
Copy link

hezymal commented Apr 21, 2020

Enough to fix the import of exceptions in api.py to work on python3:

from .exceptions import SendsayAPIError // add dot "." before "exceptions"

@feikeker
Copy link

feikeker commented Jul 1, 2020

same issue
Traceback (most recent call last): File "E:\02 Python 基础\练习代码\word.py", line 2, in <module> from docx import Document File "C:\Users\admin\anaconda3\lib\site-packages\docx.py", line 30, in <module> from exceptions import PendingDeprecationWarning ModuleNotFoundError: No module named 'exceptions'

@Vaishalinicky
Copy link

root@aeb4686b140b:/tmp# python3
Python 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import cql
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/cql/init.py", line 17, in
from cql.apivalues import *
File "/usr/local/lib/python3.8/dist-packages/cql/apivalues.py", line 17, in
import exceptions
ModuleNotFoundError: No module named 'exceptions'

same issue even i have

@Luferov
Copy link

Luferov commented Sep 16, 2024

oh god this is sad

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

5 participants