Bitcoin Forum

Bitcoin => Electrum => Topic started by: MegaVlad on September 08, 2021, 09:58:49 AM



Title: Issue: Failed to execute script pyi_rth_pkgres
Post by: MegaVlad on September 08, 2021, 09:58:49 AM
Hi everyone.

I have updated Electrum to version 4.1.5 from a very old 3.x.x and now the program does not start:

Fatal error detected
Failed to execute script pyi_rth_pkgres

https://i.imgur.com/nVphIm8.jpg

P.S. Full reinstall, reboot, portable version - do not help, the same error...

Windows 7 SP1 x64


Title: Re: Issue: Failed to execute script pyi_rth_pkgres
Post by: nc50lc on September 08, 2021, 10:07:16 AM
Check if you already have this update in your Windows7 PC: KB2999226 - update-for-universal-c-runtime-in-windows (https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c).
Select the proper download for your Windows version from the list under "Method 2" (Should be: All supported x64-based versions of Windows 7).


Title: Re: Issue: Failed to execute script pyi_rth_pkgres
Post by: MegaVlad on September 08, 2021, 10:15:05 AM
KB2999226

This update already installed.


Title: Re: Issue: Failed to execute script pyi_rth_pkgres
Post by: jackg on September 08, 2021, 12:49:00 PM
Have you got the latest version of python installed. I'm not sure if it needs it but installing it might fix some system. Variables to get electrum working.

If you do I've seen this be suggested a few times:
https://stackoverflow.com/questions/37815371/pyinstaller-failed-to-execute-script-pyi-rth-pkgres-and-missing-packages#59809064
Quote

pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip


Title: Re: Issue: Failed to execute script pyi_rth_pkgres
Post by: Pmalek on September 11, 2021, 08:11:49 AM
According to a source I found, you need to have Service Pack 1 installed with your Windows 7 OS. it's also asking to have the update KB2533623 installed and vc_redist.x86.exe. If you have a genuine Windows 7 OS, you should keep it updated nevertheless. Consider upgrading to Windows 10, because Windows 7 is an outdated OS.

You can read more about it here > https://www.reddit.com/r/Electrum/comments/gqyyls/cant_open_electrum_on_windows_7_failed_to_execute/


Title: Re: Issue: Failed to execute script pyi_rth_pkgres
Post by: Husna QA on September 15, 2021, 03:53:04 AM
-snip-
I tried to install and run Electrum 4.1.5 on Windows 7 SP1 x86, but the following error message appears:

https://i.ibb.co/SKKb0b9/57939314.png

https://i.ibb.co/PQgcsBb/57939314.png

I tried updating Windows, but it still doesn't work. Then I tried to install vcredist 2015
https://www.microsoft.com/en-us/download/details.aspx?id=48145 (https://www.microsoft.com/en-us/download/details.aspx?id=48145).
Finally, Electrum could run normally. Here are the results:

https://i.ibb.co/phJddF9/59634481.png

Maybe you can try installing vcredist 2015 to solve the error on your windows too.


Title: Re: Issue: Failed to execute script pyi_rth_pkgres
Post by: Pmalek on September 15, 2021, 08:06:53 AM
Maybe you can try installing vcredist 2015 to solve the error on your windows too.
That's what I suggested that he should do in my previous post. The source I shared recommends installing that together with the KB2533623 update (it it's not already part of your system). Considering that MegaVlad hasn't been online since the day he opened this thread, he has either already found a solution to make it work, or recovered his wallet in a different software.   


Title: Re: Issue: Failed to execute script pyi_rth_pkgres
Post by: Husna QA on September 15, 2021, 10:48:02 PM
-snip-
Previously I remembered some tips in one of the old posts in the Electrum thread on the local Indonesian Board (https://bitcointalk.org/index.php?topic=3664755.0) to solve errors when using Electrum on Windows 7. However, some of the links are no longer accessible.

-snip-
1. Windows 7 Service Pack 1 (KB976932) link: http://go.microsoft.com/fwlink/?linkid=181491
2. Windows Update Agent 7.6.7600.320 link: http://download.windowsupdate.com/windowsupdate/redist/standalone/7.6.7600.320/windowsupdateagent-7.6-x86.exe
3. Update for Windows (KB2999226) link: http://www.microsoft.com/downloads/details.aspx?familyid=1a022e38-f700-4738-b047-53c69ac41fec
-snip-
I read the following article (in Indonesian) to solve the problem "The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer".
https://itkoding.com/mengatasi-api-ms-win-crt-runtime-l1-1-0-dll-is-missing/ (https://itkoding.com/mengatasi-api-ms-win-crt-runtime-l1-1-0-dll-is-missing/).

Electrum or any software that has an error when opened in Windows 7, one of the possible causes is that vcredist (vc_redist.x64.exe / vc_redist.x86.exe) has not been install properly.


Title: Re: Issue: Failed to execute script pyi_rth_pkgres
Post by: BitMaxz on September 15, 2021, 11:35:51 PM
I would like to add this incase all suggestion above doesn't work I have backup files of all vcredist this is what I installed when I have experienced some errors on using Electrum on Windows 7.
https://i.imgur.com/6xtUeOO.png

Here's the virus scan link
- https://www.virustotal.com/gui/file/219667c9bd7549f453144ef66441500de232ffd7534d9b9fa33e5f7ea83dd991

And this is the download link just uploaded recently.
- https://www.mediafire.com/file/l8rv1m68rz3rwf8/Visual-C-Runtimes-All-in-One-Oct-2018.rar/file
Then use the install_all.bat to install them all. It should fix your issue

If you don't trust my link you can download it directly on Microsoft one by one and use that as your reference.