Upload to ESP32 Error

Good time of a day to everyone !Could somebody help me to resolved that trouble. In device manager on to my pc COM4 is CP210x USBto UART even I trying to upload example project arduino-blink , i see that error:

Building in release mode
Building .pio\build\esp32dev\firmware.bin
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 4.7% (used 15348 bytes from 327680 bytes)
Flash: [== ] 16.1% (used 210929 bytes from 1310720 bytes)
Traceback (most recent call last):
File "C:\Users\vikto.platformio\packages\tool-esptoolpy\esptool.py", line 39, in
if "serialization" in serial.**doc** and "deserialization" in serial.**doc**:
NameError: name 'serial' is not defined
*** [.pio\build\esp32dev\firmware.bin] Error 1
================================================================== [FAILED] Took 4.77 seconds ==================================================================
The terminal process "C:\Users\vikto.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

That is… weird. A Python error in esptool.

Please try the following:

  1. Remove the folder C:\Users\vikto\.platformio\packages\tool-esptoolpy\ fully and re-upload.
  2. If that does not help, open a PlatformIO CLI and execute pio upgrade --dev and pio platform update. Close and re-open VSCode. Try to reupload the project.

Many thanks bro… ! I done it like as you have proposed the problem has been resolved !