> Thank You so much, you really made my day. i managed to run the new
> python program. I had to enter the "import string" at the top also,
> but thank you so much again.
>
Glad it worked.
Instead of doing an "import string" at the top, you can also replace :
line39 # words = string.split(line)
by
line39 # words = line.split()
then you won't need to import the string module.
It's a minor change, but if you progress with python as a tool for your work,
you'll see that lowering the number of imports is definitively important!
cheers,
thomas
>
> On 4/9/08, Thomas Lecocq wrote:
> > Hi,
> >
> > The message you see is an error that says that you don't have a package
> > called "Scientific" ..
> >
> > It isn't actually needed in order to read/write a file.
> >
> > See the attached file, I did modify it... Normaly, it should work fine.
> >
> > you have to call the program from a command line "python PointCloud.py
> > input.txt" where input.txt contains one "X Y Z" per line
> >
> > HTH
> >
> > Thomas
> >
> > Hi
> >
> > I found this link
> > http://mayavi.sourceforge.net/mwiki/PointCloudson converting point clouds to
> > vtk's unstructured grid form. Unfortunately, I dun know python, is there a
> > C++ program that I can use or could someone show me how to convert the file,
> > I have installed python on windows and linux. I dun need to install vtk to
> > run this program rite.. I can just run it from the console...?
> >
> >
> > anyway, i tried running the script without much knowledge of course, in
> > windows, I received this error
> >
> > Traceback (most recent call last):
> > File "C:\Documents and Settings\kalpanak\Desktop\ppp\xyz2vtk.py", line 1,
> > in <module>
> > from Scientific.IO.TextFile import pointclouddatafile
> > ImportError: No module named Scientific.IO.TextFile
> >
> >
> >
> > I hope someone could guide me...
> >
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users