1

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...

6
  • Orange3 already has the executives posted on their website for Windows, and OSX. If you still need to do create an executive with pyinstaller, I would look to see you are not missing any hidden imports. Commented Oct 31, 2019 at 6:14
  • Here is the build bash script for Windows, and here is the build bash script for OSX. Commented Oct 31, 2019 at 6:16
  • @FelipeFaria Thanks for the feedback. I'll let you know in a bit once I have tried your suggestion, whether it is successful or not :) Commented Oct 31, 2019 at 8:17
  • @FelipeFaria I can't seem to run the bash script.. Upon clicking on it to run, as soon as the window opens, it closes. Am I doing it wrongly? Also does executing this bash script output a standalone executable version of Orange3? Thanks! Commented Oct 31, 2019 at 8:35
  • Well, you could just download the .dmg or .exe from the first link I sent, I think (and assume) that would make the most sense for you. If you are trying to make a modification and build from source, make sure you run the .sh file from Terminal. Commented Nov 1, 2019 at 2:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.