Skip to content

first warn > warning. then. labelIds. what can I do ? #2

@DNNhost

Description

@DNNhost

(gmail_analyzer) user@macHD gmail_analyzer % python analyzer.py

  • Fetching messages page 2092
  • Fetching messages meta data /Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data | | 250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data | | 500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▏ | 750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▏ | 1000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▏ | 1250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▎ | 1500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▎ | 1750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▎ | 2000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▍ | 2250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▍ | 2500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▍ | 2750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▌ | 3000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▌ | 3250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▌ | 3500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▋ | 3750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▋ | 4000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▋ | 4250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▊ | 4500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▊ | 4750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▊ | 5000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▉ | 5250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▉ | 5500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |▉ | 5750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█ | 6000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█ | 6250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█ | 6500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█ | 6750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█ | 7000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█ | 7250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▏ | 7500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▏ | 7750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▎ | 8000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▎ | 8250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▎ | 8500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▍ | 8750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▍ | 9000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▍ | 9250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▌ | 9500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▌ | 9750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▌ | 10000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▋ | 10250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▋ | 10500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▋ | 10750/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▊ | 11000/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▊ | 11250/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  • Fetching messages meta data |█▊ | 11500/209220/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py:1116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
    Traceback (most recent call last):
    File "analyzer.py", line 39, in
    Metrics(args).start()
    File "/Users/user/Documents/git/gmail_analyzer/src/metrics.py", line 233, in start
    self.processor.get_metadata(messages)
    File "/Users/user/Documents/git/gmail_analyzer/src/processor.py", line 122, in get_metadata
    batch.execute()
    File "/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
    return wrapped(*args, **kwargs)
    File "/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py", line 1493, in execute
    callback(request_id, response, exception)
    File "/Users/user/Documents/git/gmail_analyzer/src/processor.py", line 79, in process_message
    "labels": response["labelIds"],
    KeyError: 'labelIds'

////////////
Changed the string in
File "/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py", line 1108,
LOGGER.warn( to LOGGER.warning(
////////////

(gmail_analyzer) user@macHD gmail_analyzer % python analyzer.py --verbose

  • Fetching messages page 2092
  • Fetching messages meta data |█▊ | 11500/209220Traceback (most recent call last):
    File "analyzer.py", line 39, in
    Metrics(args).start()
    File "/Users/user/Documents/git/gmail_analyzer/src/metrics.py", line 233, in start
    self.processor.get_metadata(messages)
    File "/Users/user/Documents/git/gmail_analyzer/src/processor.py", line 122, in get_metadata
    batch.execute()
    File "/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
    return wrapped(*args, **kwargs)
    File "/Users/user/.local/share/virtualenvs/gmail_analyzer-SbFqPbob/lib/python3.7/site-packages/googleapiclient/http.py", line 1493, in execute
    callback(request_id, response, exception)
    File "/Users/user/Documents/git/gmail_analyzer/src/processor.py", line 79, in process_message
    "labels": response["labelIds"],
    KeyError: 'labelIds'
    (gmail_analyzer) user@macHD gmail_analyzer %

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions