Opened 2 years ago

Closed 2 years ago

#30485 closed defect (invalid)

Bug with 3D Text on Cocalc.

Reported by: Taylor Dupuy Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: graphics Keywords:
Cc: Samuel Lelièvre Merged in:
Authors: Reviewers: Paul Masson, Dave Morris
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Samuel Lelièvre)

From a cocalc notebook.

from sage.plot.plot3d.shapes import Text
Text("hello world")

Error in lines 2-2
Traceback (most recent call last):
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1234, in execute
    flags=compile_flags), namespace, locals)
  File "", line 1, in <module>
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 4013, in displayhook
    show(obj)
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2974, in show
    s = show0(objs, combine_all=True)
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2933, in show0
    b = show0(a)
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2918, in show0
    salvus.threed(obj, **kwds)
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 890, in threed
    scene = {'opts': opts, 'obj': graphics3d_to_jsonable(g)}
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/graphics.py", line 519, in graphics3d_to_jsonable
    handler(p)(p, None, None)
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/graphics.py", line 452, in convert_text3d
    str(extra_kwds.get('fontface', 'Arial')),
AttributeError: 'NoneType' object has no attribute 'get'

Change History (7)

comment:1 Changed 2 years ago by Taylor Dupuy

Ugh formatting. Why don't we just move this to git?

comment:2 Changed 2 years ago by Samuel Lelièvre

Cc: Samuel Lelièvre added
Component: PLEASE CHANGEgraphics
Description: modified (diff)

comment:3 in reply to:  1 Changed 2 years ago by Samuel Lelièvre

Replying to tdupu:

Ugh formatting. Why don't we just move this to git?

Did you mean "to GitHub"?

That is where the CoCalc issue tracker is, by the way:

comment:4 Changed 2 years ago by Paul Masson

Milestone: sage-9.2sage-duplicate/invalid/wontfix
Reviewers: Paul Masson
Status: newneeds_review

This works fine on SageCell. Not a Sage issue.

comment:5 Changed 2 years ago by Dave Morris

The two lines work fine for me on CoCalc. No error.

comment:6 Changed 2 years ago by Dave Morris

Reviewers: Paul MassonPaul Masson, Dave Morris
Status: needs_reviewpositive_review

Can close this as invalid (not a sage issue).

comment:7 Changed 2 years ago by Samuel Lelièvre

Resolution: invalid
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.