Error when running ./manage.py Validate - django

When I run the command
./manage.py validate
I get the error
Error:No module named debugger.debugger
I have debugger installed in my virtual environment via pip.

Actually the real problem was because of django-haystack version. Requires was version 2.0.0
So during validate somehow the real error was not showing up. The actual error was an import error during validate.
Thanks everyone for the help

Related

My demo django project doesn't start server after a restarting command prompt

I have created demo django project, now I cant run the server. I'm getting "ImportError: Couldn't import Django" I dont know what I'm missing.
You must install Django. The error is about this. Maybe you installed django on a virtual environment and you have deactivated it?

Unable to create a project in Django

I tried both methods but I am unable to understand what's wrong, I'm using django 1.11.7, it was working a few months ago. I only have one python version installed.
I get this system message:
C:\WINDOWS\system32>django-admin.py startproject wisdompets
Unable to create process using 'c:\program files\python36\python.exe
"C:\Program Files\Python36\Scripts\django-admin.py" startprojects
wisdompets'
C:\WINDOWS\system32>django-admin startproject test_project
Fatal error in launcher: Unable to create process using '"'
Did you activate your virtual environment where Django was installed?
Maybe you had installed Django in a virtual environment and your system might not have Django.
It should be :
django-admin startproject projectname
For doubts refer here: https://docs.djangoproject.com/en/1.11/intro/tutorial01/
This was not the most elegant walkaround but I managed to fix it by uninstalling both python and django then reinstalling them.

Error with H20 - Python init(): Server Error

This is a totally newbie question to see if I am missing something key (like there is more to install?).
After installing H20 (python 2.7) on a 9 node Hadoop / Spark cluster
using pip install of the whl file (h2o-3.10.4.8-py2.py3-none-any.whl) (which says it installed correctly).....
I can import h2o successfully.
But, when I run h2o.init() then I get:
"Checking whether there is an H20 instance running at http://localhost:54321. connected."
But then an error is thrown:
H2oServerError: HTTP 500 Server Error: u'Error: 500'
Should I be able to run H20 by simply pip installing that whl or is there more? The documentation seems outdated and there are lots of different versions found online. Anyone have any experience with this?
It's most likely that you got this problem solved, but maybe someone else may benefit. Use the install in Python Tab on the following website : http://h2o-release.s3.amazonaws.com/h2o/rel-tutte/2/index.html.

python can load GDAL, but django can't

I was able to successfully install gdal 1.11 and load it from python shell on my windows 32 bit machine. I can also verify its success by typing "gdalinfo --version" and getting the correct version info: GDAL 1.11.4, released 2016/01/25
However, when running "python manage.py shell" in django 1.11, I got error 127 'the specified procedure could not be found'. The error occurred when django called function lgdal = CDLL(lib_path)
I printed out lib_path, it is correct. The same function worked fine in my python shell.
Any idea why loading gdal111.dll would fail in the django environment when it has no problem in the python shell? Thanks.

No module named filterspecs

In eclipse,when i create new project, i got an error like,
Error creating Django project
settings.py file not created
Stdout:
Stderr:
If i synchronize present project and runserver, iam getting Error: No module named filterspecs.But i haven't used filterspecs in my project. Already filterspecs.py installed in usr/local/lib/python2.7/dist-packages/django/contrib/admin.
Kindly advise to rectify the error.
You may be using django.contrib.admin.filterspecs to create custom filters for your admin pages, such as outlined here:
Custom Filter in Django Admin on Django 1.3 or below
Unfortunatelly, you will have to rewrite these using the new list_filter module functionality.
See the manual here:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter
This happened to me as well, even though my code wasn't directly using any filterspecs.
Run python manage.py runserver --traceback to see exactly where the error is coming from.
This module was removed in Django 1.4, but other external modules you have listed in your settings.py might still be using it, so make sure you upgrade everything in your INSTALLED_APPS list. In my case, I was using an outdated version of FeinCMS, but after I upgraded it, the error went away.
Obviously, your system is lacking filterspecs module which is required by the project. Install it by typing sudo pip install filterspecs in the console (if you are on linux)