Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-3816

Daily internal report generator script throwing TypeError

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Reporting
    • Fix Version/s: Reporting
    • Component/s: None
    • Labels:
      None
    • Environment:

      Aml-ops-monman2

      Description

      Daily internal report script throwing TypeError

      [amlops@aml-ops-monman2 daily_internal_reporting]$ python AMLGenerateDailyInternalReportSheetsData.py -d 2015-11-23
      REPORTS FOR: YYYY-mm-dd
      Using the following directory as output location: /tmp/raw_reseller_reports/

      Generating reports for resellers for the date 2015-11-24.
      Traceback (most recent call last):
      File "AMLGenerateDailyInternalReportSheetsData.py", line 280, in <module>
      main(sys.argv)
      File "AMLGenerateDailyInternalReportSheetsData.py", line 262, in main
      my_sql_connection = SQL_CONNECTION()
      File "AMLGenerateDailyInternalReportSheetsData.py", line 61, in _init_
      self.cursor = self.cnx.cursor(dictionary=True)
      TypeError: cursor() got an unexpected keyword argument 'dictionary'

      And i see the date i am passing is for 2015-11-23 and report says its running for 2015-11-24.

      I tried with other options as well but no luck

      [amlops@aml-ops-monman2 daily_internal_reporting]$ python AMLGenerateDailyInternalReportSheetsData.py -d 2015-11-23 -s AMLGenerateDailyInternalReportSheetsData.conf -o /tmp/
      REPORTS FOR: YYYY-mm-dd
      Using the following directory as output location: /tmp/raw_reseller_reports/

      Generating reports for resellers for the date 2015-11-24.
      Traceback (most recent call last):
      File "AMLGenerateDailyInternalReportSheetsData.py", line 280, in <module>
      main(sys.argv)
      File "AMLGenerateDailyInternalReportSheetsData.py", line 262, in main
      my_sql_connection = SQL_CONNECTION()
      File "AMLGenerateDailyInternalReportSheetsData.py", line 61, in _init_
      self.cursor = self.cnx.cursor(dictionary=True)
      TypeError: cursor() got an unexpected keyword argument 'dictionary'

        Attachments

          Activity

            People

            • Assignee:
              jared.patton Jared Patton [X] (Inactive)
              Reporter:
              anil.kumar Anil Kumar Halmadgi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: