From: <jam...@fd...> - 2007-01-06 11:00:45
|
Dear Poul, Why you append the path of visual ? is it not enough to just import visual.graph ? ============================================ Jose Antonio Martin H. Departamento de Sistemas Informáticos y Computación Facultad de Informática Universidad Complutense de Madrid Ciudad universitaria, 28040 Madrid ============================================ ----- Original Message ----- From: "Poul Riis" <Pou...@sk...> To: <vis...@li...> Sent: Saturday, January 06, 2007 10:10 AM Subject: [Visualpython-users] Graph test >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 > > -------------------------------------------------------------------------------- > > > ########################################### > Denne meddelelse med evt. vedlæg er scannet af SkoleKom ved hjælp af > F-Secure virusscanner. > > For yderligere information, > http://forside.skolekom.dk/indhold/punkt1/viruspolitik > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > -------------------------------------------------------------------------------- > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |