Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax errors
#2
I saw your screenshot, you are using esptool -h in Python interpreter which won't work, for using it in python use import esptool. This esptool -h command is for cmd.
Output:
C:\WINDOWS\system32>esptool -h usage: esptool [-h] [--chip {auto,esp8266,esp32}] [--port PORT] [--baud BAUD] [--before {default_reset,no_reset}] [--after {hard_reset,soft_reset,no_reset}] [--no-stub] {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,version} ... esptool.py v2.0.1 - ESP8266 ROM Bootloader Utility positional arguments: {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,version} Run esptool {command} -h for additional help load_ram Download an image to RAM and execute dump_mem Dump arbitrary memory to disk read_mem Read arbitrary memory location write_mem Read-modify-write to arbitrary memory location write_flash Write a binary blob to flash run Run application code in flash image_info Dump headers from an application image make_image Create an application image from binary files elf2image Create an application image from ELF file read_mac Read MAC address from OTP ROM chip_id Read Chip ID from OTP ROM flash_id Read SPI flash manufacturer and device ID read_flash_status Read SPI flash status register write_flash_status Write SPI flash status register read_flash Read SPI flash content verify_flash Verify a binary blob against flash erase_flash Perform Chip Erase on SPI flash erase_region Erase a region of the flash version Print esptool version optional arguments: -h, --help show this help message and exit --chip {auto,esp8266,esp32}, -c {auto,esp8266,esp32} Target chip type --port PORT, -p PORT Serial port device --baud BAUD, -b BAUD Serial port baud rate used when flashing/reading --before {default_reset,no_reset} What to do before connecting to the chip --after {hard_reset,soft_reset,no_reset}, -a {hard_reset,soft_reset,no_reset} What to do after esptool.py is finished --no-stub Disable launching the flasher stub, only talk to ROM bootloader. Some features will not be available.
Reply


Messages In This Thread
Syntax errors - by jon65 - Aug-20-2017, 05:19 AM
RE: Syntax errors - by hbknjr - Aug-20-2017, 06:02 AM
RE: Syntax errors - by jon65 - Aug-20-2017, 06:37 AM
RE: Syntax errors - by hbknjr - Aug-20-2017, 06:47 AM
RE: Syntax errors - by jon65 - Aug-20-2017, 07:18 AM
RE: Syntax errors - by hbknjr - Aug-20-2017, 07:42 AM
RE: Syntax errors - by jon65 - Aug-20-2017, 07:54 AM
RE: Syntax errors - by hbknjr - Aug-20-2017, 08:15 AM
RE: Syntax errors - by jon65 - Aug-20-2017, 09:42 AM
RE: Syntax errors - by hbknjr - Aug-20-2017, 10:14 AM
RE: Syntax errors - by snippsat - Aug-20-2017, 10:33 AM
RE: Syntax errors - by jon65 - Aug-20-2017, 11:06 AM
RE: Syntax errors - by snippsat - Aug-20-2017, 11:41 AM
RE: Syntax errors - by jon65 - Aug-20-2017, 11:59 AM
RE: Syntax errors - by snippsat - Aug-20-2017, 12:04 PM
RE: Syntax errors - by jon65 - Aug-20-2017, 12:14 PM
RE: Syntax errors - by snippsat - Aug-20-2017, 12:22 PM
RE: Syntax errors - by sparkz_alot - Aug-20-2017, 12:35 PM
RE: Syntax errors - by snippsat - Aug-20-2017, 12:38 PM
RE: Syntax errors - by sparkz_alot - Aug-20-2017, 12:42 PM
RE: Syntax errors - by jon65 - Aug-20-2017, 12:49 PM
RE: Syntax errors - by snippsat - Aug-20-2017, 12:57 PM
RE: Syntax errors - by jon65 - Aug-20-2017, 01:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Syntax errors: Struggling to setup enviroment and load packages AH56 5 2,923 Jun-30-2021, 01:01 PM
Last Post: AH56
  Pip Syntax Errors in CMD: Windows 10 and Python 3.8.1 jamesphopper 2 4,586 Feb-08-2020, 07:21 PM
Last Post: jamesphopper
  Mysterious syntax errors... help? friendlymegalomaniac 3 3,084 Apr-26-2018, 09:22 PM
Last Post: micseydel
  random syntax errors s4lty_b0i 3 3,280 Nov-26-2017, 03:45 PM
Last Post: heiner55
  y syntax errors? Saxycool12345 3 3,657 Sep-16-2017, 01:24 PM
Last Post: sparkz_alot
  Decorator toy code throws syntax errors kevinxhi 3 3,712 Sep-04-2017, 03:01 AM
Last Post: kevinxhi

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020