[yt-users] yt installation issue

Matthew Turk matthewturk at gmail.com
Mon Apr 18 06:21:36 PDT 2016


Hi Andrea,

I think a simple fix would be to set:

~/.config/matplotlib/matplotlibrc

to include this:

backend: Agg


That should fix it by not trying to import Qt.

On Mon, Apr 18, 2016 at 6:02 AM, Andrea Negri <negri.andre at gmail.com> wrote:
> Hi all,
>
> I tried to install yt using the All-in-One Installation Script. I'm
> using Ubuntu 14.04, and I have installed the required packeges listed
> at the beginning of the script.
>
> All the installation process went fine, then I sourced the activation
> script in a new shell, and to check if everything was fine, I typed yt
> --help, and this is the output:
>
> Traceback (most recent call last):
>   File "/home/andrea/Software/yt/yt-x86_64/bin/yt", line 9, in <module>
>     load_entry_point('yt==3.2.3', 'console_scripts', 'yt')()
>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
> 558, in load_entry_point
>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
> 2682, in load_entry_point
>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
> 2355, in load
>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
> 2361, in resolve
>   File "/home/andrea/Software/yt/yt-x86_64/src/yt-hg/yt/__init__.py",
> line 146, in <module>
>     from yt.visualization.api import \
>   File "/home/andrea/Software/yt/yt-x86_64/src/yt-hg/yt/visualization/api.py",
> line 22, in <module>
>     from .particle_plots import \
>   File "/home/andrea/Software/yt/yt-x86_64/src/yt-hg/yt/visualization/particle_plots.py",
> line 24, in <module>
>     from .plot_window import \
>   File "/home/andrea/Software/yt/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 34, in <module>
>     from .plot_modifications import callback_registry
>   File "/home/andrea/Software/yt/yt-x86_64/src/yt-hg/yt/visualization/plot_modifications.py",
> line 26, in <module>
>     from mpl_toolkits.axes_grid1.anchored_artists import AnchoredSizeBar
>   File "/home/andrea/Software/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/mpl_toolkits/axes_grid1/__init__.py",
> line 9, in <module>
>     from .axes_grid import Grid, ImageGrid, AxesGrid
>   File "/home/andrea/Software/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/mpl_toolkits/axes_grid1/axes_grid.py",
> line 8, in <module>
>     import matplotlib.pyplot as plt
>   File "/home/andrea/Software/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/pyplot.py",
> line 109, in <module>
>     _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
>   File "/home/andrea/Software/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/backends/__init__.py",
> line 32, in pylab_setup
>     globals(),locals(),[backend_name],0)
>   File "/home/andrea/Software/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/backends/backend_qt4agg.py",
> line 17, in <module>
>     from .backend_qt5agg import NavigationToolbar2QTAgg
>   File "/home/andrea/Software/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/backends/backend_qt5agg.py",
> line 18, in <module>
>     from .backend_qt5 import QtCore
>   File "/home/andrea/Software/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/backends/backend_qt5.py",
> line 31, in <module>
>     from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName,
> __version__
>   File "/home/andrea/Software/yt/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/backends/qt_compat.py",
> line 126, in <module>
>     from PySide import QtCore, QtGui, __version__, __version_info__
> ImportError: No module named PySide
>
>
>
> I tried different configurations, such as installing the stable and
> the yt branch, turn on/off the scipy installation flag in
> install_script.sh, but nothing.
>
> Please, do you have any suggestions?
>
>
>
> Thanks in advance,
> Andrea
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



More information about the yt-users mailing list