Advertisement
pleabargain

error load ipython3

Jun 2nd, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.96 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. ImportError                               Traceback (most recent call last)
  3. <ipython-input-1-51ddf584899e> in <module>()
  4. ----> 1 get_ipython().magic('load http://matplotlib.sourceforge.net/plot_directive/mpl_examples/mplot3d/contour3d_demo.py'>)
  5.  
  6. /usr/local/lib/python3.2/dist-packages/ipython-1.0.dev-py3.2.egg/IPython/core/interactiveshell.py in magic(self, arg_s)
  7.    2181         magic_name, _, magic_arg_s = arg_s.partition(' ')
  8.    2182         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
  9. -> 2183         return self.run_line_magic(magic_name, magic_arg_s)
  10.    2184
  11.    2185     #-------------------------------------------------------------------------
  12.  
  13. /usr/local/lib/python3.2/dist-packages/ipython-1.0.dev-py3.2.egg/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
  14.    2102                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
  15.    2103             with self.builtin_trap:
  16. -> 2104                 result = fn(*args,**kwargs)
  17.    2105             return result
  18.    2106
  19.  
  20. /usr/local/lib/python3.2/dist-packages/ipython-1.0.dev-py3.2.egg/IPython/core/magics/code.py in load(self, arg_s)
  21.  
  22. /usr/local/lib/python3.2/dist-packages/ipython-1.0.dev-py3.2.egg/IPython/core/magic.py in <lambda>(f, *a, **k)
  23.     191     # but it's overkill for just that one bit of state.
  24.     192     def magic_deco(arg):
  25. --> 193         call = lambda f, *a, **k: f(*a, **k)
  26.     194
  27.     195         if isinstance(arg, collections.Callable):
  28.  
  29. /usr/local/lib/python3.2/dist-packages/ipython-1.0.dev-py3.2.egg/IPython/core/magics/code.py in load(self, arg_s)
  30.     192                              'or macro.')
  31.     193
  32. --> 194         contents = self.shell.find_user_code(args)
  33.     195         l = len(contents)
  34.     196
  35.  
  36. /usr/local/lib/python3.2/dist-packages/ipython-1.0.dev-py3.2.egg/IPython/core/interactiveshell.py in find_user_code(self, target, raw, py_only, skip_encoding_cookie)
  37.    3028         try:
  38.    3029             if utarget.startswith(('http://', 'https://')):
  39. -> 3030                 return openpy.read_py_url(utarget, skip_encoding_cookie=skip_encoding_cookie)
  40.    3031         except UnicodeDecodeError:
  41.    3032             if not py_only :
  42.  
  43. /usr/local/lib/python3.2/dist-packages/ipython-1.0.dev-py3.2.egg/IPython/utils/openpy.py in read_py_url(url, errors, skip_encoding_cookie)
  44.     206     A unicode string containing the contents of the file.
  45.     207     """
  46. --> 208     from urllib.request import urlopen  # Deferred import for faster start
  47.    209     response = urlopen(url)
  48.    210     buffer = io.BytesIO(response.read())
  49.  
  50. /home/dennis/Dropbox/python/ipynb/urllib.py in <module>()
  51.      6 # For Python 3, change import urllib to urllib.request
  52.      7
  53. ----> 8 import urllib.request
  54.      9 u =urllib.request.urlopen('http://ctabustracker.com/bustime/map/getBusesForRoute.jsp?route=22')
  55.     10 data = u.read()
  56.  
  57. ImportError: No module named request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement