Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

list index out of range

Help
2005-08-15
2013-06-04
  • Hi,

    This weekend I receive this error could you tell me what going wrong.

    Best Regards.

     
    • Andrew Veitch
      Andrew Veitch
      2005-08-15

      Hi

      Could you please supply the full error traceback. This should be in the event.log file or alternatively you can log into the Zope Management Interface, go into error_log and you should be able to see the error.

      Also what version of MailManager are you using?

      Andrew

       
    • Here you have the error_log:

      Time 2005/08/15 14:30:34.828 GMT-5
      User Name (User Id) aaguirre (aaguirre)
      Request URL http://applinkii:8080/mailmanager/getMail
      Exception Type IndexError
      Exception Value list index out of range

      Traceback (innermost last):

      Module ZPublisher.Publish, line 101, in publish
      Module ZPublisher.mapply, line 88, in mapply
      Module ZPublisher.Publish, line 39, in call_object
      Module Products.MailManager.MailManager, line 429, in getMail
      Module C:\Archivos de programa\MailManager\Instance\Products\MailManager\Extensions\AccountPluggableBrain.py, line 238, in getMail
      Module C:\Archivos de programa\MailManager\Instance\Products\MailManager\Extensions\AccountPluggableBrain.py, line 267, in _getPOP3
      Module C:\Archivos de programa\MailManager\Instance\Products\MailManager\Extensions\AccountPluggableBrain.py, line 55, in process
      Module Shared.DC.ZRDB.Results, line 103, in __getitem__
      IndexError: list index out of range

      If you need more info, aske me please.

      Best Regards
      Arturo

       
    • I'm using MailManager 2.0 Beta

       
    • Andrew,

      It's very important for us to know, how can we solve the problem.

      Regards.
      Arturo

       
    • Kevin Campbell
      Kevin Campbell
      2005-08-16

      Arturo,

      You should upgrade to MailManager-2.0 (final), which was released a
      short while ago. There was a bug fixed in this release regarding
      reopening existing tickets, which caused the same behaviour you are
      experiencing. You should not need to make any other changes other than
      upgrading the product, and this should clear the getMail error.

      Let me know if this solves the problem.

      Regards,
      Kevin

      --
      Kevin Campbell
      Software Engineer
      Logical Progression Ltd
      GPG Key: F480EC23

       
    • Kevin,

      I've installed the final version, now the application is working properly, but I have a simple question.

      The readme file says that you need to migrate the information, but I received an error message, this could show future problems with database ?

      Tanks, and Best Regards.
      Arturo

       
    • Hello,

      I have the same error again, could you tell me what's going wrong.

      I'm using Mail Manager 2.0 Final

      This is the error log.

      Time 2006/05/10 15:40:52.171 GMT-5
      User Name (User Id) aaguirre (aaguirre)
      Request URL http://applinkii:8080/mailmanager/getMail
      Exception Type IndexError
      Exception Value list index out of range

      Traceback (innermost last):

      Module ZPublisher.Publish, line 101, in publish
      Module ZPublisher.mapply, line 88, in mapply
      Module ZPublisher.Publish, line 39, in call_object
      Module Products.MailManager.MailManager, line 429, in getMail
      Module C:\Archivos de programa\MailManager\Instance\Products\MailManager\Extensions\AccountPluggableBrain.py, line 238, in getMail
      Module C:\Archivos de programa\MailManager\Instance\Products\MailManager\Extensions\AccountPluggableBrain.py, line 267, in _getPOP3
      Module C:\Archivos de programa\MailManager\Instance\Products\MailManager\Extensions\AccountPluggableBrain.py, line 55, in process
      Module Shared.DC.ZRDB.Results, line 103, in __getitem__
      IndexError: list index out of range

      I'm using

       
      • Kevin Campbell
        Kevin Campbell
        2006-05-11

        Version 2.0 final is very old now. This problem should have been fixed in one of the later 2.0 series releases. Please upgrade to 2.0.8 or 2.0.9 if it is released, and see if that resolves the problem.

        Regards,
        Kevin

         
        • Kevin,

          Could you helpme to upgrade Mail MAnager 2.0 (Final) to latest version.

          I Install Mail Manager 2.0 (Windows Instaler msi).
          I have Windows 2000 Server

          ¿could You tell me the stpes that I need to instal Mail Manager 2.09, please ?

          Regards.
          Arturo Aguirre

           
          • Kevin,

            I upgrade to MailManager 2.0.3 version, I the problem was resolved, but now I receive another error:

            Error Type: Key Error
            Error Value: 'Full Status'

            Could you help me with this, please.

            Regards
            Arturo Aguirre

             
            • Kevin Campbell
              Kevin Campbell
              2006-05-25

              Version 2.0.3 is a relatively old release, the stable series is now up to 2.0.9, and soon will be 2.0.10. Please try the 2.0.9 release and see if the problem is resolved.

              Regards,
              Kevin

               
    • Kevin,

      I've been instaled MailMAnager 2.0.9 but when I try to migrate I receive this information First.

      "Your dataset is currently at internal revision 10 and the latest internal revision is 15 You are advised to run the migration in order to bring your MailManager instance up to date. Some extra information may be required depending on what version of the dataset you are upgrading from/to."

      Then, I Migrate but this happend

      "Time 2006/05/25 11:13:02.343 GMT-5
      User Name (User Id) admin (admin)
      Request URL http://applinkii:8080/mailmanager/migrate
      Exception Type KeyError
      Exception Value 'sql_integer'

      Traceback (innermost last):

      Module ZPublisher.Publish, line 101, in publish
      Module ZPublisher.mapply, line 88, in mapply
      Module ZPublisher.Publish, line 39, in call_object
      Module Products.MailManager.migration, line 395, in migrate
      Module Shared.DC.ZRDB.DA, line 441, in __call__
      <FSZSQLMethod instance at 023790E0>
      Module DocumentTemplate.DT_String, line 474, in __call__
      KeyError: 'sql_integer' "

      I install and review al 3rdParty and now is installed, please Could You help me, I realy don't know what's happening.

      Note: I was 2.0.0 rc3 and as you suggest me I update to 2.0.9.

      Best regards
      Arturo Aguirre

       
      • Kevin Campbell
        Kevin Campbell
        2006-05-25

        This is a bug in the migration code. Could you try the following   

        Change

            security.declarePrivate('configurePostgres')
            def configurePostgres(self):
                self.sql_delimiter = ';'

        To

            security.declarePublic('configurePostgres')
            def configurePostgres(self):
                " Configure the database for postgres "
                self.sql_delimiter = ';'

        in MailManager.py

        Then restart zope, and access the url

        http://yourdomain.com/mailmanager/configurePostgres

        in your web browser. Then try migration again. This should hopefully resolve the problem. Please let me know how you get on as I'll need to raise this as a bug on the release.

        Regards,
        Kevin

         
        • Kevin,

          I made the changes but I'm still receiving the same error.

          I can migrate succesfuly, but this is the error when I try to open any received ticket.

          Time 2006/05/25 17:27:54.234 GMT-5
          User Name (User Id) aaguirre (aaguirre)
          Request URL http://applinkii:8080/mailmanager/ticket/018796/index_html
          Exception Type KeyError
          Exception Value 'full_status'

          Traceback (innermost last):

          Module ZPublisher.Publish, line 101, in publish
          Module ZPublisher.mapply, line 88, in mapply
          Module ZPublisher.Publish, line 39, in call_object
          Module C:\Archivos de programa\MailManager\Instance\Products\MailManager\Extensions\TicketPluggableBrain.py, line 77, in index_html
          Module Shared.DC.Scripts.Bindings, line 306, in __call__
          Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
          Module Products.PageTemplates.PageTemplateFile, line 106, in _exec
          Module Products.PageTemplates.PageTemplate, line 96, in pt_render
          <PageTemplateFile at /mailmanager/ticket_index_html used for /mailmanager>
          Module TAL.TALInterpreter, line 190, in __call__
          Module TAL.TALInterpreter, line 234, in interpret
          Module TAL.TALInterpreter, line 407, in do_optTag_tal
          Module TAL.TALInterpreter, line 389, in no_tag
          Module TAL.TALInterpreter, line 234, in interpret
          Module TAL.TALInterpreter, line 671, in do_useMacro
          Module TAL.TALInterpreter, line 234, in interpret
          Module TAL.TALInterpreter, line 702, in do_defineSlot
          Module TAL.TALInterpreter, line 234, in interpret
          Module TAL.TALInterpreter, line 694, in do_defineSlot
          Module TAL.TALInterpreter, line 234, in interpret
          Module TAL.TALInterpreter, line 637, in do_condition
          Module TAL.TALInterpreter, line 234, in interpret
          Module TAL.TALInterpreter, line 263, in do_startEndTag
          Module TAL.TALInterpreter, line 291, in do_startTag
          Module TAL.TALInterpreter, line 357, in attrAction_tal
          Module Products.PageTemplates.TALES, line 227, in evaluateText
          Module Products.PageTemplates.TALES, line 221, in evaluate
          URL: ticket_index_html
          Line 189, Column 12
          Expression: string:'images/status_${here/full_status}.gif'
          Names:
          {'container': <MailManager instance at 02324A70>,
          'context': <r instance at 020902D0>,
          'default': <Products.PageTemplates.TALES.Default instance at 0x012D40F8>,
          'here': <r instance at 020902D0>,
          'loop': <SafeMapping instance at 02090DE0>,
          'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x012D9490>,
          'nothing': None,
          'options': {'args': (<r instance at 020902D0>,
                                <HTTPRequest, URL=http://applinkii:8080/mailmanager/ticket/018796/index_html>)},
          'repeat': <SafeMapping instance at 02090DE0>,
          'request': <HTTPRequest, URL=http://applinkii:8080/mailmanager/ticket/018796/index_html>,
          'root': <Application instance at 02214A40>,
          'template': <PageTemplateFile at /mailmanager/ticket_index_html used for /mailmanager>,
          'traverse_subpath': [],
          'user': aaguirre}Module Products.PageTemplates.Expressions, line 211, in __call__
          Module Products.PageTemplates.Expressions, line 172, in __call__
          Module Products.PageTemplates.Expressions, line 160, in _eval
          Module Products.PageTemplates.Expressions, line 116, in _eval
          __traceback_info__: here
          Module Products.PageTemplates.Expressions, line 296, in restrictedTraverse
          __traceback_info__: {'path': ['full_status'], 'TraversalRequestNameStack': []}
          Module C:\Archivos de programa\MailManager\Instance\Products\MailManager\Extensions\TicketPluggableBrain.py, line 912, in __bobo_traverse__
          KeyError: 'full_status'

          Best Regards
          Arturo Aguirre

           
          • Kevin Campbell
            Kevin Campbell
            2006-05-26

            Can you please confirm which version you are getting this error using?

             
    • Kevin,

      The issue is in Ticket_index_html in 189 line, at the moment I delete the lines and the program work.

      Could you tell me what's going wrong.

      Regards.
      Arturo Aguirre

       
    • Kevin,

      MailManager Version is 2.0.9. instaled in our server. (I've could migrated databases succesfuly).

      The error is: (As mentioned in last mail)

      Exception Type KeyError 
      Exception Value 'full_status'

      This error happend in ./www/ticket_index_html.py
      when the program try to get the icon image for status. Those are in lines 186 to 189.

      I hope this help you.

      Regards.
      Arturo Aguirre