0

I get a syntax error when I try to import discord, everything works in vscode but not in cmd

C:\Users\Tirterra\Documents\Python\pythonProject\Event bot>main.py Traceback (most recent call last): File "C:\Users\Tirterra\Documents\Python\pythonProject\Event bot\main.py", line 4, in import discord File "C:\Users\Tirterra\AppData\Local\Programs\Python\Python38\lib\site-packages\discord_init_.py", line 25, in from .client import Client File "C:\Users\Tirterra\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\client.py", line 959 """ ^ SyntaxError: (unicode error) \N escapes not supported (can't load unicodedata module)

and my code is just

import discord
Tirterra
  • 579
  • 2
  • 4
  • 14

1 Answers1

0

I first oppened the discord module and changed the code where the error occured, there was an issue with the '\N' not being in a substring,but I also got a new error :/(that had nothing to do with discord module).The _socket module was nowhere to be found so just reinstall python.

Tirterra
  • 579
  • 2
  • 4
  • 14