-
Notifications
You must be signed in to change notification settings - Fork 72
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
ImportError: No module named 'ExceptionNotSeen' #11
Comments
seems there is something wrong with the install import or python path in system variable. Solve it this way
It solved that issue for me. |
Thks! |
Does not work in virtual environment (anaconda) |
you need to import class NotSeen into all dependent class files. I did that to
It should solve your issue |
All files already make this import |
whats the error message you are getting ? post it here |
I am getting the following error with Anaconda:
|
|
Not sure about anaconda or virtual environment. I would cross check for ExceptionNotSeen.py file in C:\Users\username\AppData\Local\Continuum\Anaconda3\lib\site-packages\naiveBayesClassifier directory. Also check whether ExceptionNotSeen.py has been define as below
And Add from ExceptionNotSeen import NotSeen in all relevent files classifier.py , trainedData.py in same directory too. |
i got the same error. |
Is the version of python that many of you are using is 3.x? If so, download 2to3, copy 2to3 file to dir of genderizer package, then open the terminal in genderizer package dir and run the following command: 2to3 -w . which converts all the python files to the version 3. This should solve all the above problems and this has worked for me! |
the same error。。。。 |
I don't have this file(.py) |
You can try this " |
Maybe something is missing...
Traceback (most recent call last):
File "/Users/ZhangYuhao/Documents/Datamining/project/Q_number.py", line 3, in
from naiveBayesClassifier.trainer import Trainer
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/naiveBayesClassifier/trainer.py", line 1, in
from naiveBayesClassifier.trainedData import TrainedData
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/naiveBayesClassifier/trainedData.py", line 1, in
from ExceptionNotSeen import NotSeen
ImportError: No module named 'ExceptionNotSeen'
Could anyone help me out?
The text was updated successfully, but these errors were encountered: