Thank you all for responding to my doubt.<br><br>Yeah i tried to import it in the interactive shell of python, as parthan suggested, but it shows an error<br>"Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>
ImportError: cannot import name name_option"<br><br>But I can import 'optparse'<br><br><br>I checked my python version, its Python 2.5.1.<br><br>I have installed the django through the following steps<br><ul>
<li>downloded Django-1.0.tar.gz</li><li>tar -zxvf Django-1.0.tar.gz</li><li>cd Django-1.0</li><li>python setup.py install (as given in the INSTALL file)</li></ul>Thank You.<br><br><br><br><br><div class="gmail_quote">On Tue, Jan 27, 2009 at 6:00 AM, <span dir="ltr"><<a href="mailto:bangpypers-request@python.org">bangpypers-request@python.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send BangPypers mailing list submissions to<br>
<a href="mailto:bangpypers@python.org">bangpypers@python.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:bangpypers-request@python.org">bangpypers-request@python.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:bangpypers-owner@python.org">bangpypers-owner@python.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of BangPypers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. ImportError: cannot import name make_option (OOMMEN KM)<br>
2. Re: ImportError: cannot import name make_option (Parthan SR)<br>
3. Re: ImportError: cannot import name make_option (Senthil Kumaran)<br>
4. Re: ImportError: cannot import name make_option (Praveen Kumar)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 26 Jan 2009 11:28:31 -0500<br>
From: OOMMEN KM <<a href="mailto:oommenkm@gmail.com">oommenkm@gmail.com</a>><br>
Subject: [BangPypers] ImportError: cannot import name make_option<br>
To: <a href="mailto:bangpypers@python.org">bangpypers@python.org</a><br>
Message-ID:<br>
<<a href="mailto:7114437c0901260828h33728965tb6e7f6a43bcae9f7@mail.gmail.com">7114437c0901260828h33728965tb6e7f6a43bcae9f7@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi All,<br>
I am a beginner in Django Development.<br>
I have installed Django.<br>
<br>
As I was trying to build my first site in Django, I gave the<br>
django-admin.py command I got the following error.<br>
<br>
----------------<br>
Traceback (most recent call last):<br>
File "/usr/bin/django-admin.py", line 2, in <module><br>
from django.core import management<br>
File<br>
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line<br>
7, in <module><br>
from django.core.management.base import BaseCommand, CommandError,<br>
handle_default_options<br>
File "/usr/lib/python2.5/site-packages/django/core/management/base.py",<br>
line 3, in <module><br>
from optparse import make_option, OptionParser<br>
ImportError: cannot import name make_option<br>
-----------------<br>
<br>
Can anyone help me in solving this issue.<br>
Or Can anyone guide me in building my first site.<br>
<br>
Thanking you in advance.<br>
<br>
<br>
--<br>
-------<br>
Mr. Oommen Mathew<br>
Python Software Analyst<br>
rKc Media Group Inc.<br>
<br>
Mob - +91 9446917322<br>
----------------------<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mail.python.org/pipermail/bangpypers/attachments/20090126/b0539e73/attachment-0001.htm" target="_blank">http://mail.python.org/pipermail/bangpypers/attachments/20090126/b0539e73/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 26 Jan 2009 22:36:10 +0530<br>
From: Parthan SR <<a href="mailto:parth.technofreak@gmail.com">parth.technofreak@gmail.com</a>><br>
Subject: Re: [BangPypers] ImportError: cannot import name make_option<br>
To: Bangalore Python Users Group - India <<a href="mailto:bangpypers@python.org">bangpypers@python.org</a>><br>
Message-ID: <<a href="mailto:497DED82.8050408@gmail.com">497DED82.8050408@gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
OOMMEN KM wrote:<br>
><br>
> from optparse import make_option, OptionParser<br>
> ImportError: cannot import name make_option<br>
> -----------------<br>
><br>
> Can anyone help me in solving this issue.<br>
What version of Python are you using? As far as I can see, optparse<br>
module comes in-built with python since v2.3.<br>
Can you try `from optparse import name_option` in a python shell opened<br>
in a terminal/command promt?<br>
<br>
--<br>
---<br>
With Regards,<br>
<br>
Parthan "technofreak"<br>
<gpg> 2FF01026<br>
<blog> <a href="http://blog.technofreak.in" target="_blank">http://blog.technofreak.in</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 26 Jan 2009 23:45:24 +0530<br>
From: Senthil Kumaran <<a href="mailto:orsenthil@gmail.com">orsenthil@gmail.com</a>><br>
Subject: Re: [BangPypers] ImportError: cannot import name make_option<br>
To: Bangalore Python Users Group - India <<a href="mailto:bangpypers@python.org">bangpypers@python.org</a>><br>
Message-ID:<br>
<<a href="mailto:7c42eba10901261015p54d12fc4p2c7a5080e0ce3452@mail.gmail.com">7c42eba10901261015p54d12fc4p2c7a5080e0ce3452@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
> OOMMEN KM <<a href="mailto:oommenkm@gmail.com">oommenkm@gmail.com</a>> wrote:<br>
><br>
><br>
> As I was trying to build my first site in Django, I gave the<br>
> django-admin.py command I got the following error.<br>
><br>
> ----------------<br>
> Traceback (most recent call last):<br>
<br>
Seems to be a problem either with your installation of Django or<br>
incompatibility issue.<br>
<br>
Couple of things to do.<br>
1) Version of python: Do python -V<br>
>From your traceback it seems you are using Python 2.5. But still it is<br>
required to list the version and make sure you are using the latest.<br>
2) How are you installing django? Just mention the steps.<br>
<br>
And try Parthan SR's suggestion also.<br>
<br>
<br>
--<br>
Senthil<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 27 Jan 2009 10:28:44 +0530<br>
From: Praveen Kumar <<a href="mailto:praveen@mahiti.org">praveen@mahiti.org</a>><br>
Subject: Re: [BangPypers] ImportError: cannot import name make_option<br>
To: Bangalore Python Users Group - India <<a href="mailto:bangpypers@python.org">bangpypers@python.org</a>><br>
Message-ID:<br>
<<a href="mailto:6f7fd6e90901262058g1f5a3881ocfe1201212f761e3@mail.gmail.com">6f7fd6e90901262058g1f5a3881ocfe1201212f761e3@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi OOmen<br>
<br>
If you are really beginner of Django<br>
<br>
please go through<br>
<a href="http://www.ibm.com/developerworks/linux/library/l-django/to" target="_blank">http://www.ibm.com/developerworks/linux/library/l-django/to</a> understand<br>
the installation and configuration.<br>
<br>
you are trying to import<br>
<br>
<a href="http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/management/commands/ogrinspect.py?rev=8219&f" target="_blank">code.djangoproject.com/browser/django/trunk/django/contrib/gis/management/commands/ogrinspect.py?rev=8219&f</a><br>
<br>
On Mon, Jan 26, 2009 at 9:58 PM, OOMMEN KM <<a href="mailto:oommenkm@gmail.com">oommenkm@gmail.com</a>> wrote:<br>
<br>
> Hi All,<br>
> I am a beginner in Django Development.<br>
> I have installed Django.<br>
><br>
> As I was trying to build my first site in Django, I gave the<br>
> django-admin.py command I got the following error.<br>
><br>
> ----------------<br>
> Traceback (most recent call last):<br>
> File "/usr/bin/django-admin.py", line 2, in <module><br>
> from django.core import management<br>
> File<br>
> "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line<br>
> 7, in <module><br>
> from django.core.management.base import BaseCommand, CommandError,<br>
> handle_default_options<br>
> File "/usr/lib/python2.5/site-packages/django/core/management/base.py",<br>
> line 3, in <module><br>
> from optparse import make_option, OptionParser<br>
> ImportError: cannot import name make_option<br>
> -----------------<br>
><br>
> Can anyone help me in solving this issue.<br>
> Or Can anyone guide me in building my first site.<br>
><br>
> Thanking you in advance.<br>
><br>
><br>
> --<br>
> -------<br>
> Mr. Oommen Mathew<br>
> Python Software Analyst<br>
> rKc Media Group Inc.<br>
><br>
> Mob - +91 9446917322<br>
> ----------------------<br>
><br>
> _______________________________________________<br>
> BangPypers mailing list<br>
> <a href="mailto:BangPypers@python.org">BangPypers@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
><br>
><br>
<br>
<br>
--<br>
Praveen Kumar<br>
Software Engineer<br>
Mahiti Infotech Pvt. Ltd.<br>
# 33-34, Hennur Cross<br>
Hennur Main Road<br>
Bangalore, India - 560043<br>
Mobile: +91 9343297314<br>
+91 9739854134<br>
<a href="http://www.mahiti.org" target="_blank">http://www.mahiti.org</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mail.python.org/pipermail/bangpypers/attachments/20090127/8092fe21/attachment-0001.htm" target="_blank">http://mail.python.org/pipermail/bangpypers/attachments/20090127/8092fe21/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
BangPypers mailing list<br>
<a href="mailto:BangPypers@python.org">BangPypers@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
<br>
<br>
End of BangPypers Digest, Vol 17, Issue 31<br>
******************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>-------<br>Mr. Oommen Mathew<br>Sr. Python Software Analyst<br>rKc Media Group Inc.<br><br>Mob - +91 9446917322<br>----------------------<br>