kfei / slack-cleaner

:speech_balloon: Bulk delete messages and files on Slack
MIT License
1.24k stars 144 forks source link

Syntax error when using the docker image #84

Closed pdMa2s closed 4 years ago

pdMa2s commented 4 years ago

This was my command: $ docker run --rm kfei/slack-cleaner slack-cleaner --help And this was the resulting output: import: unable to open X server ' @ error/import.c/ImportImageCommand/364. import: unable to open X server ' @ error/import.c/ImportImageCommand/364. /usr/local/bin/slack-cleaner: line 7: from: command not found /usr/local/bin/slack-cleaner: slack-cleaner: line 10: syntax error near unexpected token (' /usr/local/bin/slack-cleaner: slack-cleaner: line 10: sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])'

sgratzl commented 4 years ago

can you try the docker image of my fork: docker pull sgratzl/slack-cleaner

pdMa2s commented 4 years ago

Hi @sgratzl , thank you for your reply. $ docker run --rm sgratzl/slack-cleaner slack-cleaner --help seems to generate a similar error:

/usr/local/bin/slack-cleaner: line 3: import: command not found /usr/local/bin/slack-cleaner: line 4: import: command not found /usr/local/bin/slack-cleaner: line 6: from: command not found /usr/local/bin/slack-cleaner: slack-cleaner: line 9: syntax error near unexpected token (' /usr/local/bin/slack-cleaner: slack-cleaner: line 9: sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])'

If it helps, I am using Docker 19.03.1-ce.

sgratzl commented 4 years ago

I was just checking it, can you please try:

docker run --rm sgratzl/slack-cleaner -c "slack-cleaner --help"

or

docker run --rm -it sgratzl/slack-cleaner
slack-cleaner --help
pdMa2s commented 4 years ago

Both commands yielded the correct output. Thank you