When I try to install django I keep getting this warning. I tried the solution mentioned in this question but still its the same what should I do ?
My virtual os is ubuntu in vagrant.
Downloading/unpacking django==1.5.1
Downloading Django-1.5.1.tar.gz (8.0Mb): 8.0Mb downloaded
Running setup.py egg_info for package django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Installing collected packages: django
Running setup.py install for django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
changing mode of /home/vagrant/blog-venv/bin/django-admin.py to 777
Successfully installed django
Cleaning up...
These warnings are not a problem; Django is still being successfully installed. (The previous question you mention is asking something quite different, and is not concerned with the warnings.)
Related
I tried to install Django-toolbelt, but I keep getting the below. I am using Mac. I've tried googling around for solutions but no luck. Thanks.
(venv)Chans-MacBook-Pro:Django_app2 chantrinh$ pip install django-toolbelt
/Users/chantrinh/Django_app2/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting django-toolbelt
Using cached django-toolbelt-0.0.1.tar.gz
Collecting django (from django-toolbelt)
Using cached Django-1.8.1-py2.py3-none-any.whl
Collecting psycopg2 (from django-toolbelt)
Using cached psycopg2-2.6.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/4r/bh8wxz5d2678zg90jn1715s80000gn/T/pip-build-eUKfh5/psycopg2
(venv)Chans-MacBook-Pro:Django_app2 chantrinh$ pg_config
-bash: pg_config: command not found
(venv)Chans-MacBook-Pro:Django_app2 chantrinh$ sudo find / -name pg_config
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
I had exactly the same error message. However, in my case, I had already installed psycopg2. What was happening was the following:
I had first to install Macports,
Then in the python documentation I got this line:
sudo port install py27-psycopg2
But that line installed the package in
'/opt/local/Library/Frameworks/Python.Framework/....'
instead of
'/Library/Frameworks/Python.Framework/....'
I just created a symbolic link to solve the problem.
I'm trying to install reviewboard on Solaris 10, but I have this error message below and can not get rid of it. The environment is Solaris 10, python 2.4.
bash-3.2# easy_install ReviewBoard?-1.5.7
Processing ReviewBoard?-1.5.7
Running setup.py -q bdist_egg --dist-dir /home/fujita/Downloads/ReviewBoard-1.5.7/egg-dist-tmp-C1FAsb
warning: no files found matching '*' under directory 'locale'
no previously-included directories found matching 'docs/*/_build'
no previously-included directories found matching 'reviewboard/htdocs/media/uploaded/images'
ReviewBoard? 1.5.7 is already the active version in easy-install.pth
Installing rb-site script to /usr/bin
Installing rbssh script to /usr/bin
Installed /usr/lib/python2.4/site-packages/ReviewBoard-1.5.7-py2.4.egg
Processing dependencies for ReviewBoard?==1.5.7
Searching for Django>=1.1.3
Reading http://pypi.python.org/simple/Django/
No local packages or download links found for Django>=1.1.3
Best match: None
This error tells me that there should be Django installed on, I think that Django was already installed successfully.
bash-3.2# cd Django-1.3.5
bash-3.2# python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/bin/django-admin.py to 755
running install_data
bash-3.2# ls -lt /usr/lib/python2.4/site-packages/
drwxr-xr-x 17 root root 19 Aug 19 18:03 django
Question is why during installing reviewboard it can't find Django which is already installed?
Does anyone have any idea what kind of situation I'm in and any comments would help.
Thank you very much.
TomoyaFujita.
I did pip install django-tinymce and it gives this warning
Downloading django-tinymce-1.5.1.tar.gz (2.4MB): 2.4MB downloaded
Running setup.py egg_info for package django-tinymce
warning: no previously-included files found matching '*.pyc'
Installing collected packages: django-tinymce
Running setup.py install for django-tinymce
warning: no previously-included files found matching '*.pyc'
Successfully installed django-tinymce
Cleaning up...
What does this error means
I have have also installed Grappelli and its documentation says TinyMCE comes with it by default.
So, was pip install django-tinymce unnecessary on my part
The Grappelli documentation doesn't give proper explanation to use it. Can someone gives proper steps to configure tinyMCE
Also when I did python manage.py schemamigration --auto added_tinymce
I got this error
TypeError: __init__() got an unexpected keyword argument 'widget'
so can someone please guide me through it
I'm trying to work through the django tutorial, and seem to have a problem with the django installation (on Windows 7). I've installed Python, and pip, and installed Django via pip, at which point I got this output:
Downloading/unpacking Django
Downloading Django-1.5.1.tar.gz (8.0MB): 8.0MB downloaded
Running setup.py egg_info for package Django
warning: no previously-included files matching '__pycache__' found under dir
ectory ''
warning: no previously-included files matching '.py[co]' found under direct
ory '*'
Installing collected packages: Django
Running setup.py install for Django
warning: no previously-included files matching '__pycache__' found under dir
ectory ''
warning: no previously-included files matching '.py[co]' found under direct
ory '*'
Successfully installed Django
Cleaning up...
Since the messages were only warnings, I proceeded with trying to run django From within the project folder, I issue:
C:\data\spark2\spark\spark_project>python manage.py runserver
and receive the message:
ImportError: No module named debug_toolbar
then the command prompt is displayed again.
I've tried uninstalling and re-installing Django, to no avail.
Any ideas?
You forgot to install django-debug-toolbar which your project requires.
Running pip install django-debug-toolbar should fix that import error.
Ideally projects come with a Requirements.txt file that contains the output of pip freeze. If you have one, you can install all of the requirements by running pip install -r Requirements.txt
I'm trying to install Django 1.4.3, but when I execute pip install, pip keeps installing Django 1.5 version instead 1.4.3
sudo pip install -I Django==1.4.3
It returns:
Downloading/unpacking Django==1.4.3
Running setup.py egg_info for package Django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
=== >>>> Requested Django==1.4.3, but installing version 1.5 <<<< ====
Installing collected packages: Django
Found existing installation: Django 1.5
Uninstalling Django:
Successfully uninstalled Django
Running setup.py install for Django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
changing mode of /usr/local/bin/django-admin.py to 755
Successfully installed Django
Cleaning up...
but if I execute pip freeze, it keeps showing
Django==1.5
What am I doing wrong?
Thank you
This could/should/can be helped by clearing the build dir for Django in pip.
There is a bug for this, since version 1.1 see here for details
You can start checking for these folders here if you're on OS X or unix like systems:
~/.pip
/tmp/pip-build-root (or pip-build-$USER, if you aren't running pip as root).
This is if you haven't specified a new build folder when you installed the first version of Django.
Good luck!
As limelight says, you should empty your cache and build directories, or pass in a temporary clean location with the --download-cache and flag.
$ pip help install
[...]
--download-cache <dir> Cache downloaded packages in <dir>.
-b, --build <dir> Directory to unpack packages into and build in. The default in a virtualenv is "<venv path>/build". The default for global installs is
"<OS temp dir>/pip-build-<username>".
I'd like to warn any readers to not use sudo pip install to install Django. It installs Django system-wide. And changing the system-wide version could break system-packages that depend on it. For instance, Ubuntu MAAS and Cobbler depend on the system django package. These are typically services you don't want to break.
If you need a different version than the system-package, use virtualenv to isolate your dependencies from the system.
OP seems to be on OSX and I don't know of any server-wide Mac Django, but that may change. Consider installing python packages with sudo at par to changing the system-installed python with python 3; it might work for now, but have some paracetamol in stock, as you're in for some headaches.
Check your local cache and remove it can be help. I hava installed pymongo==2.5.2. To install pymongo==2.4.1, I remove the cache in /tmp/pip-build-root/pymongo.Then I install pymongo 2.4.1 successfully.