Erormessage "unexpected keyword 'env'

Hello all,

i am new to all of this. I did try the search funktion but cant get a result fit to my problem.
Yesterday i did an update of platformio (the one it is shown up at the right corner)

I am using Windows 10 btw.

Since this i cant upload to at least my Arduino mega2560
Not even a “Blink” sketch…

Here is the errormessage i get always:

Configuring upload protocol...

*** [upload] TypeError : print_upload_protocols_info() got an unexpected keyword argument ‘env’
Traceback (most recent call last):
File “C:\Users\Sascha.platformio\packages\tool-scons\script..\engine\SCons\”, line 1054, in execute
result = self.execfunction(target=target, source=rsources, env=env)
TypeError: print_upload_protocols_info() got an unexpected keyword argument ‘env’
[ERROR] Took 1.46 seconds

compiling works great and shows up “Success”

i searching since hours for this error…but i have no idea where it comes from or how i can solve it…

May i ask for help here ?
Thank you very much

Please open PIO IDE Terminal and type pio upgrade --dev. Does it work now?

YES !!! Thank you !!!
I spend the whole day into this :frowning:
Thank you so much for your help…do you know why this was happen ?