[BangPypers] BangPypers Digest, Vol 17, Issue 31

OOMMEN KM oommenkm at gmail.com
Tue Jan 27 12:25:41 CET 2009


Thank you all for responding to my doubt.

Yeah i tried to import it in the interactive shell of python, as parthan
suggested, but it shows an error
"Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name name_option"

But I can import 'optparse'


I checked my python version, its Python 2.5.1.

I have installed the django through the following steps

   - downloded   Django-1.0.tar.gz
   - tar -zxvf Django-1.0.tar.gz
   - cd Django-1.0
   - python setup.py install (as given in the INSTALL file)

Thank You.




On Tue, Jan 27, 2009 at 6:00 AM, <bangpypers-request at python.org> wrote:

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



-- 
-------
Mr. Oommen Mathew
Sr. Python Software Analyst
rKc Media Group Inc.

Mob - +91 9446917322
----------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090127/52f07dea/attachment.htm>


More information about the BangPypers mailing list