FSLeyes (pronounced fossilise) is the new FSL Image Viewer. The available documentation and public releases on PyPi have a lot of depreciated stuff that makes it hard to install.
Install the above packages by running the following command :
sudo apt install libwebkit2gtk-4.0-dev libjpeg-dev libtiff-dev libgtk2.0-dev libsdl1.2-dev freeglut3 freeglut3-dev libnotify-dev libgstreamerd-3-dev
Although the documentation mentions that fsleyes supports Python 2.7, 3.5, 3.6. I found it using a mix of depreciated and recent updates as dependencies -- breaking the installation .
Let's stick to Python2.7 for now. Create a virtualenv for py2.7 using the following command :
virtualenv -p python2.7 env
source env/bin/activate
Once you are done with the virtual environment, it's time to install the good stuff. fsleyes uses wxpython toolkit for GUI on linux systems.
Install both with following command :
pip install wxpython fsleyes
Try running fsleyes through your command line now, it will give you errors regarding queue, request and abc modules not found.
To fix the queue errors
import queueimport Queue as queue
To fix abc errors
import collections.abc as abcimport abc
To fix request errors
import urllib.request as requestfrom urllib2 import urlopen as request
aaand, you are done.
© 2021, All Rights Reserved · Vipin Joshi