math-a3k / django-ai

Artificial Intelligence for Django
Other
78 stars 23 forks source link

Getting ModuleNotFoundError: No module named 'bayesian_networks' while integrating django-ai with a basic django project. #17

Open dsbyprateekg opened 5 years ago

dsbyprateekg commented 5 years ago

Description

I have created a Django project and then trying to integrate django-ai with it by following below link- https://django-ai.readthedocs.io/en/latest/installation.html

What I Did

When I ran 'python manage.py makemigrations 'command as mentioned in above ink I got following error: ModuleNotFoundError: No module named 'bayesian_networks'.

my settings.py snippet is as below- `DEBUG = True

ALLOWED_HOSTS = []

INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles',

# Dependencies
'nested_admin',

# django-ai apps
'django_ai.base',
'django_ai.bayesian_networks',
'django_ai.supervised_learning',
'django_ai.systems.spam_filtering',

# optional but highly recommended
'django_ai.examples',

]`

I tried to search in internet but I have not found any solution so I am asking here. Let me know if anything I am missing here.

saijalshakya commented 5 years ago

https://github.com/math-a3k/django-ai/tree/master/docs

This might help you. It worked for me.

dsbyprateekg commented 5 years ago

Can you please tell me exact what line in the shared doc helped you?

math-a3k commented 5 years ago

I can't troubleshoot RN on windows, can you please try to test it out via the examples in the package, as explained in the quick start section in the readme?

If that works, then it's probably a path-related problem, like using packages outside the virtualenv

El lun., 18 feb. 2019 7:10, Prateek Gupta notifications@github.com escribió:

Can you please tell me exact what line in the shared doc helped you?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/math-a3k/django-ai/issues/17#issuecomment-464709269, or mute the thread https://github.com/notifications/unsubscribe-auth/AeDwxk2TnbqKGhnEpwaq3eI-S6gnXTcWks5vOpghgaJpZM4aXU6o .

saijalshakya commented 5 years ago

Third step. and migrating from that directory also @dsbyprateekg

dsbyprateekg commented 5 years ago

@saijalshakya Followed the step but by E:\ML\Django-Sample\django-ai_env\Lib\site-packages is blank and there is no manage.py file is created. @math-a3k seems like issue happens in windows

shakyasaijal commented 5 years ago

Ya migrate after changing directory, then return back to main app folder then start with it. Successfully migrates but still the problem remains same. @dsbyprateekg

math-a3k commented 5 years ago

Finally, I managed to solve it in Windows 10, here is what I did:

Please confirm that you were able to run it :)