Project

General

Profile

Bug #2524

Task #2518: Python 3 support

Unicode-objects must be encoded before hashing

Added by Luke Murphey over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/27/2019
Due date:
% Done:

100%


Description

Traceback (most recent call last):
  File "/Users/lmurphey/Splunk/py3/etc/apps/google_drive/bin/modular_input.zip/modular_input/modular_input_base_class.py", line 1092, in execute
    self.do_run(in_stream, log_exception_and_continue=True)
  File "/Users/lmurphey/Splunk/py3/etc/apps/google_drive/bin/modular_input.zip/modular_input/modular_input_base_class.py", line 973, in do_run
    self.run(stanza, cleaned_params, input_config)
  File "/Users/lmurphey/Splunk/py3/etc/apps/google_drive/bin/google_spreadsheet.py", line 316, in run
    date_worksheet_last_updated = self.get_date_last_imported(input_config.checkpoint_dir, stanza)
  File "/Users/lmurphey/Splunk/py3/etc/apps/google_drive/bin/google_spreadsheet.py", line 278, in get_date_last_imported
    data = self.get_checkpoint_data(checkpoint_dir, stanza)
  File "/Users/lmurphey/Splunk/py3/etc/apps/google_drive/bin/modular_input.zip/modular_input/modular_input_base_class.py", line 839, in get_checkpoint_data
    file_pointer = open(cls.get_file_path(checkpoint_dir, stanza))
  File "/Users/lmurphey/Splunk/py3/etc/apps/google_drive/bin/modular_input.zip/modular_input/modular_input_base_class.py", line 823, in get_file_path
    return os.path.join(checkpoint_dir, hashlib.sha224(stanza).hexdigest() + ".json")
TypeError: Unicode-objects must be encoded before hashing

History

#1 Updated by Luke Murphey over 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF