Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Latest commit

 

History

History
171 lines (137 loc) · 4.99 KB

20363.md

File metadata and controls

171 lines (137 loc) · 4.99 KB

Issue 20363: Graphics pickling failure

archive/issues_020126.json:

{
    "assignees": [],
    "body": "<div id=\"comment:0\"></div>\n\nOn sage-7.2.beta2 we have\n\n```\nsage: g2d = text('A', (0,0)) + arrow((0,0), (1,1), linestyle=\"dotted\")\nsage: g2d.show()\nLaunched png viewer for Graphics object consisting of 2 graphics primitives\nsage: dumps(g2d)\n---------------------------------------------------------------------------\nTraceback (most recent call last):\n...\nPicklingError: Can't pickle <class 'sage.plot.arrow.ConditionalStroke'>: attribute\nlookup sage.plot.arrow.ConditionalStroke failed\n```\nThough the following works!!\n\n```\nsage: g2d = text('A', (0,0)) + arrow((0,0), (1,1), linestyle=\"dotted\")\nsage: dumps(g2d)\n'x\\x9cU\\x91\\xc9n\\xc20...\\xe0'\n```\n\nCC:  @sagetrac-mhs\n\nComponent: **pickling**\n\nKeywords: **bug**\n\n_Issue created by migration from https://trac.sagemath.org/ticket/20363_\n\n",
    "created_at": "2016-04-05T21:32:56Z",
    "labels": [
        "https://github.com/sagemath/sage/labels/c%3A%20pickling",
        "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
        "https://github.com/sagemath/sage/labels/bug",
        "https://github.com/sagemath/sage/labels/c%3A%20graphics"
    ],
    "reactions": [],
    "repository": "https://github.com/sagemath/sage",
    "title": "Graphics pickling failure",
    "type": "issue",
    "updated_at": "2022-12-29T01:35:57Z",
    "url": "https://github.com/sagemath/sage/issues/20363",
    "user": "https://github.com/videlec"
}

On sage-7.2.beta2 we have

sage: g2d = text('A', (0,0)) + arrow((0,0), (1,1), linestyle="dotted")
sage: g2d.show()
Launched png viewer for Graphics object consisting of 2 graphics primitives
sage: dumps(g2d)
---------------------------------------------------------------------------
Traceback (most recent call last):
...
PicklingError: Can't pickle <class 'sage.plot.arrow.ConditionalStroke'>: attribute
lookup sage.plot.arrow.ConditionalStroke failed

Though the following works!!

sage: g2d = text('A', (0,0)) + arrow((0,0), (1,1), linestyle="dotted")
sage: dumps(g2d)
'x\x9cU\x91\xc9n\xc20...\xe0'

CC: @sagetrac-mhs

Component: pickling

Keywords: bug

Issue created by migration from https://trac.sagemath.org/ticket/20363


archive/issue_events_284791.json:

{
    "actor": "https://github.com/videlec",
    "created_at": "2016-04-05T21:32:56Z",
    "event": "milestoned",
    "issue": "https://github.com/sagemath/sage/issues/20363",
    "milestone_number": null,
    "milestone_title": "sage-7.2",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20363#event-284791"
}

archive/issue_events_284792.json:

{
    "actor": "https://github.com/videlec",
    "created_at": "2016-04-05T21:32:56Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20363",
    "label": "https://github.com/sagemath/sage/labels/c%3A%20pickling",
    "label_color": "0000b0",
    "label_name": "c: pickling",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20363#event-284792"
}

archive/issue_events_284793.json:

{
    "actor": "https://github.com/videlec",
    "created_at": "2016-04-05T21:32:56Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20363",
    "label": "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
    "label_color": "ffbb00",
    "label_name": "p: major / 3",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20363#event-284793"
}

archive/issue_events_284794.json:

{
    "actor": "https://github.com/videlec",
    "created_at": "2016-04-05T21:32:56Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20363",
    "label": "https://github.com/sagemath/sage/labels/bug",
    "label_color": "d73a4a",
    "label_name": "bug",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20363#event-284794"
}

archive/issue_events_284795.json:

{
    "actor": "https://github.com/videlec",
    "created_at": "2016-04-05T21:32:56Z",
    "event": "labeled",
    "issue": "https://github.com/sagemath/sage/issues/20363",
    "label": "https://github.com/sagemath/sage/labels/c%3A%20graphics",
    "label_color": "0000ff",
    "label_name": "c: graphics",
    "label_text_color": "ffffff",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20363#event-284795"
}

archive/issue_events_284796.json:

{
    "actor": "https://github.com/mkoeppe",
    "created_at": "2022-12-29T01:35:57Z",
    "event": "demilestoned",
    "issue": "https://github.com/sagemath/sage/issues/20363",
    "milestone_number": null,
    "milestone_title": "sage-7.2",
    "type": "issue_event",
    "url": "https://github.com/sagemath/sage/issues/20363#event-284796"
}