Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error no module named in Python. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How error no module named ErrorOccurs?
How To Solve error no module named Error ?
- How To Solve error no module named Error ?
To Solve error no module named Error You edited
The windows editor added something non-printing, perhaps a carriage-return (end-of-line in Windows is CR/LF; in unix it is LF only), or perhaps a CTRL-Z (windows end-of-file).
Based on your comments to orip’s post, I guess this is what happened:
- You edited
- The windows editor added something non-printing, perhaps a carriage-return (end-of-line in Windows is CR/LF; in unix it is LF only), or perhaps a CTRL-Z (windows end-of-file).
- You used WinSCP to copy the file to your unix box.
- WinSCP thought: “This has something that’s not basic text; I’ll put a .bin extension to indicate binary data.”
- The missing
__init__.py.bin) means python doesn’t understand toolkit as a package.
- You create
__init__.pyin the appropriate directory and everything works… ?
To make import walk through your directories every directory must have a
On *nix, also make sure that PYTHONPATH is configured correctly, especially that it has this format:
.: at the beginning, so that it can search on the current directory, too.)
It may also be in other locations, depending on the version:
.:/usr/lib/python .:/usr/lib/python2.6 .:/usr/lib/python2.7 and etc.
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.