Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

235 views
Skip to first unread message

Ernest Bonat, Ph.D.

unread,
Aug 7, 2016, 11:04:20 AM8/7/16
to
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

Ernest Bonat, Ph.D.

unread,
Aug 10, 2016, 10:12:11 AM8/10/16
to
Hi,

I have fixed this problem by following the steps:

1. Uninstall the PyInstaller downloaded from http://www.pyinstaller.org/
pip install pyinstaller

2. Install the PyInstaller from the GitHub developer repository
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

Still not clear to me why the main site http://www.pyinstaller.org/ does
not have the latest release?

Thanks

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

On Sun, Aug 7, 2016 at 8:03 AM, Ernest Bonat, Ph.D. <ernest...@gmail.com>
wrote:
0 new messages