Print

Print


Hi experts,

Just set up FSL on Windows subsystem for Linux (all freshly downloaded/installed today).

To be specific this is Ubuntu 18.04.

Been having a couple library teething problems but generally getting things working. FSL seems to be running in a general sense (fslmaths / bet etc. give me the help text, I can load the overall fsl menu GUI successfully and so on) but I have hit a wall getting fsleyes to open.

Trying to open it gets me this error:

Could not import wx
Traceback (most recent call last):
  File "fsl/utils/platform.py", line 159, in __init__
  File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
  File "wx/__init__.py", line 17, in <module>
  File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
  File "wx/core.py", line 12, in <module>
  File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 714, in load_module
ImportError: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "entrypt.py", line 146, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked

Now I've googled this and found some things about fsleyes needing wxpython. Following guidance on fslwiki, I have run

pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04 wxpython

and then...

pip install fsleyes

These each appeared to complete successfully (though the second one failed initially, but then I seemed to get it working by including a "sudo" at the start).

I've also run 

sudo apt-get install freeglut3 libsdl1.2debian

Which similarly installed without any problem.

I can't see anything else in the wiki (or through google) that I might need to do, but I still get the same error about wx not being imported. Any advice would be appreciated.

Thank you,
Iain

########################################################################

To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1