#17818: Interface to FindStat
-------------------------------------+-------------------------------------
Reporter: mantepse | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.7
Component: interfaces: | Resolution:
optional | Merged in:
Keywords: FindStat | Reviewers: Christian Stump,
Authors: Martin Rubey | Viviane Pons
Report Upstream: N/A | Work issues:
Branch: public/findstat- | Commit:
interface | f841404abb56f2a7629e373b198e1482c84a5285
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: positive_review => needs_work
Comment:
Attempts internet access:
{{{
sage -t --long src/sage/databases/findstat.py
**********************************************************************
File "src/sage/databases/findstat.py", line 844, in
sage.databases.findstat.FindStatStatistic._find_by_id
Failed example:
findstat(999999) #
indirect doctest
Expected:
Traceback (most recent call last):
...
ValueError: St999999 is not a FindStat statistic identifier.
Got:
<BLANKLINE>
Traceback (most recent call last):
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.databases.findstat.FindStatStatistic._find_by_id[0]>", line 1, in
<module>
findstat(Integer(999999))
# indirect doctest
File "sage/misc/lazy_import.pyx", line 383, in
sage.misc.lazy_import.LazyImport.__call__ (/Users/buildslave-
sage/slave/sage_git/build/src/build/cythonized/sage/misc/lazy_import.c:3593)
return self._get_object()(*args, **kwds)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/databases/findstat.py", line 476, in __call__
return self._statistic_find_by_id_cached(query)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/databases/findstat.py", line 631, in
_statistic_find_by_id_cached
self._statistic_cache[id] = FindStatStatistic(id)._find_by_id()
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/databases/findstat.py", line 855, in _find_by_id
self._raw = json.load(urlopen(url), object_pairs_hook=OrderedDict)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python/urllib2.py", line 154, in
urlopen
return opener.open(url, data, timeout)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python/urllib2.py", line 431, in open
response = self._open(req, data)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python/urllib2.py", line 449, in _open
'_open', req)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python/urllib2.py", line 409, in
_call_chain
result = func(*args)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python/urllib2.py", line 1227, in
http_open
return self.do_open(httplib.HTTPConnection, req)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python/urllib2.py", line 1197, in
do_open
raise URLError(err)
URLError: <urlopen error [Errno 60] Operation timed out>
**********************************************************************
1 item had failures:
1 of 2 in sage.databases.findstat.FindStatStatistic._find_by_id
[50 tests, 1 failure, 75.18 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17818#comment:115>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.