module object has no attribute 'make_option'

  • Anonymous - 2006-12-29

    I get this upon calling gourmet:
    Traceback (most recent call last):
      File "/usr/local/bin/gourmet", line 13, in ?
        from gourmet.OptionParser import *
      File "/usr/local/lib/python2.4/site-packages/gourmet/", line 10, in ?
        import gglobals
      File "/usr/local/lib/python2.4/site-packages/gourmet/", line 3, in ?
        from gdebug import debug
      File "/usr/local/lib/python2.4/site-packages/gourmet/", line 2, in ?
        from OptionParser import *
      File "/usr/local/lib/python2.4/site-packages/gourmet/", line 11, in ?
    AttributeError: 'module' object has no attribute 'make_option'

    This is with version 0.13.2 on a Suse 10.1 system running Python 2.4

    • tom

      tom - 2006-12-30

      Odd -- sounds like perhaps you have a newer or older version of optparse...

      Could you try the following and report the version info you get


      >>> import optparse
      >>> optparse.__version__

      I get 1.5a2 here.

    • Anonymous - 2006-12-30

      I get 1.5.3

      More specifically my python version is:  2.4.2

    • Anonymous - 2007-01-01

      I solved this problem by removing the make_option lines from within the initialization of optparser.  Then I switched them to "add_option" and everything went great.

      Great program, thanks.

      • tom

        tom - 2007-01-01

        Any chance you could submit a patch?


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks