Uploaded image for project: 'Spot (Retired)'
  1. Spot (Retired)
  2. SPOT-117

[OA] Problem writing the csv file (flow_scores.csv)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • 5.8.0-1.cdh5.8.0.p0.42

    Description

      Hello,

      I'm getting an error while I run the start_oa.py

      python2.7 start_oa.py -d 20170227 -t flow -l 1000
      

      This is the error

      2017-02-27 11:28:07,667 - OA.Flow - INFO - Reading reputation configuration file: /home/spot/spot-oa/oa/components/reputation/reputation_config.json
      2017-02-27 11:28:07,743 - OA.Flow - INFO - WARNING: IP reputation was not added. No refclient configured
      Traceback (most recent call last):
        File "start_oa.py", line 64, in <module>
          main()
        File "start_oa.py", line 22, in main
          start_oa(args)
        File "start_oa.py", line 37, in start_oa
          oa_process.start()
        File "/home/spot/spot-oa/oa/flow/flow_oa.py", line 68, in start
          self._create_flow_scores_csv()
        File "/home/spot/spot-oa/oa/flow/flow_oa.py", line 132, in _create_flow_scores_csv
          Util.create_csv_file(flow_scores_csv,self._flow_scores)
        File "/home/spot/spot-oa/oa/utils.py", line 104, in create_csv_file
          writer.writerows(content)
      _csv.Error: need to escape, but no escapechar set
      

      My conf file:

      [spot@totoro oa]$ cat /home/spot/spot-oa/oa/components/reputation/reputation_config.json
      {
          "fb":{
              "app_id" : "1460938594525217",
              "app_secret" : "6b43b621817y9aa3e40516a32293dfe3"
          }
      }
      

      Regards,
      Joaquín Silva

      P.S. I attached the scores file

      Attachments

        1. flow_results.csv.gz
          297 kB
          Joaquín Silva

        Issue Links

          Activity

            People

              ledagl Leda G. Lima
              JoaquinS Joaquín Silva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: