Please help.
In running the following code to display a 3d bloch sphere I run the following.
---------------------------------------------------------------------------
TraitError Traceback (most recent call last)
<ipython-input-1-662542992c82> in <module>
5 b.add_states(up)
6
----> 7 b.show()
c:\users\andre\appdata\local\programs\python\python36\lib\site-packages\qutip\bloch3d.py in show(self)
493 """
494 from mayavi import mlab
--> 495 self.make_sphere()
496 mlab.view(azimuth=self.view[0], elevation=self.view[1], distance=5)
497 if self.fig:
c:\users\andre\appdata\local\programs\python\python36\lib\site-packages\qutip\bloch3d.py in make_sphere(self)
466 # add data to sphere
467 self.plot_points()
--> 468 self.plot_vectors()
469
470 # #add labels
c:\users\andre\appdata\local\programs\python\python36\lib\site-packages\qutip\bloch3d.py in plot_vectors(self)
353 radius=self.vector_head_radius,
354 resolution=100)
--> 355 cone_mapper = tvtk.PolyDataMapper(input=cone.output)
356 prop = tvtk.Property(opacity=self.vector_alpha, color=color)
357 cc = tvtk.Actor(mapper=cone_mapper, property=prop)
c:\users\andre\appdata\local\programs\python\python36\lib\site-packages\tvtk\tvtk_classes.zip\tvtk_classes\poly_data_mapper.pyc in __init__(self, obj, update, **traits)
c:\users\andre\appdata\local\programs\python\python36\lib\site-packages\tvtk\tvtk_base.py in __init__(self, klass, obj, update, **traits)
333 # anyway.
334 self._in_set = 1
--> 335 super(TVTKBase, self).__init__(**traits)
336 self._in_set = 0
337
c:\users\andre\appdata\local\programs\python\python36\lib\site-packages\traits\trait_handlers.py in _read_only(object, name, value)
102 def _read_only ( object, name, value ):
103 raise TraitError("The '%s' trait of %s instance is 'read only'." % (
--> 104 name, class_of( object ) ))
105
106 def _undefined_get ( object, name ):
TraitError: The 'input' trait of a PolyDataMapper instance is 'read only'.
Other info which may help ...