On Thursday, September 11, 2014, ryan_n <rnelsonc...@gmail.com> wrote:

> I'm trying out SageMathCloud (very cool by the way) for presenting some
> IPython notebooks to some colleagues; unfortunately, I've run into a
> problem with urllib2.urlopen. For certain sites, things seem to work fine,
> but other sites are apparently "not reachable." I've posted a little
> example below. Are there some blocks on what sorts of sites are accessible
> from SageMathCloud? I tried this in an IPython notebook and terminal. I
> also just tried `wget` from the term, and that doesn't work either. (For
> the record, I'm trying to make a simple basemap plot with an image that I'm
> downloading from ArcGIS online.)
>
> Thanks so much!
>
>
Almost everything is blocked.  If you want a specific project unblocked let
me know and send me the project id (as mentioned in project settings under
quotas).


> Ryan
>
>
> In [19]: urllib2.urlopen('http://sagemath.org/')
> Out[19]: <addinfourl at 140163978030112 whose fp = <socket._fileobject
> object at 0x7f7a781f05d0>>
>
> In [20]: urllib2.urlopen('
> http://en.wikipedia.org/wiki/Sage_(mathematics_software)')
> ---------------------------------------------------------------------------
> URLError                                  Traceback (most recent call last)
> <ipython-input-17-c4d80c7ea986> in <module>()
> ----> 1 junk = urllib2.urlopen('
> http://en.wikipedia.org/wiki/Sage_(mathematics_software)')
>
> /usr/local/sage/sage-6.3.beta6/local/lib/python/urllib2.pyc in
> urlopen(url, data, timeout)
>     125     if _opener is None:
>     126         _opener = build_opener()
> --> 127     return _opener.open(url, data, timeout)
>     128
>     129 def install_opener(opener):
>
> /usr/local/sage/sage-6.3.beta6/local/lib/python/urllib2.pyc in open(self,
> fullurl, data, timeout)
>     402             req = meth(req)
>     403
> --> 404         response = self._open(req, data)
>     405
>     406         # post-process response
>
> /usr/local/sage/sage-6.3.beta6/local/lib/python/urllib2.pyc in _open(self,
> req, data)
>     420         protocol = req.get_type()
>     421         result = self._call_chain(self.handle_open, protocol,
> protocol +
> --> 422                                   '_open', req)
>     423         if result:
>     424             return result
>
> /usr/local/sage/sage-6.3.beta6/local/lib/python/urllib2.pyc in
> _call_chain(self, chain, kind, meth_name, *args)
>     380             func = getattr(handler, meth_name)
>     381
> --> 382             result = func(*args)
>     383             if result is not None:
>     384                 return result
>
> /usr/local/sage/sage-6.3.beta6/local/lib/python/urllib2.pyc in
> http_open(self, req)
>    1212
>    1213     def http_open(self, req):
> -> 1214         return self.do_open(httplib.HTTPConnection, req)
>    1215
>    1216     http_request = AbstractHTTPHandler.do_request_
>
> /usr/local/sage/sage-6.3.beta6/local/lib/python/urllib2.pyc in
> do_open(self, http_class, req)
>    1182         except socket.error, err: # XXX what error?
>    1183             h.close()
> -> 1184             raise URLError(err)
>    1185         else:
>    1186             try:
>
> URLError: <urlopen error [Errno 101] Network is unreachable>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','sage-support%2bunsubscr...@googlegroups.com');>
> .
> To post to this group, send email to sage-support@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','sage-support@googlegroups.com');>.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
wst...@uw.edu

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to