kolinger / rd-usb

Web GUI for RuiDeng/Riden USB testers (UM34C, UM24C, UM25C, TC66C)
GNU General Public License v3.0
223 stars 29 forks source link

Version 1.7.1 does not seem to start (Failed to execute script app) #15

Closed Razor512 closed 2 years ago

Razor512 commented 2 years ago

While 1.7.0 is able to start just fine, after uninstalling it and then installing version 1.7.1, it doesn't seem to start, and instead gives the following error.

"Fatal error detected Failed to execute script app" error-on-1-7-1

Installing version 1.7.0 allows the application to start again.

kolinger commented 2 years ago

I wasn't able to reproduce this error. I tried 1.7.1 on two different machines but both works. Thus I need your help to gather more information.

Could you run debug version of 1.7.1 and see what happens - if any more detailed errors are revealed? https://github.com/kolinger/rd-usb/releases/download/untagged-ca6860d7ed510a97ad37/rd-usb-1.7.1-debug.zip Here you can download zip, extract it and run "rd-usb.exe" (it is in root directory besides many files) - this doesn't need installation - and see what happens. If same errors occurs look for "error.log" it should be created in the same directory as "rd-usb.exe". This file should describe error in more detail. Could you also try running this debug version via "cmd.exe"? Launch cmd, navigate to directory with "rd-usb.exe" and start "rd-usb.exe" via cmd. Then detailed error should be printed into cmd window.

Razor512 commented 2 years ago

The site does not seem to be allowing me to download that file, it is showing as not found even though it is listed in the releases list.

kolinger commented 2 years ago

Sorry I didn't realize how this works. This should work: https://github.com/kolinger/rd-usb/releases/download/1.0.0-alpha/rd-usb-1.7.1-debug.zip

Razor512 commented 2 years ago

The error when launched from cmd is:

Traceback (most recent call last): File "app.py", line 12, in File "lib\site-packages\webview\platforms\cef.py", line 12, in File "lib\site-packages\cefpython3__init__.py", line 63, in ImportError: DLL load failed: The specified module could not be found. [716] Failed to execute script app

kolinger commented 2 years ago

Thank you, this seems like issue with cefpython library, not sure why it works for me. I did update integration of this library. Could you try again with this version? https://github.com/kolinger/rd-usb/releases/download/1.0.0-alpha/rd-usb-1.7.1-debug2.zip

Razor512 commented 2 years ago

It shows the following error with this debug2

Traceback (most recent call last): File "app.py", line 12, in File "lib\site-packages\webview\platforms\cef.py", line 12, in File "lib\site-packages\cefpython3__init__.py", line 63, in ImportError: DLL load failed: The specified module could not be found. [8000] Failed to execute script app

just noticed the edit.

kolinger commented 2 years ago

The extra paths are just confusing. They are not in use. It's just how pyinstaller is packing python application into executable.

This is not about missing *.py files. This is issue with cefpython binary where some dependency is missing but this error doesn't say what is missing exactly. Some .dll file is missing on your system but it is present on mine. The solution is to find out what .dll file is missing and put it into rd-usb so everyone can use it and not to rely on presence in system. But first I need to know what is missing exactly.

kolinger commented 2 years ago

Seems like issue with cefpython 66.1. Previous rd-usb 1.7.0 used 66.0. Current rd-usb 1.7.1 uses 66.1. I found elsewhere where people did have exactly the same issue with 66.1. I don't have energy to debug issue with libraries for now so I will try easy workaround - downgrade to cefpython to 66.0. There is no reason to use 66.1 for now.

Can you try? Hopefully last time. https://github.com/kolinger/rd-usb/releases/download/1.0.0-alpha/rd-usb-1.7.1-debug3.zip

Razor512 commented 2 years ago

Thank you, that version is able to launch without issue.

kolinger commented 2 years ago

I thank you for cooperation. This kind of issue can be hell to debug and impossible to fix if I'm not able to reproduce the issue. Sticking to cefpython 66.0 for now.

1.7.2 has this fix included, you can find it here.