WebFaction
Community site: login faq

Hello,

I am trying to install Django Simple Menu with Pip and receiving this error:

pip install django-simple-menu

    Downloading/unpacking django-simple-menu
  Downloading django-simple-menu-1.0.6.tar.gz
Running setup.py egg_info for package django-simple-menu
Traceback (most recent call last):
  File "<string>", line 16, in <module>
  File "/tmp/pip_build_elements/django-simple-menu/setup.py", line 5, in <module>
    from menu import VERSION_STRING
  File "menu/__init__.py", line 1, in <module>
    from django.conf import settings
ImportError: No module named django.conf
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 16, in <module>

File "/tmp/pip_build_elements/django-simple-menu/setup.py", line 5, in <module>

  from menu import VERSION_STRING

File "menu/__init__.py", line 1, in <module>

   from django.conf import settings

ImportError: No module named django.conf

Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_elements/django-simple-menu
Storing complete log in /home/elements/.pip/pip.log

Please help. Thanks

asked 30 Aug '13, 15:45

rentgeeen
4721219
accept rate: 0%

edited 30 Aug '13, 15:47


This package requires Django be installed to get the version. You can either:

  1. Install Django in your ~/lib/pythonX.Y then install django-simple-menu:

    pip install django
    pip install django-simple-menu
    
  2. Install django-simple-menu directly into your application with setup.py:

    wget --no-check-certificate https://pypi.python.org/packages/source/d/django-simple-menu/django-simple-menu-1.0.6.tar.gz
    tar xvfz django-simple-menu-1.0.6.tar.gz
    cd django-simple-menu-1.0.6
    PYTHONPATH=$HOME/webapps/<your django application>/lib/python2.7 python2.7 setup.py install --install-lib=$HOME/webapps/<your django application>/lib/python2.7 --install-scripts=$HOME/webapps/<your django application>/bin --install-data=$HOME/webapps/django/lib/python2.7
    
permanent link

answered 30 Aug '13, 16:22

timg ♦♦
1.3k4
accept rate: 30%

I would like to use the 1st option but when I run the 1st command: pip install django - Requirement already satisfied (use --upgrade to upgrade): django in ./Django-1.5.2-py2.7.egg Cleaning up... - and then the 2nd one same error. ImportError: No module named django.conf

(30 Aug '13, 18:35) rentgeeen

It works for the 2nd one directly into the app dir, but I would like to know the 1st way if possible. Thanks

(30 Aug '13, 18:41) rentgeeen

@rentgeeen that error just means that Django is already installed, so you can safely ignore the requirement already satisfied error.

(30 Aug '13, 18:51) waynek

I understand that part: but as by 1st step pip install django-simple-menu I am still getting that error: ImportError: No module named django.conf

(30 Aug '13, 19:32) rentgeeen

@rentgeeen OK, then you will need to use the 2nd method as it's not recognising your application's paths by default. You can try adding --install-option="--install-lib=$HOME/webapps/<your django="" application="">/lib/python2.7" --install-option="--install-scripts=$HOME/webapps/<your django="" application="">/bin" to the pip install command, which may help.

(30 Aug '13, 20:01) waynek

In the second comment I said it is working with option2. As a developer I would like to know what is wrong that step 1 doesnt work, I am always precise and I want to fix every error :)

(30 Aug '13, 20:55) rentgeeen

I saw your second comment, and I added some suggested options which you can try on option 1 to get it to work. Please try those.

(30 Aug '13, 21:18) waynek

I can see now sorry, will try those it just looked similar to 2nd thank you

(30 Aug '13, 23:09) rentgeeen
showing 5 of 8 show 3 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×906
×52
×29
×15
×15

question asked: 30 Aug '13, 15:45

question was seen: 7,548 times

last updated: 30 Aug '13, 23:09

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM