Skip to content

esptool.py-script.py throws an error when latest esptool (2.2.1) is installed #1

Description

@aelsayad

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')()
)
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions