Currently, 'pip install esptool' installs 2.2.1 instead of 2.1, causing the script to fail with the following error:
pkg_resources.DistributionNotFound: The 'esptool==2.2' distribution was not found and is required by the application
Updating the script like so seems to fix the problem:
`#!C:\Python27\python.exe
EASY-INSTALL-ENTRY-SCRIPT: 'esptool==2.2.1','console_scripts','esptool.py'
requires = 'esptool==2.2.1'
import re
import sys
from pkg_resources import load_entry_point
if name == 'main':
sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('esptool==2.2.1', 'console_scripts', 'esptool.py')()
)
`
Currently, 'pip install esptool' installs 2.2.1 instead of 2.1, causing the script to fail with the following error:
pkg_resources.DistributionNotFound: The 'esptool==2.2' distribution was not found and is required by the application
Updating the script like so seems to fix the problem:
`#!C:\Python27\python.exe
EASY-INSTALL-ENTRY-SCRIPT: 'esptool==2.2.1','console_scripts','esptool.py'
requires = 'esptool==2.2.1'
import re
import sys
from pkg_resources import load_entry_point
if name == 'main':
sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('esptool==2.2.1', 'console_scripts', 'esptool.py')()
)
`