From: Poul R. <Pou...@sk...> - 2007-01-06 09:35:36
|
I just tried the following small test program, taken from the VPython documentation (except that I've added the two first lines): import sys sys.path.append('e:/python/Lib/site-packages/visual') from visual.graph import * # import graphing features funct1 = gcurve(color=color.cyan) # a connected curve object for x in arange(0., 8.1, 0.1): # x goes from 0 to 8 funct1.plot(pos=(x,5.*cos(2.*x)*exp(-0.2*x))) # plot I get the following error message: Traceback (most recent call last): File "E:/python/Lib/site-packages/visual/examples/graphtest1.py", line 4, in <module> from visual.graph import * # import graphing features File "E:\python\visual\__init__.py", line 21, in <module> copy_reg.pickle(cvisual.VectorType, lambda v: (vector, tuple(v)), vector) AttributeError: 'module' object has no attribute 'VectorType' Is this a path problem or what can I do to make it work? I use the most recent (beta) version of VPyton. Yours Poul Riis |