Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aelsayad opened this issue Feb 12, 2018 · 1 comment

Comments

@aelsayad
Copy link

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

@chilipeppr
Copy link
Owner

chilipeppr commented Feb 12, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants