Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Can't find espota.py (Read 14540 times)
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Can't find espota.py
Oct 15th, 2016 at 3:03pm
Print Post  
Hi, I'm trying to get ota updates working on an esp8266.
When I run the compiler I get an error that the espota.py file can't be found.

This is correct as the path is pointing to the wrong directory.
The file is in ...\esp8266\hardware\esp8266\2.3.0\tools and NOT ....\esp8266\23653B~1.0/tools where the compiler is trying to find it.

How can I correct this? I've been searching for the setting but can't find anything.

I've attached the compiler output.

Thanks.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #1 - Oct 15th, 2016 at 3:14pm
Print Post  
Hi,

Some tool chains are missing quotes around file names so visual micro uses the short 8.3 files names which probably means that 2.3.0 is 23653B~1.0 

Please switch on vmicro>compiler>verbose and "show build properties"

Then try the upload and post the output as a .txt file

Thanks
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find espota.py
Reply #2 - Oct 15th, 2016 at 3:23pm
Print Post  
Here you are, it's weird as it hasn't expanded the name for the .py file

By the way, 1.6.7 of Arduino and the latest vm build.
I ran the Arduino gui and rescanned in vm before posting.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #3 - Oct 15th, 2016 at 3:34pm
Print Post  
I suspect the .py file is correct that the problem is you have entered an ip address manually without installing or using the recommended Apple Bonjour system

Using Bonjour automatically discovers important information presented by the board. In this case which port to use for tcp. Notice the unresolved {network.port} in your output.

If you are a paid user you have the option to enter IP addresses manually and also to supplement the build properties using a local board.txt. Use the board.txt to provide details such as network.port=8266

Read more at the end of this document http://www.visualmicro.com/page/esp8266.aspx


Code
Select All
Uploading 'SolarWaterControllerESP12' to 'Generic ESP8266 Module' using '192.168.0.110'
Uploader started for board Generic ESP8266 Module
Upload method will be: bootloader
Uploading via Bootloader
Port Properties (network)
python.exe .0/tools/espota.py -i "192.168.0.110" -p "{network.port}" "--auth=" -f C:\Users\Nigel\AppData\Local\Temp\VMICRO~1\SOLARW~1\ESP826~1/SOLARW~1.BIN
The system cannot find the file specified 



note

"192.168.0.110" -p "{network.port}" "--auth="
« Last Edit: Oct 15th, 2016 at 3:35pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find espota.py
Reply #4 - Oct 15th, 2016 at 3:50pm
Print Post  
Hi, yes I am a paid subscriber. 

I didn't want to install Bonjour (yet another thing on my poor machine taking resources...)
Yes, I added the IP manually but I haven't created a Board.txt file.

I now have so get:
Port Properties (network)
python.exe .0/tools/espota.py -i "192.168.0.110" -p "8266" "--auth=" -f C:\Users\Nigel\AppData\Local\Temp\VMICRO~1\SOLARW~1\ESP826~1/SOLARW~1.BIN
The system cannot find the file specified


So, what would I need in there to set the correct path for the .py file?

Thanks
« Last Edit: Oct 15th, 2016 at 3:53pm by Acuario »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #5 - Oct 15th, 2016 at 6:08pm
Print Post  
Something confusing here. 

In your first post you said the compiler path was wrong but in your last post it is correct?

1) Please confirm which of these files exists?


.0/tools/espota.py

C:\Users\Nigel\AppData\Local\Temp\VMICRO~1\SOLARW~1\ESP826~1/SOLARW~1.BIN

2) Also confirm which version of Visual Studio you are using.

3) Confirm if you are using IP address upload in the Arduino IDE or COM port? If you don't have Apple Bonjour installed then surely you have it set to use the COM port which doesn't use Python.exe. So it Python installed?

Thanks
« Last Edit: Oct 15th, 2016 at 6:10pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find espota.py
Reply #6 - Oct 16th, 2016 at 5:59am
Print Post  
Hi,

The path to the compiled bin file is correct, what is wrong is the path to the espota.py file.

1) 
.0/tools/espota.py does not exist.

My espota.py file is in the directory ools\espota.py

The file C:\Users\Nigel\AppData\Local\Temp\VMICRO~1\SOLARW~1\ESP826~1/SOLARW~1.BIN does exist.

2) I am using Visual Studio professional 2015 update 3

3) I am attempting to use the IP address, using the COM port works perfectly. Yes Python is installed, V2.7.11
  
Back to top
 
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find espota.py
Reply #7 - Oct 16th, 2016 at 6:21am
Print Post  
Hi,
I found the problem.
Although the path to the espota.py didn't exist when looking for it using explorer (I guess it is somehow coded, the path  does not exist) that wasn't the problem.

The problem was that although I had python installed it wasn't included in the path so couldn't be found. 
I added it in, rebooted and now it is found and works.

So now it looks like ota is working. The question is, does it also update the SPIFFS (Server data files)?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #8 - Oct 16th, 2016 at 6:56am
Print Post  
Yes thought it was python config issue 😀

See "vmicro>publish server data files" for spiffs
« Last Edit: Oct 16th, 2016 at 1:52pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find espota.py
Reply #9 - Oct 16th, 2016 at 2:05pm
Print Post  
Hi,
yes uploading the spiffs files works except when I have a network password set, it then fails. The normal firmware upload works fine with or without password set, the password is enclosed in the python command string, but is not present in the spiffs upload command:

No password:
SPIFFS Uploading Image...
[SPIFFS] upload : in
[SPIFFS] IP     : 192.168.0.181
"python.exe" tools\espota.py" -i 192.168.0.181 -s -f bin"
   Uploading
SPIFFS Image Uploaded

With password set:
SPIFFS Uploading Image...
[SPIFFS] upload : in
[SPIFFS] IP     : 192.168.0.181
"python.exe" tools\espota.py" -i 192.168.0.181 -s -f bin"
   Authenticating...FAIL
16*:4: Authentication Failed
SPIFFS Upload failed!

I see in the espota.py there is a [-a password] option
« Last Edit: Oct 16th, 2016 at 2:15pm by Acuario »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #10 - Oct 16th, 2016 at 2:26pm
Print Post  
Thanks very much, I have added for the next release which might be later today.
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find espota.py
Reply #11 - Oct 18th, 2016 at 5:25pm
Print Post  
Hi,
while you are adding the authorization, I noticed a couple of other things:
1. It ignores the ip port set in the boards.txt file and defaults to the default 8266
2. I'm getting messages:
Missing board property: network.password
Missing board property: network.auth_upload

even though these properties are set in the boards.txt file
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #12 - Oct 23rd, 2016 at 4:40am
Print Post  
Thanks for the SPIFFS update

Please try the new version 1610.22 from the gallery.
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find espota.py
Reply #13 - Oct 23rd, 2016 at 8:09am
Print Post  
Hi,
just tried it and it's the same Sad

Interestingly I checked to confirm my version from Tools/Options/Visual Micro and it reports Version 1.1609.4 Version Minor 1023

So I double checked in Tools/Extensions and Updates and there it reports Version 1610.22.0
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #14 - Oct 23rd, 2016 at 2:00pm
Print Post  
I just pushed 1610.23 to the gallery. Please try it.

I forgot to add the new properties for spiffs to the config file so the were not passed to the uploader.

The port I have guess is supposed to be -p

  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Can't find espota.py
Reply #15 - Oct 23rd, 2016 at 2:35pm
Print Post  
Hi,
yes now it's working however I had to run the download from the vm download page as vs didn't see an upgraded version.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #16 - Oct 23rd, 2016 at 3:41pm
Print Post  
Great thanks. 

Sometimes the gallery takes a little time to push to the IDE's but in the background its always from the same gallery location:- 
https://visualstudiogallery.msdn.microsoft.com/069a905d-387d-4415-bc37-665a5ac9c...

« Last Edit: Oct 23rd, 2016 at 3:44pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find espota.py
Reply #17 - Nov 15th, 2016 at 2:58pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint