Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax errors
#11
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.
Reply
#12
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
Reply
#13
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.
Reply
#14
Ok i get this https://drive.google.com/open?id=0B1Dk0B...1JtTF9qN2c
Reply
#15
Try esptool.py -h as i posted over.
Reply
#16
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!

User has been warned for this post. Reason: posting screenshots instead of code
Reply
#17
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
Reply
#18
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
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#19
(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.
Reply
#20
My apologies.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Syntax errors: Struggling to setup enviroment and load packages AH56 5 2,794 Jun-30-2021, 01:01 PM
Last Post: AH56
  Pip Syntax Errors in CMD: Windows 10 and Python 3.8.1 jamesphopper 2 4,461 Feb-08-2020, 07:21 PM
Last Post: jamesphopper
  Mysterious syntax errors... help? friendlymegalomaniac 3 3,006 Apr-26-2018, 09:22 PM
Last Post: micseydel
  random syntax errors s4lty_b0i 3 3,208 Nov-26-2017, 03:45 PM
Last Post: heiner55
  y syntax errors? Saxycool12345 3 3,592 Sep-16-2017, 01:24 PM
Last Post: sparkz_alot
  Decorator toy code throws syntax errors kevinxhi 3 3,578 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