PROBLEM with MOD_PYTHON

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dan84

    #1

    PROBLEM with MOD_PYTHON

    I don't understand this error , in the (Apache) errorlog I read this
    message :

    [Sat Oct 28 14:04:03 2006] [error] make_obcallback : could not import
    mod_python.apac he.\n
    [Sat Oct 28 14:04:03 2006] [error] make_obcallback : Python path being
    used "['C:\\\\Python24 \\\\python24.zi p', '.\\\\DLLs', '.\\\\lib',
    '.\\\\lib\\\\pl at-win', '.\\\\lib\\\\li b-tk',
    'C:\\\\Programm i\\\\Apache Group\\\\Apache 2\\\\bin']".
    [Sat Oct 28 14:04:03 2006] [error] python_handler: no interpreter
    callback found.
    [Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
    Can't get/create interpreter.

    I have Apache/2.0.59 (Win32) mod_python/3.2.10 Python/2.4.3
    I have read all the manuals, but I don't understand where I am wrong.

    thanks so much
    Marco.

  • Chetan

    #2
    Re: PROBLEM with MOD_PYTHON

    "dan84" <marko_m@hotmai l.itwrites:
    I don't understand this error , in the (Apache) errorlog I read this
    message :
    >
    [Sat Oct 28 14:04:03 2006] [error] make_obcallback : could not import
    mod_python.apac he.\n
    [Sat Oct 28 14:04:03 2006] [error] make_obcallback : Python path being
    used "['C:\\\\Python24 \\\\python24.zi p', '.\\\\DLLs', '.\\\\lib',
    '.\\\\lib\\\\pl at-win', '.\\\\lib\\\\li b-tk',
    'C:\\\\Programm i\\\\Apache Group\\\\Apache 2\\\\bin']".
    [Sat Oct 28 14:04:03 2006] [error] python_handler: no interpreter
    callback found.
    [Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
    Can't get/create interpreter.
    >
    I have Apache/2.0.59 (Win32) mod_python/3.2.10 Python/2.4.3
    I have read all the manuals, but I don't understand where I am wrong.
    >
    thanks so much
    Marco.
    Even if there is nothing Apache specific, doesn't it look odd that the
    path has 4 backslashes? Even accounting for half of those being added at the
    time of printing, it would appear that Apache is trying to use the path that
    contains two backslashes as path separator but there needs to be only one.

    Chetan

    Comment

    • J. Clifford Dyer

      #3
      Re: PROBLEM with MOD_PYTHON

      dan84 wrote:
      I don't understand this error , in the (Apache) errorlog I read this
      message :
      >
      [Sat Oct 28 14:04:03 2006] [error] make_obcallback : could not import
      mod_python.apac he.\n
      [Sat Oct 28 14:04:03 2006] [error] make_obcallback : Python path being
      used "['C:\\\\Python24 \\\\python24.zi p', '.\\\\DLLs', '.\\\\lib',
      '.\\\\lib\\\\pl at-win', '.\\\\lib\\\\li b-tk',
      'C:\\\\Programm i\\\\Apache Group\\\\Apache 2\\\\bin']".
      The four backslashes look okay to me, since there are "s outside the
      list, viz:
      >>mylist = [ r'C:\Python24' ]
      >>mylist
      ['C:\\Python24']
      >>repr(mylist )
      "['C:\\\\Python24 ']"


      Back to your question: Where is mod_python located? Is it anywhere in
      this path? Go to each directory/zip file, and see if you find
      mod_python. If so, is your base directory where you think it is? (use
      os.getcwd() to find out). If mod_python is still not in there, where is
      it? Now add THAT directory to your Python path.

      Cheers,
      Cliff

      Comment

      • skip@pobox.com

        #4
        Re: PROBLEM with MOD_PYTHON


        danI don't understand this error , in the (Apache) errorlog I read
        danthis message :

        dan[Sat Oct 28 14:04:03 2006] [error] make_obcallback : could not import
        danmod_python.a pache.\n
        dan[Sat Oct 28 14:04:03 2006] [error] make_obcallback : Python path being
        danused "['C:\\\\Python24 \\\\python24.zi p', '.\\\\DLLs', '.\\\\lib',
        dan'.\\\\lib\\\ \plat-win', '.\\\\lib\\\\li b-tk',
        dan'C:\\\\Progr ammi\\\\Apache Group\\\\Apache 2\\\\bin']".
        dan[Sat Oct 28 14:04:03 2006] [error] python_handler: no interpreter
        dancallback found.
        dan[Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
        danCan't get/create interpreter.

        Just a wild ass guess, but maybe Apache can't find the necessary python dll
        to load?

        Skip

        Comment

        • grahamd@dscpl.com.au

          #5
          Re: PROBLEM with MOD_PYTHON

          dan84 wrote:
          I don't understand this error , in the (Apache) errorlog I read this
          message :
          >
          [Sat Oct 28 14:04:03 2006] [error] make_obcallback : could not import
          mod_python.apac he.\n
          [Sat Oct 28 14:04:03 2006] [error] make_obcallback : Python path being
          used "['C:\\\\Python24 \\\\python24.zi p', '.\\\\DLLs', '.\\\\lib',
          '.\\\\lib\\\\pl at-win', '.\\\\lib\\\\li b-tk',
          'C:\\\\Programm i\\\\Apache Group\\\\Apache 2\\\\bin']".
          [Sat Oct 28 14:04:03 2006] [error] python_handler: no interpreter
          callback found.
          [Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
          Can't get/create interpreter.
          >
          I have Apache/2.0.59 (Win32) mod_python/3.2.10 Python/2.4.3
          I have read all the manuals, but I don't understand where I am wrong.
          >
          thanks so much
          Marco.
          Read:




          You may have to fiddle your Windows registry to add site-packages
          directory.

          BTW, there is a mailing list specifically for mod_python. You might be
          better off asking questions directly there, as we have seen most
          problems. You can also search the mailing list archives from the
          mod_python site.

          BTW, the quadruple backslashes is indeed because of the use of repr()
          when doing the error dump.

          Graham

          Comment

          • Steve Holden

            #6
            Re: PROBLEM with MOD_PYTHON

            grahamd@dscpl.c om.au wrote:
            [...]
            BTW, there is a mailing list specifically for mod_python. You might be
            better off asking questions directly there, as we have seen most
            problems. You can also search the mailing list archives from the
            mod_python site.
            >
            BTW, the quadruple backslashes is indeed because of the use of repr()
            when doing the error dump.
            For gmane users the list is also available as newsgroup

            gmane.comp.pyth on.mod_python

            regards
            Steve
            --
            Steve Holden +44 150 684 7255 +1 800 494 3119
            Holden Web LLC/Ltd http://www.holdenweb.com
            Skype: holdenweb http://holdenweb.blogspot.com
            Recent Ramblings http://del.icio.us/steve.holden

            Comment

            Working...