So it looks like its uninstalling the Django you already have installed in 
the global packages, in order to install the version specified in the 
requirements file, but is hitting a permissions error in doing so because 
you are not logged in as root (or elevating with sudo). I presume your 
virtualenv was set up using global site packages if its picking that up. So 
you have 2 options.

1) Elevate your permissions to delete the existing django in the site root 
with the following command (im not sure if you need to deactivate your 
virtualenv or not to do that since I never install anything globally):

*sudo pip uninstall django*
Enter your password when prompted

Then with your virtualenv activated try the previous command again:

*pip install -r requirements*

2) delete your virtualenv, and create a new one, specifying no site 
packages so you have an isolated virtualenv rather than the one you have 
now:

*rmvirtualenv env*

Then the following to create the new one, activate it and then install your 
requirements:

*mkvirtualenv --no-site-packages env*
*source activate* (from the bin folder as usual)
*pip install -r requirements*

Thanks

On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote:
>
>
>
>
> *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 
> and django 1.6 on my desktop (ubuntu 14)but i can't run the application or 
> activate the virtualenv*
>
> *this is the message i got:*
> ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
>     utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 392, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 242, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 280, in execute
>     translation.activate('en-us')
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
>     return _trans.activate(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
>     _active.value = translation(language)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
>     default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
>     app = import_module(appname)
>   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", 
> line 40, in import_module
>     __import__(name)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/039d9148-b2a8-4a54-bf4d-c1b505e72ad0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to