# Fatal error Failed to execute script runanki

**URL:** <https://forums.ankiweb.net/t/fatal-error-failed-to-execute-script-runanki/999>\
**Category:** Help\
**Created:** [July 14, 2020, 5:05pm UTC](https://forums.ankiweb.net/t/fatal-error-failed-to-execute-script-runanki/999 "2020-07-14T17:05:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbolan](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lbolan](https://forums.ankiweb.net/u/lbolan)\
**Post date:** [July 14, 2020, 5:05pm UTC](https://forums.ankiweb.net/t/fatal-error-failed-to-execute-script-runanki/999/1 "2020-07-14T17:05:39Z")

</div>

I click on my anki 2.1 desktop shortcut, it shows me this error message without opening the app. I have a lot of cards in my decks.!

Annotation 2020-07-14 090158 runanki|390x214](upload://dPoFJr9qgr8c4gGw4K28Crt0D5Q.jpeg)

I looked up the old instructions, and used the command line as prompted, and this is what came up:  
Microsoft Windows [Version 10.0.18362.900]  
© 2019 Microsoft Corporation. All rights reserved.

C:\Users\Logan Bolan\>cd\program files\anki

C:\Program Files\Anki\>anki-console  
[336] PyInstaller Bootloader 3.x  
[336] LOADER: executable is C:\Program Files\Anki\anki-console.exe  
[336] LOADER: homepath is C:\Program Files\Anki  
[336] LOADER: _MEIPASS2 is NULL  
[336] LOADER: archivename is C:\Program Files\Anki\anki-console.exe  
[336] LOADER: C:\Program Files\Anki\anki-console.exe contains a digital signature  
[336] LOADER: No need to extract files to run; setting extractionpath to homepath  
[336] LOADER: SetDllDirectory(C:\Program Files\Anki)  
[336] LOADER: Already in the child - running user’s code.  
[336] LOADER: Python library: C:\Program Files\Anki\python36.dll  
[336] LOADER: Loaded functions from Python library.  
[336] LOADER: Manipulating environment (sys.path, sys.prefix)  
[336] LOADER: sys.prefix is C:\Program Files\Anki  
[336] LOADER: Pre-init sys.path is C:\Program Files\Anki\base\_library.zip;C:\Program Files\Anki  
[336] LOADER: Setting runtime options  
[336] LOADER: Initializing python  
[336] LOADER: Overriding Python’s sys.path  
[336] LOADER: Post-init sys.path is C:\Program Files\Anki\base\_library.zip;C:\Program Files\Anki  
[336] LOADER: Setting sys.argv  
[336] LOADER: setting sys.MEIPASS  
[336] LOADER: importing modules from CArchive  
[336] LOADER: extracted struct  
[336] LOADER: callfunction returned…  
[336] LOADER: extracted pyimod01\_os\_path  
[336] LOADER: callfunction returned…  
[336] LOADER: extracted pyimod02\_archive  
[336] LOADER: callfunction returned…  
[336] LOADER: extracted pyimod03\_importers  
[336] LOADER: callfunction returned…  
[336] LOADER: Installing PYZ archive with Python modules.  
[336] LOADER: PYZ archive: PYZ-00.pyz  
[336] LOADER: Running pyiboot01\_bootstrap.py  
[336] LOADER: Running pyi\_rth\_win32comgenpy.py  
[336] LOADER: Running pyi\_rth\_qt5webengine.py  
[336] LOADER: Running pyi\_rth\_qt5.py  
[336] LOADER: Running pyi\_rth\_multiprocessing.py  
[336] LOADER: Running pyi\_rth\_pkgres.py  
[336] LOADER: Running runanki.py  
Traceback (most recent call last):  
File “runanki”, line 3, in   
File “c:\users\dae\desktop\py512\lib\site-packages\PyInstaller\loader\pyimod03\_importers.py”, line 627, in exec\_module  
File "aqt\_init.py", line 166, in   
File "aqt\_init_.py", line 173, in AnkiApp  
File “getpass.py”, line 168, in getuser  
ModuleNotFoundError: No module named ‘pwd’  
[336] Failed to execute script runanki  
[336] LOADER: OK.  
[336] LOADER: Cleaning up Python interpreter.

C:\Program Files\Anki\>

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 14, 2020, 11:50pm UTC](https://forums.ankiweb.net/t/fatal-error-failed-to-execute-script-runanki/999/2 "2020-07-14T23:50:43Z")

</div>

Most people that report this issue find that installing all pending Windows updates and restarting the computer twice fixes the problem.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 5:40am UTC](https://forums.ankiweb.net/t/fatal-error-failed-to-execute-script-runanki/999/3 "2023-05-01T05:40:47Z")

</div>

Closed on May 1, 2023, 5:40am UTC


