[Live-demo] [OSGeo] #1465: add python pysal
OSGeo
trac_osgeo at osgeo.org
Wed Feb 17 11:13:25 PST 2016
#1465: add python pysal
-------------------------+---------------------------
Reporter: darkblueb | Owner: live-demo@…
Type: enhancement | Status: new
Priority: normal | Milestone: OSGeoLive9.5
Component: LiveDVD | Resolution:
Keywords: python |
-------------------------+---------------------------
Comment (by darkblueb):
live b1 testing
`sudo apt-get install python-tk` ## fixes the issue
{{{
--------------------------------------------------------------------------
ImportError Traceback (most recent call
last)
<ipython-input-1-00d2cdfbd1a2> in <module>()
2 import pysal as ps
3 import random as rdm
----> 4 from pysal.contrib.viz import mapping as maps
5 get_ipython().magic(u'matplotlib inline')
6 from pylab import *
/usr/lib/python2.7/dist-packages/pysal/contrib/viz/mapping.py in
<module>()
14 import pysal as ps
15 import numpy as np
---> 16 import matplotlib.pyplot as plt
17 from matplotlib import colors as clrs
18 import matplotlib as mpl
/usr/lib/pymodules/python2.7/matplotlib/pyplot.py in <module>()
96
97 from matplotlib.backends import pylab_setup
---> 98 _backend_mod, new_figure_manager, draw_if_interactive, _show =
pylab_setup()
99
100
/usr/lib/pymodules/python2.7/matplotlib/backends/__init__.pyc in
pylab_setup()
26 # imports. 0 means only perform absolute imports.
27 backend_mod = __import__(backend_name,
---> 28 globals(),locals(),[backend_name],0)
29
30 # Things we pull in from all backends
/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py in
<module>()
6 import os.path
7
----> 8 import Tkinter as Tk, FileDialog
9
10 # Paint image to Tk photo blitter extension
/usr/lib/python2.7/lib-tk/Tkinter.py in <module>()
40 import _tkinter
41 except ImportError, msg:
---> 42 raise ImportError, str(msg) + ', please install the python-tk
package'
43 tkinter = _tkinter # b/w compat for export
44 TclError = _tkinter.TclError
ImportError: No module named _tkinter, please install the python-tk
package
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1465#comment:6>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.
More information about the Live-demo
mailing list