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

Troubles with detector module #9

Open
davidam opened this issue Nov 8, 2017 · 0 comments
Open

Troubles with detector module #9

davidam opened this issue Nov 8, 2017 · 0 comments

Comments

@davidam
Copy link

davidam commented Nov 8, 2017

I've the next problem:

davidam@debian:~/git/python-examples$ pip install sexmachine
Requirement already satisfied: sexmachine in /usr/local/lib/python2.7/dist-packages

davidam@debian:~/git/python-examples$ python sexmachine.py
Traceback (most recent call last):
File "sexmachine.py", line 1, in
import sexmachine.detector as gender
File "/home/davidam/git/python-examples/sexmachine.py", line 1, in
import sexmachine.detector as gender
ImportError: No module named detector

The source code is:

$ cat sexmachine.py
import sexmachine.detector as gender
d = gender.Detector()
if (d.get_gender(u"Bob") == 'male'):
print("Python")
elif (d.get_gender(u"Sally") == 'female'):
print("Shell")
else:
print("PHP")

Regards.

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

1 participant