[sage-devel] Re: vtk optional package
The problem is that on Linux, if you don't have the opengl libraries (typically libgl1-mesa-dev) then vtk won't build but the package exits successfully. I guess I need to add my own tests for open gl libraries on linux like I do for tcl/tk. Josh On Nov 5, 10:09 pm, William Stein [EMAIL PROTECTED] wrote: Josh, I did a fresh install of Ubuntu 32-bit on my laptop (under parallels), then installed the latest sage from source. Next I installed your vtk metapackage from http://sage.math.washington.edu/home/jkantor/spkgs/ It of course didn't initially work, but after I install the tk devel package your metapackage built and successfully installed. However, upon trying to use it: sage: import vtk --- type 'exceptions.ImportError' Traceback (most recent call last) /home/was/Desktop/ipython console in module() type 'exceptions.ImportError': No module named vtk sage: import mayavi --- type 'exceptions.ImportError' Traceback (most recent call last) /home/was/Desktop/ipython console in module() /home/was/s/local/lib/python2.5/site-packages/mayavi/__init__.py in module() 3 # Hacks to make local name lookups work. Order is important and 4 # Common must be imported first. 5 import Common, Base.Objects 6 7 import Main /home/was/s/local/lib/python2.5/site-packages/mayavi/Base/__init__.py in module() 17 18 # needed by the LutHandler --- 19 import Objects 20 21 # now import Misc.LutHandler since we need it here. /home/was/s/local/lib/python2.5/site-packages/mayavi/Base/Objects.py in module() 19 20 import Tkinter, tkColorChooser --- 21 import vtk 22 import math 23 import Common, vtkPipeline.vtkPipeline type 'exceptions.ImportError': No module named vtk sage: -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: vtk optional package
I have a patch in my spkgs directory (vtk_plot.hg) If you apply it, there will be 3 functions vtk_plot_surface, vtk_plot_array, and vtk_plot_3d_iso For example sage: f=lambda x,y:sin(sqrt(x^2+y^2)) sage: vtk_plot_surface(f,-2,2,-2,2,num_points=100) On Nov 7, 8:02 am, William Stein [EMAIL PROTECTED] wrote: On Nov 7, 2007 1:00 AM, Joshua Kantor [EMAIL PROTECTED] wrote: The problem is that on Linux, if you don't have the opengl libraries (typically libgl1-mesa-dev) then vtk won't build but the package exits successfully. I guess I need to add my own tests for open gl libraries on linux like I do for tcl/tk. Yes. I can confirm that after installing those package I have an install of vtk and mayavi, since: sage: import mayavi sage: # no error! Now what do I do? :-) Josh On Nov 5, 10:09 pm, William Stein [EMAIL PROTECTED] wrote: Josh, I did a fresh install of Ubuntu 32-bit on my laptop (under parallels), then installed the latest sage from source. Next I installed your vtk metapackage from http://sage.math.washington.edu/home/jkantor/spkgs/ It of course didn't initially work, but after I install the tk devel package your metapackage built and successfully installed. However, upon trying to use it: sage: import vtk --- type 'exceptions.ImportError' Traceback (most recent call last) /home/was/Desktop/ipython console in module() type 'exceptions.ImportError': No module named vtk sage: import mayavi --- type 'exceptions.ImportError' Traceback (most recent call last) /home/was/Desktop/ipython console in module() /home/was/s/local/lib/python2.5/site-packages/mayavi/__init__.py in module() 3 # Hacks to make local name lookups work. Order is important and 4 # Common must be imported first. 5 import Common, Base.Objects 6 7 import Main /home/was/s/local/lib/python2.5/site-packages/mayavi/Base/__init__.py in module() 17 18 # needed by the LutHandler --- 19 import Objects 20 21 # now import Misc.LutHandler since we need it here. /home/was/s/local/lib/python2.5/site-packages/mayavi/Base/Objects.py in module() 19 20 import Tkinter, tkColorChooser --- 21 import vtk 22 import math 23 import Common, vtkPipeline.vtkPipeline type 'exceptions.ImportError': No module named vtk sage: -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: vtk optional package
On Nov 7, 2007 1:00 AM, Joshua Kantor [EMAIL PROTECTED] wrote: The problem is that on Linux, if you don't have the opengl libraries (typically libgl1-mesa-dev) then vtk won't build but the package exits successfully. I guess I need to add my own tests for open gl libraries on linux like I do for tcl/tk. Yes. I can confirm that after installing those package I have an install of vtk and mayavi, since: sage: import mayavi sage: # no error! Now what do I do? :-) Josh On Nov 5, 10:09 pm, William Stein [EMAIL PROTECTED] wrote: Josh, I did a fresh install of Ubuntu 32-bit on my laptop (under parallels), then installed the latest sage from source. Next I installed your vtk metapackage from http://sage.math.washington.edu/home/jkantor/spkgs/ It of course didn't initially work, but after I install the tk devel package your metapackage built and successfully installed. However, upon trying to use it: sage: import vtk --- type 'exceptions.ImportError' Traceback (most recent call last) /home/was/Desktop/ipython console in module() type 'exceptions.ImportError': No module named vtk sage: import mayavi --- type 'exceptions.ImportError' Traceback (most recent call last) /home/was/Desktop/ipython console in module() /home/was/s/local/lib/python2.5/site-packages/mayavi/__init__.py in module() 3 # Hacks to make local name lookups work. Order is important and 4 # Common must be imported first. 5 import Common, Base.Objects 6 7 import Main /home/was/s/local/lib/python2.5/site-packages/mayavi/Base/__init__.py in module() 17 18 # needed by the LutHandler --- 19 import Objects 20 21 # now import Misc.LutHandler since we need it here. /home/was/s/local/lib/python2.5/site-packages/mayavi/Base/Objects.py in module() 19 20 import Tkinter, tkColorChooser --- 21 import vtk 22 import math 23 import Common, vtkPipeline.vtkPipeline type 'exceptions.ImportError': No module named vtk sage: -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---