Print

Print


Hi Paul,


Thanks for letting me know that it won't work outside of the FSLeyes directory.  I had tried running it inside and it failed, so I wasn't sure.


So when I try running it inside the directory  (note i did ssh -X to connect):


~/FSLeyes$ ./fsleyes
The program 'fsleyes' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 696 error_code 2 request_code 154 minor_code 24)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


I also tried with virtualgl  (i.e.  vglconnect and vglrun)

but fsleyes just opens and closes immediately without giving an error message.

Thanks!
Thomas




________________________________
From: FSL - FMRIB's Software Library <[log in to unmask]> on behalf of paul mccarthy <[log in to unmask]>
Sent: Wednesday, September 4, 2019 11:16 AM
To: [log in to unmask]
Subject: Re: [FSL] error using fsleyes remotely

Hi Thomas,

I'm not 100% sure if this is the problem, but ... the FSLeyes standalone version contains a directory called FSLeyes, inside which is an executable called fsleyes. This executable will not run correctly if moved outside of the FSLeyes directory, as it needs to access all of the other files contained within that directory.

So how have you installed FSLeyes? Is /usr/bin/fsleyes a symlink, or a wrapper script, or is it a copy of the fsleyes executable (the latter of which is expected to fail)?

Cheers,

Paul

On Wed, 4 Sep 2019 at 15:34, Thomas Beaudry <[log in to unmask]<mailto:[log in to unmask]>> wrote:

Hi Paul,


I am using Ubuntu 16.04 on my local machine, and connecting to a Ubuntu KDE NEON 18.04 machine remotely.


Here is the output of the 2 commands you asked for:


$ which fsleyes

/usr/bin/fsleyes


$ env
LC_ALL=en_US.UTF-8
LD_LIBRARY_PATH=/util/packages/R/3.5.1/lib64/R/lib:/util/packages/R/3.5.1/lib
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SSH_CONNECTION=10.210.128.16 49422 10.204.192.21 22
LANG=en_US.UTF-8
DISPLAY=localhost:10.0
OLDPWD=/NAS/home/perform-admin
PATH_modshare=/opt/sge/bin:1:/usr/bin:1:/usr/local/bin:1:/util/packages/Mango/4.0.1/bin:1:/util/packages/R/3.5.1/bin:1:/NAS/home/perform-admin/scripts:1:/bin:1:/snap/bin:1:/sbin:1:/opt/sge/bin/lx-amd64:1:/usr/sbin:1:/usr/games:1:/usr/local/sbin:1:/usr/local/games:1
LOADEDMODULES_modshare=R/3.5.1:1
SGE_CELL=default
LD_LIBRARY_PATH_modshare=/util/packages/R/3.5.1/lib:1:/util/packages/R/3.5.1/lib64/R/lib:1
XDG_SESSION_ID=946
MODULES_CMD=/usr/lib/x86_64-linux-gnu/modulecmd.tcl
USER=perform-admin
ENV=/usr/share/modules/init/profile.sh
PWD=/NAS/home
HOME=/NAS/home/perform-admin
SSH_CLIENT=10.210.128.16 49422 22
KRB5CCNAME=/tmp/krb5cc_1661213601
BASH_ENV=/usr/share/modules/init/bash
XDG_DATA_DIRS=/NAS/home/perform-admin/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
_LMFILES__modshare=/util/modules/repo/R/3.5.1:1
SGE_ROOT=/opt/sge
LOADEDMODULES=R/3.5.1
SSH_TTY=/dev/pts/0
MAIL=/var/mail/perform-admin
TERM=xterm-256color
SHELL=/bin/bash
MANPATH_modshare=/util/packages/R/3.5.1/share/man:1
SHLVL=1
LANGUAGE=en_US.UTF-8
MANPATH=/util/packages/R/3.5.1/share/man
MODULEPATH=/util/modules/repo
LOGNAME=perform-admin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1661213601/bus
XDG_RUNTIME_DIR=/run/user/1661213601
MODULEPATH_modshare=/util/modules/repo:1
PATH=/util/packages/Mango/4.0.1/bin:/NAS/home/perform-admin/scripts:/opt/sge/bin:/opt/sge/bin/lx-amd64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
_LMFILES_=/util/modules/repo/R/3.5.1
MODULESHOME=/usr/share/modules
SGE_ARCH=lx-amd64
SGE_CLUSTER_NAME=p6444
BASH_FUNC_module%%=() {  eval `/usr/bin/modulecmd $modules_shell $*`
}
BASH_FUNC_switchml%%=() {  typeset swfound=1;
 if [ "${MODULES_USE_COMPAT_VERSION:-0}" = '1' ]; then
 typeset swname='main';
 if [ -e /usr/lib/x86_64-linux-gnu/modulecmd.tcl ]; then
 typeset swfound=0;
 unset MODULES_USE_COMPAT_VERSION;
 fi;
 else
 typeset swname='compatibility';
 if [ -e /usr/lib/x86_64-linux-gnu/modulecmd-compat ]; then
 typeset swfound=0;
 MODULES_USE_COMPAT_VERSION=1;
 export MODULES_USE_COMPAT_VERSION;
 fi;
 fi;
 if [ $swfound -eq 0 ]; then
 echo "Switching to Modules $swname version";
 source /usr/share/modules/init/bash;
 else
 echo "Cannot switch to Modules $swname version, command not found";
 return 1;
 fi
}
BASH_FUNC__moduleraw%%=() {  unset _mlre _mlIFS _mlshdbg;
 if [ "${MODULES_SILENT_SHELL_DEBUG:-0}" = '1' ]; then
 case "$-" in
 *v*x*)
 set +vx;
 _mlshdbg='vx'
 ;;
 *v*)
 set +v;
 _mlshdbg='v'
 ;;
 *x*)
 set +x;
 _mlshdbg='x'
 ;;
 *)
 _mlshdbg=''
 ;;
 esac;
 fi;
 if [ -n "${IFS+x}" ]; then
 _mlIFS=$IFS;
 fi;
 IFS=' ';
 for _mlv in ${MODULES_RUN_QUARANTINE:-};
 do
 if [ "${_mlv}" = "${_mlv##*[!A-Za-z0-9_]}" -a "${_mlv}" = "${_mlv#[0-9]}" ]; then
 if [ -n "`eval 'echo ${'$_mlv'+x}'`" ]; then
 _mlre="${_mlre:-}${_mlv}_modquar='`eval 'echo ${'$_mlv'}'`' ";
 fi;
 _mlrv="MODULES_RUNENV_${_mlv}";
 _mlre="${_mlre:-}${_mlv}='`eval 'echo ${'$_mlrv':-}'`' ";
 fi;
 done;
 if [ -n "${_mlre:-}" ]; then
 _mlre="eval ${_mlre}";
 fi;
 eval `${_mlre:-}/usr/bin/tclsh /usr/lib/x86_64-linux-gnu/modulecmd.tcl bash $*`;
 _mlstatus=$?;
 if [ -n "${_mlIFS+x}" ]; then
 IFS=$_mlIFS;
 else
 unset IFS;
 fi;
 if [ -n "${_mlshdbg:-}" ]; then
 set -$_mlshdbg;
 fi;
 unset _mlre _mlv _mlrv _mlIFS _mlshdbg;
 return $_mlstatus
}
_=/usr/bin/env



Thanks!
Thomas





________________________________
From: FSL - FMRIB's Software Library <[log in to unmask]<mailto:[log in to unmask]>> on behalf of paul mccarthy <[log in to unmask]<mailto:[log in to unmask]>>
Sent: Wednesday, September 4, 2019 5:02 AM
To: [log in to unmask]<mailto:[log in to unmask]>
Subject: Re: [FSL] error using fsleyes remotely

Hi Thomas,

This is a strange error - would you be able to send me the output of the following two commands:

which fsleyes
env

Also, what operating system are you running on your local machine?

Paul

On Tue, 3 Sep 2019 at 21:40, Thomas Beaudry <[log in to unmask]<mailto:[log in to unmask]>> wrote:
Hi,

I am trying to use fsleyes on ubuntu 18.04 over ssh.  I installed the standalone version of fsleyes, and when i try and run it i get this error:


Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fa3f7bc1740 (most recent call first):
Aborted


Any help would be greatly appreciated since I've spent quite a considerable amount of time trying ot get this to work!

Thanks,
Thomas
########################################################################

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

________________________________

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

________________________________

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

________________________________

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

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

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