Strange problem when starting project in Windows XP

19 views
Skip to first unread message

Dane

unread,
Dec 18, 2009, 12:44:09 AM12/18/09
to Django users
Hi all,

I'm new to Django. I got through the beginner tutorial without much
trouble and I just finished the introductory chapters of The
Definitive Guide, so I decided to start work on a real project. I've
quickly run into a bizarre stumbling block however when I try to start
my new project.

I run cmd.exe to open the windows command prompt, then I navigate to
my django projects folder, then type 'django-admin.py startproject
newsite' and then I get this error in the command prompt:

'The system cannot find the file idle.pyw'.

I also get an error dialog in windows titled 'idle.pyw' that says
'Windows cannot find 'idle.pyw'. Make sure you typed the name
correctly, and then try again. To search for a file, click the Start
button, and then click Search.'

I get the same error if I simply type 'django-admin.py' into the
prompt as well.

I really have no clue what's going on here. What does idle.pyw have to
do with anything? Google has been no help. I did this exact same thing
when going through the tutorial with no problems whatsoever, and made
no changes to any of my PATH variables or anything of that kind.

Any ideas? I'm really eager to get going with Django but feeling quite
frustrated! Thanks for help.

-Dane

Shawn Milochik

unread,
Dec 18, 2009, 7:52:21 AM12/18/09
to django...@googlegroups.com
What happens when you type 'python django-admin.py'?

If that doesn't work, try replacing 'python' there with the full path to your Python executable in Windows. I've never heard of this problem, but it sounds like it could be something odd in the environment.

Shawn

Dane

unread,
Dec 18, 2009, 12:27:14 PM12/18/09
to Django users
It worked with 'python c:\python26\scripts\django-admin.py
startproject newsite'. Does that mean the PATH got messed up somehow?

OkaMthembo

unread,
Dec 18, 2009, 12:59:18 PM12/18/09
to django...@googlegroups.com
Hi Dane,

Yes, when you have to specify an absolute path to get it working, it definitely sounds like a PATH environ config. problem. When you check your PATH variables, do you see the folder to django-admin.py listed?

Regards,
Lloyd

--

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





--
Regards,
Sithembewena Lloyd Dube
http://www.lloyddube.com

dfolland

unread,
Dec 18, 2009, 2:30:02 PM12/18/09
to Django users
idle.pyw is the gui version of the python idle editor. Sounds like
you've got file extension .py associated with it, instead of python.

On Dec 18, 11:59 am, OkaMthembo <zebr...@gmail.com> wrote:
> Hi Dane,
>
> Yes, when you have to specify an absolute path to get it working, it
> definitely sounds like a PATH environ config. problem. When you check your
> PATH variables, do you see the folder to django-admin.py listed?
>
> Regards,
> Lloyd
>
>
>
> On Fri, Dec 18, 2009 at 7:27 PM, Dane <dane.schnei...@gmail.com> wrote:
> > It worked with 'python c:\python26\scripts\django-admin.py
> > startproject newsite'. Does that mean the PATH got messed up somehow?
>
> > On Dec 18, 7:52 am, Shawn Milochik <sh...@milochik.com> wrote:
> > > What happens when you type 'python django-admin.py'?
>
> > > If that doesn't work, try replacing 'python' there with the full path to
> > your Python executable in Windows. I've never heard of this problem, but it
> > sounds like it could be something odd in the environment.
>
> > > Shawn
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > django-users...@googlegroups.com<django-users%2Bunsu...@googlegroups.com>

Dane

unread,
Dec 19, 2009, 2:14:45 PM12/19/09
to Django users
C:\Python26\Scripts is where django-admin.py is, and it's in my PATH
variable. It's strange because C:\Python26 (the path to python itself)
is also in the same PATH variable, and that is working. If I just type
'python', I do get the shell.

If idle.pyw has taken over .py associations, how would I check/change
that?

On Dec 18, 12:59 pm, OkaMthembo <zebr...@gmail.com> wrote:
> Hi Dane,
>
> Yes, when you have to specify an absolute path to get it working, it
> definitely sounds like a PATH environ config. problem. When you check your
> PATH variables, do you see the folder to django-admin.py listed?
>
> Regards,
> Lloyd
>
>
>
> On Fri, Dec 18, 2009 at 7:27 PM, Dane <dane.schnei...@gmail.com> wrote:
> > It worked with 'python c:\python26\scripts\django-admin.py
> > startproject newsite'. Does that mean the PATH got messed up somehow?
>
> > On Dec 18, 7:52 am, Shawn Milochik <sh...@milochik.com> wrote:
> > > What happens when you type 'python django-admin.py'?
>
> > > If that doesn't work, try replacing 'python' there with the full path to
> > your Python executable in Windows. I've never heard of this problem, but it
> > sounds like it could be something odd in the environment.
>
> > > Shawn
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > django-users...@googlegroups.com<django-users%2Bunsu...@googlegroups.com>

Dane

unread,
Dec 19, 2009, 2:20:10 PM12/19/09
to Django users
Ok, figured this one out with google.

Idle had taken over .py files. It was as simple as going to My
Computer, Tools, Folder Options, File Types, scrolling down to .py,
and clicking Restore Default (which is python).

Thanks for the help all!

Reply all
Reply to author
Forward
0 new messages