I have recently installed FSL 6.0.0 under CentOS 7.6(1810) with no errors running FEEDS, FSL GUIs, and FSLeyes. However, I am getting an error when I run asl_gui that I trace to a problem importing wxpython under fslpython.
[prism@prism-proc ~]$ ./asl_gui
Traceback (most recent call last):
File "./asl_gui", line 12, in <module>
from asl.gui import main
File "/home/prism/Downloads/oxford_asl/python/asl/gui/__init__.py", line 22, in <module>
import wx
File "/usr/local/fsl/fslpython/envs/fslpython/lib/python3.6/site-packages/wx/__init__.py", line 17, in <module>
from wx.core import *
File "/usr/local/fsl/fslpython/envs/fslpython/lib/python3.6/site-packages/wx/core.py", line 12, in <module>
from ._core import *
ImportError: /lib64/libpango-1.0.so.0: undefined symbol: g_log_structured_standard
[prism@prism-proc ~]$ fslpython
Python 3.6.4 |Anaconda, Inc.| (default, Mar 13 2018, 01:15:57)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/fsl/fslpython/envs/fslpython/lib/python3.6/site-packages/wx/__init__.py", line 17, in <module>
from wx.core import *
File "/usr/local/fsl/fslpython/envs/fslpython/lib/python3.6/site-packages/wx/core.py", line 12, in <module>
from ._core import *
ImportError: /lib64/libpango-1.0.so.0: undefined symbol: g_log_structured_standard
Thinking that symbol reference g_log_structured_standard is not defined under libpango, I went ahead and checked the following
[prism@prism-proc ~]$ readelf -s /lib64/libpango-1.0.so.0
Symbol table '.dynsym' contains 589 entries:
Num: Value Size Type Bind Vis Ndx Name
169: 0000000000000000 0 FUNC GLOBAL DEFAULT UND g_log_structured_standard
[prism@prism-proc ~]$ nm -D /lib64/libpango-1.0.so.0
U g_log_structured_standard
From these outputs, it seems that g_log_structured_standard is defined, so I'm left scratching my head on what is the root cause of the error. The following information may be helpful.
[prism@prism-proc ~]$ uname -a
Linux prism-proc 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[prism@prism-proc ~]$ echo $FSLDIR
/usr/local/fsl
[prism@prism-proc ~]$ fslpython -m pip show wxpython
Name: wxPython
Version: 4.0.3
Summary: Cross platform GUI toolkit for Python, "Phoenix" version
Home-page: http://wxPython.org/
Author: Robin Dunn
Author-email: [log in to unmask]
License: wxWindows Library License (https://opensource.org/licenses/wxwindows.php)
Location: /usr/local/fsl/fslpython/envs/fslpython/lib/python3.6/site-packages
Requires: six, PyPubSub
Required-by:
I should also note that I get no error when I import wxpython under system python; however, these are different versions from fslpython
[prism@prism-proc ~]$ python -m pip show wxpython
---
Metadata-Version: 1.1
Name: wxPython
Version: 2.8.12.0
Summary: Cross platform GUI toolkit for Python
Home-page: http://wxPython.org/
Author: Robin Dunn
Author-email: Robin Dunn <[log in to unmask]>
License: wxWidgets Library License (LGPL derivative)
Location: /usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode
Requires:
Classifiers:
Development Status :: 6 - Mature
Environment :: MacOS X :: Carbon
Environment :: Win32 (MS Windows)
Environment :: X11 Applications :: GTK
Intended Audience :: Developers
License :: OSI Approved
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows :: Windows 98/2000/XP/Vista
Operating System :: POSIX
Programming Language :: Python
Topic :: Software Development :: User Interfaces
[prism@prism-proc ~]$ python
Python 2.7.5 (default, Oct 30 2018, 23:45:53)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>>
Much appreciate any help you can give.
Regards,
Steve
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|