Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'dict' object has no attribute 'iteritems' #85

Open
ShivamPokhriyal opened this issue Nov 5, 2019 · 1 comment
Open

Comments

@ShivamPokhriyal
Copy link

ShivamPokhriyal commented Nov 5, 2019

I'm trying to delete a 1-1 chat.

Delete all messages from a direct message channel

slack-cleaner --token --message --direct sherry --user johndoe

It's giving me this error:
AttributeError: 'dict' object has no attribute 'iteritems'

Here is the full stacktrace

File "/Users/shivampokhriyal/Documents/Anaconda/anaconda3/bin/slack-cleaner", line 10, in <module>
    sys.exit(main())
  File "/Users/shivampokhriyal/Documents/Anaconda/anaconda3/lib/python3.7/site-packages/slack_cleaner/cli.py", line 337, in main
    message_cleaner()
  File "/Users/shivampokhriyal/Documents/Anaconda/anaconda3/lib/python3.7/site-packages/slack_cleaner/cli.py", line 286, in message_cleaner
    _channel_id = get_direct_id_by_name(args.direct_name)
  File "/Users/shivampokhriyal/Documents/Anaconda/anaconda3/lib/python3.7/site-packages/slack_cleaner/cli.py", line 244, in get_direct_id_by_name
    _user_id = get_user_id_by_name(name)
  File "/Users/shivampokhriyal/Documents/Anaconda/anaconda3/lib/python3.7/site-packages/slack_cleaner/cli.py", line 224, in get_user_id_by_name
    for k, v in user_dict.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
@ShivamPokhriyal ShivamPokhriyal changed the title How to get the token? AttributeError: 'dict' object has no attribute 'iteritems' Nov 5, 2019
@sgratzl
Copy link

sgratzl commented Nov 13, 2019

can you try https://github.com/sgratzl/slack-cleaner it should be compatible with python 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants