archive/issues_019856.json:
{
"assignees": [],
"body": "<div id=\"comment:0\"></div>\n\nFile `problem.spyx` with\n\n```\nimport sage.all\nfrom sage.all import *\nfrom sage.rings.integer_ring import ZZ\nprint ZZ(1000)\n```\nRun it with `sage problem.spyx` and it fails with\n\n```\nImportError: cannot import name ZZ\n```\non 6.9, 6.10, 7.0, 7.1.beta4.\n\nSee also discussion https://groups.google.com/forum/#!topic/sage-support/NcQ2Lgj_oao\n\n\nDepends on #20002\n\nComponent: **scripts**\n\nAuthor: **Jeroen Demeyer**\n\nBranch/Commit: **[`f87fa19`](https://github.com/sagemath/sagetrac-mirror/commit/f87fa193c51e82efe7fc0c95c4c03f38dde39366)**\n\nReviewer: **Daniel Krenn**\n\n_Issue created by migration from https://trac.sagemath.org/ticket/20093_\n\n",
"closed_at": "2016-02-24T08:39:36Z",
"created_at": "2016-02-22T09:42:25Z",
"labels": [
"https://github.com/sagemath/sage/labels/c%3A%20scripts",
"https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
"https://github.com/sagemath/sage/labels/bug"
],
"milestone": "https://github.com/sagemath/sage/milestones/sage-7.1",
"reactions": [],
"repository": "https://github.com/sagemath/sage",
"title": "broken spyx support concerning imports",
"type": "issue",
"updated_at": "2016-02-24T08:39:36Z",
"url": "https://github.com/sagemath/sage/issues/20093",
"user": "https://github.com/dkrenn"
}
File problem.spyx
with
import sage.all
from sage.all import *
from sage.rings.integer_ring import ZZ
print ZZ(1000)
Run it with sage problem.spyx
and it fails with
ImportError: cannot import name ZZ
on 6.9, 6.10, 7.0, 7.1.beta4.
See also discussion https://groups.google.com/forum/#!topic/sage-support/NcQ2Lgj_oao
Depends on #20002
Component: scripts
Author: Jeroen Demeyer
Branch/Commit: f87fa19
Reviewer: Daniel Krenn
Issue created by migration from https://trac.sagemath.org/ticket/20093
archive/issue_events_281245.json:
{
"actor": "https://github.com/dkrenn",
"created_at": "2016-02-22T09:42:25Z",
"event": "milestoned",
"issue": "https://github.com/sagemath/sage/issues/20093",
"milestone_number": null,
"milestone_title": "sage-7.1",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281245"
}
archive/issue_events_281246.json:
{
"actor": "https://github.com/dkrenn",
"created_at": "2016-02-22T09:42:25Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"label": "https://github.com/sagemath/sage/labels/c%3A%20cython",
"label_color": "0000b0",
"label_name": "c: cython",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281246"
}
archive/issue_events_281247.json:
{
"actor": "https://github.com/dkrenn",
"created_at": "2016-02-22T09:42:25Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"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/20093#event-281247"
}
archive/issue_events_281248.json:
{
"actor": "https://github.com/dkrenn",
"created_at": "2016-02-22T09:42:25Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"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/20093#event-281248"
}
archive/issue_comments_288068.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -11,18 +11,7 @@\n ```\n ImportError: cannot import name ZZ\n ```\n-on 6.9, 6.10, 7.0, 7.1.beta4. On 6.8 it fails with\n+on 6.9, 6.10, 7.0, 7.1.beta4.\n \n-```\n-error: command 'gcc' failed with exit status 1\n-```\n-\n-The original problem (failing code in file `problem.spyx`) was\n-\n-```\n-import sage.all\n-from sage.rings.real_mpfi import RealIntervalField\n-RealIntervalField(100)(4.2)\n-```\n See also discussion https://groups.google.com/forum/#!topic/sage-support/NcQ2Lgj_oao\n \n``````\n",
"created_at": "2016-02-22T09:49:29Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288068",
"user": "https://github.com/jdemeyer"
}
Description changed:
---
+++
@@ -11,18 +11,7 @@
```
ImportError: cannot import name ZZ
```
-on 6.9, 6.10, 7.0, 7.1.beta4. On 6.8 it fails with
+on 6.9, 6.10, 7.0, 7.1.beta4.
-```
-error: command 'gcc' failed with exit status 1
-```
-
-The original problem (failing code in file `problem.spyx`) was
-
-```
-import sage.all
-from sage.rings.real_mpfi import RealIntervalField
-RealIntervalField(100)(4.2)
-```
See also discussion https://groups.google.com/forum/#!topic/sage-support/NcQ2Lgj_oao
archive/issue_comments_288069.json:
{
"body": "Dependencies: **#20002**",
"created_at": "2016-02-23T12:11:04Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288069",
"user": "https://github.com/jdemeyer"
}
Dependencies: #20002
archive/issue_comments_288070.json:
{
"body": "Author: **Jeroen Demeyer**",
"created_at": "2016-02-23T12:11:04Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288070",
"user": "https://github.com/jdemeyer"
}
Author: Jeroen Demeyer
archive/issue_comments_288071.json:
{
"body": "Branch: **[u/jdemeyer/ticket/20093](https://github.com/sagemath/sagetrac-mirror/tree/u/jdemeyer/ticket/20093)**",
"created_at": "2016-02-23T12:39:40Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288071",
"user": "https://github.com/jdemeyer"
}
Branch: u/jdemeyer/ticket/20093
archive/issue_events_281249.json:
{
"actor": "https://github.com/jdemeyer",
"created_at": "2016-02-23T12:40:02Z",
"event": "unlabeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"label": "https://github.com/sagemath/sage/labels/c%3A%20cython",
"label_color": "0000b0",
"label_name": "c: cython",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281249"
}
archive/issue_events_281250.json:
{
"actor": "https://github.com/jdemeyer",
"created_at": "2016-02-23T12:40:02Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"label": "https://github.com/sagemath/sage/labels/c%3A%20scripts",
"label_color": "0000b0",
"label_name": "c: scripts",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281250"
}
archive/issue_events_281251.json:
{
"actor": "https://github.com/jdemeyer",
"created_at": "2016-02-23T12:40:02Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"label": "https://github.com/sagemath/sage/labels/needs%20review",
"label_color": "7fff00",
"label_name": "needs review",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281251"
}
archive/issue_comments_288072.json:
{
"body": "Commit: **[`f87fa19`](https://github.com/sagemath/sagetrac-mirror/commit/f87fa193c51e82efe7fc0c95c4c03f38dde39366)**",
"created_at": "2016-02-23T12:40:02Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288072",
"user": "https://github.com/jdemeyer"
}
Commit: f87fa19
archive/issue_comments_288073.json:
{
"body": "<div id=\"comment:4\"></div>\n\nNew commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/fc69b52f2082496a43f335f97fa8468feee591d4\"><code>fc69b52</code></a></td><td><code>Move interrupt.pyx to package cysignals</code></td></tr><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/aee6a5fdd4f13acef7dbf7086359d2557eaf9315\"><code>aee6a5f</code></a></td><td><code>Check that sig_on()/sig_off() works in .spyx files</code></td></tr><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/434b272c137ab3ca014ce245df952793426e5afe\"><code>434b272</code></a></td><td><code>cysignals depends on PARI</code></td></tr><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/f663c5dfb73fe90e9e2e7b5dd8a98d3bad195ba4\"><code>f663c5d</code></a></td><td><code>Sage library depends on cysignals</code></td></tr><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/4677a93fd7b6f2a2bdec1516a29b7625723dd9d5\"><code>4677a93</code></a></td><td><code>cysignals version 1.0rc2</code></td></tr><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/f87fa193c51e82efe7fc0c95c4c03f38dde39366\"><code>f87fa19</code></a></td><td><code>Trac #20093: import sage.all before running external code</code></td></tr></table>\n",
"created_at": "2016-02-23T12:40:02Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288073",
"user": "https://github.com/jdemeyer"
}
New commits:
fc69b52 | Move interrupt.pyx to package cysignals |
aee6a5f | Check that sig_on()/sig_off() works in .spyx files |
434b272 | cysignals depends on PARI |
f663c5d | Sage library depends on cysignals |
4677a93 | cysignals version 1.0rc2 |
f87fa19 | Trac #20093: import sage.all before running external code |
archive/issue_comments_288074.json:
{
"body": "Reviewer: **Daniel Krenn**",
"created_at": "2016-02-23T14:50:54Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288074",
"user": "https://github.com/dkrenn"
}
Reviewer: Daniel Krenn
archive/issue_comments_288075.json:
{
"body": "<div id=\"comment:5\" align=\"right\">comment:5</div>\n\nLGTM, tests passed on my machine; I'll set it to positive_review as soon as a patchbot confirms this as well.",
"created_at": "2016-02-23T14:50:54Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288075",
"user": "https://github.com/dkrenn"
}
LGTM, tests passed on my machine; I'll set it to positive_review as soon as a patchbot confirms this as well.
archive/issue_events_281252.json:
{
"actor": "https://github.com/dkrenn",
"created_at": "2016-02-23T15:01:42Z",
"event": "unlabeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"label": "https://github.com/sagemath/sage/labels/needs%20review",
"label_color": "7fff00",
"label_name": "needs review",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281252"
}
archive/issue_events_281253.json:
{
"actor": "https://github.com/dkrenn",
"created_at": "2016-02-23T15:01:42Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"label": "https://github.com/sagemath/sage/labels/positive%20review",
"label_color": "dfffc0",
"label_name": "positive review",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281253"
}
archive/issue_comments_288076.json:
{
"body": "<div id=\"comment:6\" align=\"right\">comment:6</div>\n\nReplying to [@dkrenn](#comment%3A5):\n> I'll set it to positive_review as soon as a patchbot confirms this as well.\n\nPatchbot sees ticket as unsafe. But since my tests were sucessful, I give it a positive review.",
"created_at": "2016-02-23T15:01:42Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288076",
"user": "https://github.com/dkrenn"
}
Replying to @dkrenn:
I'll set it to positive_review as soon as a patchbot confirms this as well.
Patchbot sees ticket as unsafe. But since my tests were sucessful, I give it a positive review.
archive/issue_comments_288077.json:
{
"body": "Changed branch from **[u/jdemeyer/ticket/20093](https://github.com/sagemath/sagetrac-mirror/tree/u/jdemeyer/ticket/20093)** to **[`f87fa19`](https://github.com/sagemath/sagetrac-mirror/commit/f87fa193c51e82efe7fc0c95c4c03f38dde39366)**",
"created_at": "2016-02-24T08:39:36Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20093#issuecomment-288077",
"user": "https://github.com/vbraun"
}
Changed branch from u/jdemeyer/ticket/20093 to f87fa19
archive/issue_events_281254.json:
{
"actor": "https://github.com/vbraun",
"created_at": "2016-02-24T08:39:36Z",
"event": "unlabeled",
"issue": "https://github.com/sagemath/sage/issues/20093",
"label": "https://github.com/sagemath/sage/labels/positive%20review",
"label_color": "dfffc0",
"label_name": "positive review",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281254"
}
archive/issue_events_281255.json:
{
"actor": "https://github.com/vbraun",
"commit_id": "9e69158c7370ab25f612940c74415631c5f4d4c4",
"commit_repository": "https://github.com/sagemath/sage",
"created_at": "2016-02-24T08:39:36Z",
"event": "closed",
"issue": "https://github.com/sagemath/sage/issues/20093",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20093#event-281255"
}