idf.py: Import from pyserial after packages have been checked

Closes https://github.com/espressif/esp-idf/issues/2573
This commit is contained in:
Roland Dobai
2018-10-25 08:16:30 +02:00
parent 7c29a39d6f
commit f59358dad3
2 changed files with 7 additions and 3 deletions

View File

@@ -68,7 +68,9 @@ if __name__ == "__main__":
print('The following Python requirements are not satisfied:')
for requirement in not_satisfied:
print(requirement)
print('Please run "{} -m pip install --user -r {}" for resolving the issue.'.format(sys.executable, args.requirements))
print('Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required '
'packages. Alternatively, you can run "{} -m pip install --user -r {}" for resolving the issue.'
''.format(sys.executable, args.requirements))
sys.exit(1)
print('Python requirements from {} are satisfied.'.format(args.requirements))