I assume you are running the python windows binary. You cannot take a module from enought and make it visible there, in particular not matplotlib that has a lot of dependencies.
You need to start web2py from Enthought. I tried this and I get an enought error at startup, think releted to Tkinter. I did not get to the bottom of this (could get some help). When you can do is from enthought: os.chdir('/path'to/web2py/') from gluon.main inmport * HttpServer(ip='127.0.0.1',port=8000,password='hello').start() then web2py will see matplotlib. On Oct 25, 9:00 am, Vincent <vinc...@vincentdavis.com> wrote: > I am have Python Enthought 5.1 installed on my system, It includes > matplotlib. I recently learning cherrypy and it install into > Enthought. (1) can I do something similar with web2py, it seems like > it just comes with it's own python. (2) How would I import/install a > module into the web2py python. > I am going though the sc_dna_talk.pdf from Massimo, page 28 has this > seemingly simple import statement, and I am not sure how Missimo > python is setup > > import random, cStringIO > from matplotlib.backends.backend_agg > import FigureCanvasAgg as FigureCanvas > from matplotlib.figure import Figure > > Thanks > Vincent --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---