I Don't Understand What "ModuleNotFound: No module named 'encodings'" Means

My team is using PROS for programming. And I found that whenever I attempted to upload the code or run the code on the robot, I got this in the output:

Python path configuration:
  PYTHONHOME = 'c:\Users\andre\AppData\Roaming\Code\User
\globalStorage\sigbots.pros\install\pros-cli-windows'
  PYTHONPATH = (not set)
  program name = 'c:\Users\andre\AppData\Roaming\Code\User\globalStorage\sigbots.pros\install\pros-cli-win
dows\pros.exe'
  isolated = 0
  environment = 0
  user site = 0
  import site = 0
  sys._base_executable = 'c:\\Users\\andre\\AppData\\Roaming\\Code\\User\\globalStorage\\sigbots.pros\\install\\pros-cli-windows\\pros.exe'
  sys.base_prefix = ''
  sys.base_exec_prefix = ''
  sys.platlibdir = 'lib'
  sys.executable = 'c:\\Users\\andre\\AppData\\Roaming\\Code\\User\\globalStorage\\sigbots.pros\\install\\pros-cli-windows\\pros.exe'
  sys.prefix = ''
  sys.exec_prefix = ''
  sys.path = [
    'c:\\Users\\andre\\AppData\\Roaming\\Code\\User\\globalStorage\\sigbots.pros\\install\\pros-cli-windows\\base_library.zip',
    'c:\\Users\\andre\\AppData\\Roaming\\Code\\User\\globalStorage\\sigbots.pros\\install\\pros-cli-windows\\lib-dynload',
    'c:\\Users\\andre\\AppData\\Roaming\\Code\\User\\globalStorage\\sigbots.pros\\install\\pros-cli-windows',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Is anyone able to help define the error? If so, is there a solution to this error?

Updating to the most recent version of the pros extension in vscode should fix the problem

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.