Dear FSL experts,
I encountered the same Import Error message as SKH (https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=fsl;f7769518.1603) when trying to open Melview, i.e. that there is no module named pygments.lexer, and am at a loss for how to troubleshoot it. I've included the full error message below.
I'm using the Anaconda Python distribution of Python 3.5 on Mac OS 10.11.4, and have set my terminal's default python to $HOME/anaconda/bin/python, but Melview seems to call the default system python regardless. I updated my system's Pygments from 2.1.1 to 2.1.3 in case that might help (it didn't), and found code for pygments.lexer online but could not locate a python/lexers directory that it may be placed into besides that belonging to Anaconda.
Do you have any ideas on how I should proceed? I would greatly appreciate your guidance on this. Thanks very much in advance!
---------------------------------
bash-3.2$ Melview
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Traceback (most recent call last):
File "/opt/local/bin/Melview", line 9, in <module>
load_entry_point('melview==1.0.1', 'console_scripts', 'melview')()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 568, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2720, in load_entry_point
return ep.load()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2380, in load
return self.resolve()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2386, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/melview/melodic_traits.py", line 42, in <module>
from pyface.api import FileDialog, OK, confirm, error, YES
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/api.py", line 34, in <module>
from .python_editor import PythonEditor
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/python_editor.py", line 21, in <module>
PythonEditor = toolkit_object('python_editor:PythonEditor')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/toolkit.py", line 103, in toolkit_object
__import__(be_mname)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/ui/qt4/python_editor.py", line 27, in <module>
from pyface.ui.qt4.code_editor.code_widget import AdvancedCodeWidget
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/ui/qt4/code_editor/code_widget.py", line 23, in <module>
from .pygments_highlighter import PygmentsHighlighter
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/ui/qt4/code_editor/pygments_highlighter.py", line 14, in <module>
from pygments.lexer import RegexLexer, _TokenType, Text, Error
ImportError: No module named pygments.lexer
|