Without seeing the error and the traceback, it's hard to tell what is going on.
Aaron Meurer On Wed, Sep 11, 2013 at 8:17 PM, Erin Hodgess <[email protected]> wrote: > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
