cedws / discord-delete

Tool to delete Discord message history
GNU General Public License v3.0
125 stars 18 forks source link

Supposed Syntax Error On Line 71 When Running Partial #15

Closed axzolon closed 5 years ago

axzolon commented 5 years ago

When attempting to run the code in Powershell on Windows, I get a Syntax Error:

python :   File "C:\Users\[user]\Downloads\discord-delete-master\discord_delete.py", line 71
At line:1 char:1
+ python C:\Users\[user]\Downloads\discord-delete-master\discord_delete. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (  File "C:\User...te.py", line 71:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

    async def __aenter__(self):
            ^
SyntaxError: invalid syntax
cedws commented 5 years ago

What is the output of python --version? I have a feeling you're running Python 2. You'll need Python 3.

axzolon commented 5 years ago

So I've switched to Python 3.7, however now I'm getting the following error

C:\Users\[user]\Downloads\discord-delete-master\discord_delete.py partial
Traceback (most recent call last):
  File "C:\Users\[user]\Downloads\discord-delete-master\discord_delete.py", line 11, in <module>
    from aiohttp import ClientSession
ModuleNotFoundError: No module named 'aiohttp'
cedws commented 5 years ago

You need to install the required Python modules (pip install -r requirements.txt). Please follow one of the wiki guides.

axzolon commented 5 years ago

After much work, I finally got it to work. Thank you very much.