PlatformIO Community

PlatformIO Installation completely broken (Home not Loading no reinstallation possible)


I just started today a new project. I wanted to install some Libraries. But PlatformIO home doesn’t load. Got the following Screen:

web.Server Traceback (most recent call last):

exceptions.AttributeError: ‘int’ object has no attribute ‘splitlines’

C:\Users\Timmo.platformio\packages\contrib-pysite\twisted\web\ in process

198 self._encoder = encoder

199 self.render(resrc)

200 except:

C:\Users\Timmo.platformio\packages\contrib-pysite\twisted\web\ in render

258 try:

259 body = resrc.render(self)

260 except UnsupportedMethod as e:

C:\Users\Timmo.platformio\packages\contrib-pysite\twisted\web\ in render

249 raise UnsupportedMethod(allowedMethods)

250 return m(request)

251 ``

<string>:448 in render_GET

447 ``

448 ``

449 ``

C:\Users\Timmo.platformio\packages\contrib-pysite\twisted\web\ in setHeader

1270 """

1271 self.responseHeaders.setRawHeaders(name, [value])

1272 ``

C:\Users\Timmo.platformio\packages\contrib-pysite\twisted\web\ in setRawHeaders

219 encodedValues = [_sanitizeLinearWhitespace(v)

220 for v in self._encodeValues(values)]

221 ``

C:\Users\Timmo.platformio\packages\contrib-pysite\twisted\web\ in _sanitizeLinearWhitespace

39 """

40 return b' '.join(headerComponent.splitlines())

41 ``

exceptions.AttributeError: ‘int’ object has no attribute ‘splitlines’

I already deleted contrib-pysite and contrib-piohome. But no change.
Then I deleted .platformio completely but after that the installation failed:

Error: Could not create PIO Core Virtual Environment. Please create it manually -> Error: If you use Antivirus, it can block PlatformIO Installer. Try to disable it for a while. Virtualenv Create: Traceback (most recent call last): File “C:\Users\Timmo.platformio.cache\tmp-22988dLKyfzdEmlur\virtualenv-16.1.0\src\”, line 2462, in main() File “C:\Users\Timmo.platformio.cache\tmp-22988dLKyfzdEmlur\virtualenv-16.1.0\src\”, line 762, in main symlink=options.symlink, File “C:\Users\Timmo.platformio.cache\tmp-22988dLKyfzdEmlur\virtualenv-16.1.0\src\”, line 995, in create_environment home_dir, lib_dir, inc_dir, bin_dir = path_locations(home_dir) File “C:\Users\Timmo.platformio.cache\tmp-22988dLKyfzdEmlur\virtualenv-16.1.0\src\”, line 1037, in path_locations mkdir(home_dir) File "C:\Users\Timmo.platformio.cache\tmp-22988dLKyfzdEmlur\virtualenv-16.1.0\src…

I also disabled the Windows Defender, no change. So I’m not able to work anymore. What can I do?



Doesn’t work either. I start VSCode, got error because of PlatformIO. Then I open a new terminal. Enter “pio update” and got error message

PS C:\Users\Timmo\Documents\PlatformIO\Projects\Weather_Sensor> pio update
pio : Die Benennung “pio” wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren
Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und
wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1

  • pio update
  •   + CategoryInfo          : ObjectNotFound: (pio:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException


So I now uninstalled everything (VSCode+PIO etc). Deleted all folders (platformio, vscode…). Downloaded latest version of VSCode and installed. Still the same. And now?


So it seems, like I’m unable to delete the penv folder. Even not as administrator. Not via Explorer and Powershell or cmd (as admin). Any ideas?


So somehow I could delete the platformio folder. Reinstalled everything. Seems to work so far. But I got the annoying blurry fonts back. There is now admin installation, Nvidia Experience Overlay doesn’t pop up. So not GPU acceleration is used :frowning:

Sorry I’m pretty annoyed now


You can remove this %HOME_DIR%/.platformio/penv folder and create it manually without Administrative permissions. See


If you get stuck on this again (being unable to delete), and VSCode is closed… check the task manager to see if there are any platformio or python tasks running, as it might still be trying to installed platformio in the background. You can safely kill those tasks off since you’re about to delete the folder and reinstall! :smiley:

Make sure you’re not running VSCode as administrator once you’ve cleaned things out, and if needed, create the base folders as a user to make sure the permissions are right.