Python Forum

Full Version: Syntax errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
The problem that image show is that you start Python interactive shell,
and then try to use there.
esptool is a command line too,so you should never start Python interactive shell.
You see in post over that @hbknjr is using it from command line C:\WINDOWS\system32>esptool -h

If you look in Scripts folder you see esptool.py.exe,this is what been used.
They made it a exe so it can be used from command line and not interactive shell.
I have two part installation 3.6 and pip usage,that you also can look at part-1, part-2.
I cant find esptool.py.exe in the scripts folder here is a screenshot
https://lh6.googleusercontent.com/PFzC_X...0-h1070-rw

thanks i will try this next, but first should there be a esptool.py.exe in the scripts folder? I cant see one in mine https://drive.google.com/open?id=0B1Dk0B...1h0VnlDbk0
It's there don't you see it?
esptool.py Applications(that means exe)
So file name is esptool.py.exe
You start it from command line bye using esptool.py -h.
Try esptool.py -h as i posted over.
hi still no luck with esptool -h but esptool.py -h gives me this https://drive.google.com/open?id=0B1Dk0B...XNDdmd5UUU

not sure if I am getting out of the mud or in deeper!
It's working for you now.
What you get using -h is help usage.
Look at usage on GitHub.

So example Read internal chip id:
esptool.py chip_id
You have the correct display. esptool.py -h will display the (h)elp doc, which it is doing here. To run it, you need to use the form esptool.py <arguments> . The arguments are listed in the help doc and online here: esptool arguments
(Aug-20-2017, 12:32 PM)sparkz_alot Wrote: [ -> ]The arguments are listed in the help doc and online here: esptool arguments
You are linking to wrong esptool @sparkz_alot.
There are several,what he is using is what i link to in my post.
My apologies.
Pages: 1 2 3