Print

Print


It looks like wx depends on pubsub for some operations - so it should probably be included with the fslpython environment.


You can install it into fslpython with:


fslpython -m pip install PyPubSub --user


Let me know how this goes...

Martin


From: FSL - FMRIB's Software Library <[log in to unmask]> on behalf of Amnah Mahroo <[log in to unmask]>
Sent: 03 January 2019 11:47:07
To: [log in to unmask]
Subject: Re: [FSL] oxford_asl Error
 
Hi Martin,

I tried running the gui using fslpython, and now it's giving me another error.

amnah@amnah-VirtualBox:~$ fslpython  /home/amnah/Downloads/oxford_asl/asl_gui
Traceback (most recent call last):
  File "/usr/share/fsl/6.0/fslpython/envs/fslpython/lib/python3.6/site-packages/wx/lib/pubsub/__init__.py", line 38, in <module>
    from pubsub import *
ModuleNotFoundError: No module named 'pubsub'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/amnah/Downloads/oxford_asl/asl_gui", line 12, in <module>
    from asl.gui import main
  File "/home/amnah/Downloads/oxford_asl/python/asl/gui/__init__.py", line 32, in <module>
    from .run_box import AslRun
  File "/home/amnah/Downloads/oxford_asl/python/asl/gui/run_box.py", line 13, in <module>
    from wx.lib.pubsub import pub
  File "/usr/share/fsl/6.0/fslpython/envs/fslpython/lib/python3.6/site-packages/wx/lib/pubsub/__init__.py", line 41, in <module>
    raise ImportError(msg)
ImportError: Stand-alone pubsub not found. Use `pip install PyPubSub`

I also tried `pip install PyPubSub`, and it says,

Requirement already satisfied: PyPubSub in /usr/local/lib/python2.7/dist-packages (4.0.0)
Requirement already satisfied: typing in /usr/local/lib/python2.7/dist-packages (from PyPubSub) (3.6.6)

But, I still get the same error when I run gui via fslpython. Looks like my default python is 2.7 and not 3.6, not sure how to change that. Can you please help with that?

Best Regards,
Amnah

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

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