Netpyne on clusters
Posted: Fri Dec 08, 2017 7:55 am
Hi
I've been using, for last two months, a Julich cluster, based on "knight landing" (Xeon Phi) CPUs, in which i have created a virtual env, to contain all pythons modules and a locally compiled NEURON installation, as a Python module too.
Doing "from netpyne import specs, sim" generates and import error for tkinter.
This is caused by matplotlib.
Is there an option to shutdown any matplotlib related activity when no GUI is available?
I'm using an ssh with no "X11 forwarding" option or other GUI related mechanisms.
Best regards
Stefano
I've been using, for last two months, a Julich cluster, based on "knight landing" (Xeon Phi) CPUs, in which i have created a virtual env, to contain all pythons modules and a locally compiled NEURON installation, as a Python module too.
Doing "from netpyne import specs, sim" generates and import error for tkinter.
Code: Select all
ImportError: No module named _tkinter.
Code: Select all
File "/lib/python2.7/site-packages/netpyne/sim.py", line 20, in <module>
from . import analysis
File "/lib/python2.7/site-packages/netpyne/analysis.py", line 12, in <module>
import matplotlib.pyplot as plt
File "/lib/python2.7/site-packages/matplotlib/pyplot.py", line 113, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/lib/python2.7/site-packages/matplotlib/backends/__init__.py", line 60, in pylab_setup
[backend_name], 0)
File "/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 6, in <module>
from six.moves import tkinter as Tk
I'm using an ssh with no "X11 forwarding" option or other GUI related mechanisms.
Best regards
Stefano