PyInstaller Orange3 __main__ Python script with call to script in different folder not working

148 views Asked by At

I am trying to run orange (forked as orange3-master and downloaded from https://github.com/biolab/orange3) with the following script run.py:

if __name__ == '__main__':
    import os
    os.chdir('orange3-master/Orange/canvas')
    os.system('python __main__.py')

where in Anaconda prompt, running python run.py allows me to open up orange.

Now, as using PyInstaller to make orange into a standalone program seems quite an impossible feat for me at the moment, I tried the following:

  1. Run pyinstaller run.py.
  2. In dist/run/ (the output folder of pyinstaller), copy over orange3-master into the same directory as run.exe, then run run.exe.

However, it does not seem to work as running run.exe, the window closes in a split second, and I am unable to observe any error messages.

Some insights and recommendations will be of great help...

0

There are 0 answers