Hi! I'm trying to run sympy from a Python cgi script.
This is what I have: #!/usr/bin/python # Import modules for CGI handling import cgi, cgitb # from __future__ import division # from sympy import init_printing integrate Symbol exp cos erf # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields first_name = form.getvalue('first_name') # x = symbols('x') # a = integrate(first_name,x) print "Content-type:text/html\r\n\r\n" print "<html>" print "<head>" print "<title>Hello - Second CGI Program</title>" print "</head>" print "<body>" print "<h2>Hello %s </h2>" % first_name print "</body>" print "</html>" Note that I have commented out the from import lines. When those are not commented out, the script gets error. Has anyone run into this before, please? Any suggestions would be much appreciated. Thanks, Sincerely, Erin -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.