Error running the exe file in Windows "Failed to execute script pyi_rth_pkgres"

Ernest Bonat, Ph.D. ernest.bonat at gmail.com
Sun Aug 7 11:03:13 EDT 2016


 Hi,

 I have created a simple Python program including the following packages:

import numpy as np
 import matplotlib.pyplot as plt
 import pandas as pd

 if __name__ == '__main__':
    print("Hi!")

 I have created the installation package using PyInstaller with the
following command line:

 pyinstaller --onedir --name=appname --windowed "C:\appname.py"

 The required folders (build and dist) and the spec file are created
properly with no errors. When I run the appname.exe file I got the error
"Failed to execute script pyi_rth_pkgres".

 I'm using the following now:

   - Anaconda3 4.1.1.64-bit
   - Python 3.5.2
   - PyInstaller 3.2
   - Windows 10 64-bit

 Any help is very appreciated. Feel free to contact me at any time you need.

 Thank you,

 Ernest Bonat, Ph.D.
 Senior Software Engineer
 Senior Data Scientist



More information about the Python-list mailing list