OpenBB icon indicating copy to clipboard operation
OpenBB copied to clipboard

[Critical Bug] Installers - All Installers: Failed to execute script 'terminal' due to unhandled exception!

Open deeleeramone opened this issue 2 years ago • 1 comments

Reports of installers failing to launch, across all platforms, and the error is the same. This is an issue with the installers only, cloning repo and installing the old-fashioned way works just fine. Users are currently being advised to install via the Git Clone, Conda and Poetry method.

Traceback (most recent call last):
  File "terminal.py", line 3, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
  File "openbb_terminal/terminal_controller.py", line 27, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
  File "openbb_terminal/terminal_helper.py", line 16, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
  File "matplotlib/init.py", line 109, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
  File "matplotlib/rcsetup.py", line 27, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
  File "matplotlib/colors.py", line 51, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
  File "PIL/Image.py", line 103, in <module>
ImportError: dlopen(/Applications/OpenBB Terminal/.OpenBB/PIL/_imaging.cpython-39-darwin.so, 2): Library not loaded: @loader_path/liblzma.5.dylib
  Referenced from: /Applications/OpenBB Terminal/.OpenBB/libtiff.6.dylib
  Reason: Incompatible library version: libtiff.6.dylib requires version 10.0.0 or later, but liblzma.5.dylib provides version 8.0.0
[33102] Failed to execute script 'terminal' due to unhandled exception!

deeleeramone avatar Feb 05 '23 02:02 deeleeramone

has it been resolved yet? I am getting it on MacOS Catalina (Python 3.9)

kadnan avatar Feb 06 '23 17:02 kadnan

Best bet right now is to install via cloning the GitHub repo.

deeleeramone avatar Feb 06 '23 18:02 deeleeramone

@kadnan are you on an M1 or an intel mac machine ?

jmaslek avatar Feb 06 '23 19:02 jmaslek

@jmaslek Intel Mac

kadnan avatar Feb 06 '23 19:02 kadnan

So if you are feeling adventurous, we are testing our build process.

You can try downloading our latest dev version here (download the artifact and then extract the dmg from it): https://github.com/OpenBB-finance/OpenBBTerminal/actions/runs/4106730075

Make sure to delete the OpenBB Terminal folder in your applications first!

jmaslek avatar Feb 06 '23 19:02 jmaslek

Screenshot 2023-02-07 at 12 14 00 PM @jmaslek

kadnan avatar Feb 07 '23 07:02 kadnan

Do we see this on later OSes or only Catalina?

piiq avatar Feb 07 '23 14:02 piiq

It was confirmed that this issue appears only on macOS Catalina that reached EOL in October 2022. Folks who see this are advised to either upgrade the OS or use the pip installable or source code versions that still work on older machines

piiq avatar Feb 09 '23 22:02 piiq

This is not just MacOS Catalina, there have been reports from both newer Intel and M1 builds.

MacBook Pro (Intel i7) macOS 11.7.1

deeleeramone avatar Feb 10 '23 02:02 deeleeramone

Any reference of a similar issue that I can find online are pretty old. The latest one is from 2021 which is 2 years ago. We can not replicate the issue on machines with the latest macOS. This is an outlier behaviour (on the user machine side). maybe the user has a specific rationale to use Catalina or Bug Sur in 2023 but that rationale is what makes it an outlier.

As a potential workaround that you can try testing on your old mac is what stackoverflow suggests brew install xz(the xz package has the liblzma.5.dylib)

piiq avatar Feb 10 '23 10:02 piiq

@kadnan Hey ! We identified the issue here - Can you please follow these steps


1 - Show hidden files - 
 Command + Shift + . (period)

Then go to Applications folder > OpenBB Terminal > .OpenBB

Find the file "liblzma.5.dylib" and remove it.

Relaunch the terminal  

andrewkenreich avatar May 04 '23 16:05 andrewkenreich

Closing because we have this documented in the FAQ.

deeleeramone avatar Nov 07 '23 16:11 deeleeramone