itead / Sonoff_Devices_DIY_Tools

BSD 3-Clause "New" or "Revised" License
548 stars 168 forks source link

"Failed to execute script tool_01DIY85" - windows 10 #38

Open GoBooth opened 4 years ago

GoBooth commented 4 years ago

I'm not able to launch the "tool_01DIY85(3.3.0).exe" tool.

I've tried on 2 computers, both of them were fresh installs of windows 10 enterprise build 1903.

I don't know what to do. What are the prereq for this app to open??

ilkkaolavas commented 4 years ago

Same error with executable. Windows 64 bit. Python 7.4 32bit.

Now I tried python version also but broblems:

G:\tools\sonoff\py\Sonoff_Devices_DIY_Tools\code>python tool_01DIY85.py File "tool_01DIY85.py", line 433 self.send_result[result_list[0]]=eval(result_list[1]) ^ TabError: inconsistent use of tabs and spaces in indentation

G:\tools\sonoff\py\Sonoff_Devices_DIY_Tools\code>python --version Python 3.7.4

alexbk66 commented 4 years ago

What I don't get - Itead publish the source code with syntax errors, and tell the users to follow their source code - but not their documentation?

mithoog commented 4 years ago

Same error on Windows 7

ilkkaolavas commented 4 years ago

I solved the problem by trying to run Python version. I had to install first QT and Python 3.7.4 + all required libraries. After that I almost managed to run but python version did not work. I tried again executable and hoped that some of the libraries or QT installation helps executable also to run and voilà, kuinkas ollakaan, IT WORKS! I ALSO had to disable ethernet adapter help executable to find my device.

Window 10 64bit. Thanks for making this. Still easier with this tool than soldering 15 sonoff mini's :)

GoBooth commented 4 years ago

What is QT??

On Thu, Aug 29, 2019 at 12:12 AM ilkkaolavas notifications@github.com wrote:

I solved the problem by trying to run Python version. I had to install first QT and Python 3.7.4 + all required libraries. After that I almost managed to run but python version did not work. I tried again executable and hoped that some of the libraries or QT installation helps executable also to run and voilà, kuinkas ollakaan, IT WORKS! I ALSO had to disable ethernet adapter help executable to find my device.

Window 10 64bit. Thanks for making this. Still easier with this tool than soldering 15 sonoff mini's :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/itead/Sonoff_Devices_DIY_Tools/issues/38?email_source=notifications&email_token=AGBAM345YAVHRXJBS7SY36TQG5EEFA5CNFSM4IPWYQV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NFKJQ#issuecomment-526013734, or mute the thread https://github.com/notifications/unsubscribe-auth/AGBAM34O2J43OIOESLQZG6DQG5EEFANCNFSM4IPWYQVQ .

--

Daniel Goneau Owner GoBooth - Photo Booth Rental p: 613-663-3776 w: www.gobooth.ca

. https://www.facebook.com/gobooth.ca. https://twitter.com/GoBoothCA. https://www.instagram.com/gobooth.ca/?hl=en.

Proud Winner of the Platinum Award - Best Photo Booth Experience

alexbk66 commented 4 years ago

What is QT??

Library for creating user interface https://www.qt.io/qt-for-python

GoBooth commented 4 years ago

installing the open source tools "https://www.qt.io/download" Fix my issue (I also installed python)

cbkcbkcbk commented 4 years ago

I had the same problem on a $100 stick computer running windows 10. I installed python and "open source tools" from the qt.io website. This solved the problem for me as well.

joecas65 commented 4 years ago

Could someone post the exact link to download qt open souce tool please ?

oywino commented 4 years ago

I had to revert back to version 1809 of Windows 10 to solve this issue. There is obviously a compatibility issue with version 1903

GoBooth commented 4 years ago

Could someone post the exact link to download qt open souce tool please ?

https://www.qt.io/download-thank-you?hsLang=en

alexbk66 commented 4 years ago

I had to revert back to version 1809 of Windows 10 to solve this issue. There is obviously a compatibility issue with version 1903

I don't think it's related to Windows version, may be firewall settings, etc.

oywino commented 4 years ago

Well, then it would be very helpful if someone could find out exactly which Firewall setting does the trick. I tried to run the Tool on two different clean installed Windows 10 1903 Dell computers, and it failed on both with the same error message. Then I tried it on two older machines (which had been running for a while with loads of various software installed), both also running Windows 10 1903, and on these two machines it startet without the error, but flashing failed, stuck at zero %. It wasn't until I tried on the "older" Windows 10 1809 version , that everything worked. (all machines connected to the same SonoffDiy Access point (AP) at 2.4GHz - a Samsung S6 with hotspot and LTE)

alexbk66 commented 4 years ago

it failed on both with the same error message

What was the error?

oywino commented 4 years ago

Failed to execute script tool_01DIY85

it failed on both with the same error message

What was the error?

Failed to execute script tool_01DIY85

alexbk66 commented 4 years ago

And no other additional info? Just this message?

oywino commented 4 years ago

Yes, that was it. No more.

alexbk66 commented 4 years ago

I started writing my own .NET command line app (so no Python or QT are required) , don't have time or incentive to finish it.

Windows often finds Sonoff app suspicious and blocks it. I woned why?

soif commented 4 years ago

I've just released EspBuddy v2.0. It should work on OSX, Linux and Windows.

This is a command line tool written in php that only require python 3.x for the discovery step (it uses the Itead own mdns.py script). Once the IP address and ID is discovered, it no longer require python, just php. You can then totally control the device API, including OTA flashing.

I've made minimal tests on Windows, but if someone want to try it out, it might do the job easily.

HTH

jpatje commented 4 years ago

I had the same problem with the latest Windows 10, version 1909. Tried 1803 and it's working!!

Edit: Only when I do a clean install on a virtual machine. Same install on a laptop and it fails again.....?

poseidogithub commented 3 years ago

I do confirm that tool_01DIY85(3.3.0) will run in windows 10 1941

and instaling phyton and the QT thing... oh god the QT installation thing, you have to agree to a thousand things and register a thousand details...

alexbk66 commented 3 years ago

But I don't think you need the "Tool" anymore?

ozmatox commented 3 years ago

Hi, I had the same problem, I was installing Python, QT and other C + and every time I had this problem - suddenly it dawned on me to change the connection properties on my laptop's WiFi adapter to DHCP :) and everything started working fine!

WIFI -DHCP !!!!!!

flop32 commented 3 years ago

Hi, My PC was also with fixed IP, turn on DHCP on my NIC solve the issue.