Advertisement
Guest User

Untitled

a guest
May 27th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. PG question failed to render
  2.  
  3. Unable to obtain error messages from within the PG question.
  4.  
  5. WeBWorK Warnings
  6.  
  7. WeBWorK has encountered warnings while processing your request. If this occured when viewing a problem, it was likely caused by an error or ambiguity in that problem. Otherwise, it may indicate a problem with the WeBWorK system itself. If you are a student, report these warnings to your professor to have them corrected. If you are a professor, please consult the warning output below for more information.
  8.  
  9. Warning messages
  10.  
  11. debug is turned on in IO.pm. at [PG]/lib/WeBWorK/PG/IO.pm line 228
  12. IO::query_sage_server(): SAGE CALL: /usr/bin/curl -i -k -sS -L --data-urlencode "accepted_tos=true" --data-urlencode 'user_expressions={"WEBWORK":"_webwork_safe_json(WEBWORK)"}' --data-urlencode "code=set_random_seed(323)
  13. WEBWORK={}
  14. def _webwork_safe_json(o):
  15. import json
  16. def default(o):
  17. try:
  18. if isinstance(o,sage.rings.integer.Integer):
  19. json_obj = int(o)
  20. elif isinstance(o,(sage.rings.real_mpfr.RealLiteral, sage.rings.real_mpfr.RealNumber)):
  21. json_obj = float(o)
  22. elif sage.modules.free_module_element.is_FreeModuleElement(o):
  23. json_obj = list(o)
  24. elif sage.matrix.matrix.is_Matrix(o):
  25. json_obj = [list(i) for i in o.rows()]
  26. elif isinstance(o, SageObject):
  27. json_obj = repr(o)
  28. else:
  29. raise TypeError
  30. except TypeError:
  31. pass
  32. else:
  33. return json_obj
  34. # Let the base class default method raise the TypeError
  35. return json.JSONEncoder.default(self, o)
  36. return json.dumps(o, default=default)
  37. A= random_matrix(QQ,4,5,algorithm='echelonizable',rank=3).rows()
  38. print A" https://sagecell.sagemath.org/service
  39. RETURN from sage call
  40. HTTP/1.1 100 (Continue)
  41. HTTP/1.1 200 OK
  42. Content-Length: 305
  43. Server: TornadoServer/4.1
  44. Access-Control-Allow-Credentials: true
  45. Date: Wed, 27 May 2015 19:49:30 GMT
  46. Access-Control-Allow-Origin: *
  47. Content-Type: application/json; charset=UTF-8
  48. {"execute_reply": {"status": "ok", "execution_count": 1, "payload": [], "user_expressions": {"WEBWORK": {"status": "ok", "data": {"text/plain": "'{}'"}, "metadata": {}}}, "user_variables": {}}, "success": true, "stdout": "[(0, -3, 9, 1, 0), (1, -1, 8, -2, 3), (-1, -1, -2, 3, -3), (-3, 3, -24, 8, -9)]\n"}
  49. END SAGE CALL at [PG]/lib/WeBWorK/PG/IO.pm line 231
  50. IO::askSage: We have some kind of value |{"execute_reply": {"status": "ok", "execution_count": 1, "payload": [], "user_expressions": {"WEBWORK": {"status": "ok", "data": {"text/plain": "'{}'"}, "metadata": {}}}, "user_variables": {}}, "success": true, "stdout": "[(0, -3, 9, 1, 0), (1, -1, 8, -2, 3), (-1, -1, -2, 3, -3), (-3, 3, -24, 8, -9)]\n"}| returned from sage at [PG]/lib/WeBWorK/PG/IO.pm line 306
  51. decoded contents
  52. type = HASH; {
  53. execute_reply => type = HASH; {
  54. execution_count => 1
  55. payload => type = ARRAY; ( )
  56. status => ok
  57. user_expressions => type = HASH; {
  58. WEBWORK => type = HASH; {
  59. data => type = HASH; {
  60. text/plain => '{}'
  61. }
  62. metadata => type = HASH; {
  63. }
  64. status => ok
  65. }
  66. }
  67. user_variables => type = HASH; {
  68. }
  69. }
  70. stdout => [(0, -3, 9, 1, 0), (1, -1, 8, -2, 3), (-1, -1, -2, 3, -3), (-3, 3, -24, 8, -9)]
  71. success => type = JSON::XS::Boolean; true
  72. }
  73. end decoded contents at [PG]/lib/WeBWorK/PG/IO.pm line 315
  74. success is true at [PG]/lib/WeBWorK/PG/IO.pm line 321
  75. sage_WEBWORK_data '{}' at [PG]/lib/WeBWorK/PG/IO.pm line 327
  76. no content in WEBWORK variable. Returning stdout[(0, -3, 9, 1, 0), (1, -1, 8, -2, 3), (-1, -1, -2, 3, -3), (-3, 3, -24, 8, -9)]
  77. Processing of this PG problem was not completed. Probably because of a syntax error.
  78. The translator died prematurely and no PG warning messages were transmitted. at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 932.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement