Re: Django installation error

2012-05-24 Thread Karen Tracey
On Thu, May 24, 2012 at 4:19 PM, jggal...@prodigy.net.mx <
jggal...@prodigy.net.mx> wrote:

> D:\python_27\Lib\site-packages\Django-1.4>python
> Python 2.4.5 (#1, Jul 22 2011, 02:01:04)
>

Python 2.4 is too old for Django 1.4. You need to have Python 2.5, 2.6, or
2.7 installed, see:
https://docs.djangoproject.com/en/1.4/intro/install/#install-python

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django installation error

2012-05-24 Thread jggal...@prodigy.net.mx
Hi,


I hope somebody can help me, I'm triying to install django on Win XP.
I downloaded it from django's official site.

Of course I have already python installed and when I do  "python
setup.py install" python give me the following message:



D:\python_27\Lib\site-packages\Django-1.4>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 69, in ?
version = __import__('django').get_version()
  File "D:\python_27\Lib\site-packages\Django-1.4\django\__init__.py",
line 15
parts = 2 if version[2] == 0 else 3
   ^
SyntaxError: invalid syntax

D:\python_27\Lib\site-packages\Django-1.4>python
Python 2.4.5 (#1, Jul 22 2011, 02:01:04)
[GCC 4.1.1] on mingw32
Type "help", "copyright", "credits" or "license" for more information.
>>> print "hola"
hola
>>> ^D
  File "", line 1
♦
^
SyntaxError: invalid syntax
>

I read in some other blog that it could be caused because the
uncompressed utiliy used...then  I tryed again with others but python
still showing me this message.

Thanks in advance

Jose.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Ed Castano

You hit the nail on the head.  The command import django executed in
the Python interpreter.  Getting started seems like a giant uphill
battle, but fortunately I am quite determined.  It also helps to have
helpful people like you supporting my learning.

Thanks again!

-Ed


On Jul 6, 2:44 pm, Andre Terra  wrote:
> Hello, Ed
>
> A few tips to get you going on the right track:
>
> 1) If *Python can't find Django*, it's because it's *not on your PYTHONPATH*.
> If you have multiple Python installs, it gets even more complex as *>
> manage.py* can yield different results from* > python manage.py*, depending
> on how your file associations are set up.
>
> 2) If you're getting '*access denied*', it's probably because your* not an
> admin* or *UAC is blocking you* (*windows 7, vista*). Try installing Python
> on *C:\Python27\ *instead (or something similar, depending on the version
> you're using).
>
> 3) *Never* copy packages to *site-packages directory directly*. Use a
> *virtualenv
> *instead.
>
> *Start from a fresh state* and try to follow the principles 
> behindhttp://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv...
> using
> *pip*, *repositories *and *virtualenv*.
>
> And last but not least,
>
> 4) *Try developing on linux*. It will make your life about a billion
> times *easier
> *and *more productive*!
>
> Once you get all that figure out, make sure you set up your own repository
> on *github*, *bitbucket*, *gitorious *or wherever else. Version control is
> *key* to speedy+organized development cycles.
>
> Cheers,
> André Terra (airstrike)
>
>
>
>
>
>
>
> On Wed, Jul 6, 2011 at 5:28 PM, Ed Castano  wrote:
> > This is the error I get when trying to install Django:
>
> > error: could not create 'C:\Program Files\Python\Lib\site-packages
> > \django': Access is denied
>
> > Python 2.7 is installed.
> > I tried manually copy the django site-packages folder and while the
> > folder copies ok, django will still not run in python
>
> > Any help will be immensely appreciated.
>
> > Thanks,
> > Ed
> > I also tried manually changing the file permissions by unchecking
> > "Read only".
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Andre Terra
Hello, Ed


A few tips to get you going on the right track:

1) If *Python can't find Django*, it's because it's *not on your PYTHONPATH*.
If you have multiple Python installs, it gets even more complex as *>
manage.py* can yield different results from* > python manage.py*, depending
on how your file associations are set up.

2) If you're getting '*access denied*', it's probably because your* not an
admin* or *UAC is blocking you* (*windows 7, vista*). Try installing Python
on *C:\Python27\ *instead (or something similar, depending on the version
you're using).

3) *Never* copy packages to *site-packages directory directly*. Use a
*virtualenv
*instead.

*Start from a fresh state* and try to follow the principles behind
http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/namely
using
*pip*, *repositories *and *virtualenv*.

And last but not least,

4) *Try developing on linux*. It will make your life about a billion
times *easier
*and *more productive*!

Once you get all that figure out, make sure you set up your own repository
on *github*, *bitbucket*, *gitorious *or wherever else. Version control is
*key* to speedy+organized development cycles.


Cheers,
André Terra (airstrike)


On Wed, Jul 6, 2011 at 5:28 PM, Ed Castano  wrote:

> This is the error I get when trying to install Django:
>
> error: could not create 'C:\Program Files\Python\Lib\site-packages
> \django': Access is denied
>
> Python 2.7 is installed.
> I tried manually copy the django site-packages folder and while the
> folder copies ok, django will still not run in python
>
> Any help will be immensely appreciated.
>
> Thanks,
> Ed
> I also tried manually changing the file permissions by unchecking
> "Read only".
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Ed Castano
This is the error I get when trying to install Django:

error: could not create 'C:\Program Files\Python\Lib\site-packages
\django': Access is denied

Python 2.7 is installed.
I tried manually copy the django site-packages folder and while the
folder copies ok, django will still not run in python

Any help will be immensely appreciated.

Thanks,
Ed
I also tried manually changing the file permissions by unchecking
"Read only".

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.