Hi Paul,
This is quite a different error. What version of CentOS7 do you have?
You can find out via:
cat /etc/redhat-release
Cheers,
Paul
On Tue, 4 Dec 2018 at 10:24, Paul Zhutovsky <[log in to unmask]> wrote:
>
> Hi!
>
> I pretty much have the same error (see below) on CentOS7, FSL 5.0.10 and newest version (just updated) of FSLeyes (0.27.0).
> I understand that wxPython seems to be missing but I thought that the standalone version of FSLeyes should contain all the necessary dependencies by itself?
>
> Is there any way how I can fix the error?
>
> Cheers,
> Paul Zhutovsky
>
> Error message:
> 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: /lib64/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates
> [28394] Failed to execute script entrypt
> Traceback (most recent call last):
> File "entrypt.py", line 5, 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
> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
> File "fsleyes/__init__.py", line 208, 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
> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
> File "fsleyes/plugins.py", line 176, 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
> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
> File "fsleyes/views/viewpanel.py", line 16, 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
> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
> File "wx/__init__.py", line 12, in <module>
> AttributeError: module 'wx' has no attribute '__version__'
>
>
> On Tue, Nov 20, 2018 at 5:47 PM Mellick, William <[log in to unmask]> wrote:
>>
>>
>>
>> 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
>> [5859] Failed to execute script entrypt
>> Traceback (most recent call last):
>> File "entrypt.py", line 5, 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
>> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
>> File "fsleyes/__init__.py", line 208, 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
>> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
>> File "fsleyes/plugins.py", line 176, 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
>> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
>> File "fsleyes/views/viewpanel.py", line 16, 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
>> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
>> File "wx/__init__.py", line 12, in <module>
>> AttributeError: module 'wx' has no attribute '__version__'
>>
>> Can't import wxPython.wx, where is wxPython.wx?
>>
>> Q. I ran "python demo.py" and all I got was this:
>>
>> Traceback (most recent call last):
>> File "demo.py", line 3, in ?
>> import Main
>> File "Main.py", line 15, in ?
>> from wxPython.wx import *
>> ImportError: No module named wxPython.wx
>>
>> When I did a search of my whole Python directory, I found no file named wxpython.wx.
>>
>> A. In this context the dot means that it is looking for a module named wx located in a Python package named wxPython. Translated to the filesystem that means a directory named wxPython with a file named wx.py located within it. And an empty file named "init.py" to make this folder a package. (fgranger 2002/07/25)
>>
>> This error message means that the wxPython directory is not located in a directory that is in the PYTHONPATH. To check your path run this from within Python:
>>
>> import sys
>> print sys.path
>>
>> If the directory containing the wxPython directory is not there you either need to move wxPython or add the directory to PYTHONPATH. This can be done either in the environment, in a sitecustomize.py file (that is on the default path) on in the registry on Win32. See the Python docs for more details.
>>
>> On Linux the wxPython RPM for Python 2 puts wxPython in /usr/local/lib/python2.0/site-packages since Python 2 was installed in /usr/local on my build system. If Python 2 is in /usr on your system then you'll want to move (or link) wxPython to /usr/lib/python2.0/site-packages.
>>
>> On Win32 wxPython will install to the Python directory by default, which is automatically on the PYTHONPATH, so Python will be able to find the modules using the above syntax. If you installed somewhere else then you need to add that directory to the PYTHONPATH as described above.
>>
>>
>> ________________________________
>> From: William Mellick <[log in to unmask]>
>> Sent: Thursday, November 15, 2018 3:35:20 PM
>> To: [log in to unmask]
>> Cc: Mellick, William
>> Subject: FSLeyes error when launching
>>
>> CAUTION: External
>>
>> Hi,
>>
>> I am trying to run FSLeyes through Ubuntu 18 via virtualbox. However, whether it is installed as part of FSL 6.0 or independently I am receiving the same error message (pasted below). Can anyone please advise? I tried installing a version of wxpython but I am not sure if it is the correct version or if there are other problems to fix with the installation.
>>
>> Many thanks,
>> Will
>>
>> 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
>> [5859] Failed to execute script entrypt
>> Traceback (most recent call last):
>> File "entrypt.py", line 5, 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
>> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
>> File "fsleyes/__init__.py", line 208, 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
>> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
>> File "fsleyes/plugins.py", line 176, 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
>> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
>> File "fsleyes/views/viewpanel.py", line 16, 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
>> File "/build.venv/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
>> File "wx/__init__.py", line 12, in <module>
>> AttributeError: module 'wx' has no attribute '__version__'
>>
>>
>>
>> ________________________________
>>
>> 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
|