Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Someone
Sunday, April 1st, 2007 at 8:28:43pm UTC 

  1. [~/]$ /tmp/yo/bin/ipython -ipythondir ~/.ipython-2.5
  2. Python 2.5 (r25:51908, Apr  1 2007, 16:04:01)
  3. Type "copyright", "credits" or "license" for more information.
  4.  
  5. IPython 0.7.3 -- An enhanced Interactive Python.
  6. ?       -> Introduction to IPython's features.
  7. %magic  -> Information about IPython's 'magic' % functions.
  8. help    -> Python's own help system.
  9. object? -> Details about 'object'. ?object also works, ?? prints more.
  10.  
  11. In [1]: import
  12.  
  13. [Standby while scanning modules, this can take a while]
  14.  
  15.  
  16. ---------------------------------------------------------------------------
  17. <type 'exceptions.EnvironmentError'>      Traceback (most recent call last)
  18.  
  19. /tmp/yo/lib/python2.5/site-packages/IPython/completer.py in complete(self=<IPython.completer.IPCompleter instance at 0xb78d67ac>, text='', state=0)
  20.     615                 text = os.path.expanduser(text)
  21.     616             if state == 0:
  22. --> 617                 custom_res = self.dispatch_custom_completer(text)
  23.         custom_res = undefined
  24.         self.dispatch_custom_completer = <bound method IPCompleter.dispatch_custom_completer of <IPython.completer.IPCompleter instance at 0xb78d67ac>>
  25.         text = ''
  26.     618                 if custom_res is not None:
  27.     619                     # did custom completers produce something?
  28.  
  29. /tmp/yo/lib/python2.5/site-packages/IPython/completer.py in dispatch_custom_completer(self=<IPython.completer.IPCompleter instance at 0xb78d67ac>, text='')
  30.     575             try:
  31.     576                 res = c(event)
  32. --> 577                 return [r for r in res if r.lower().startswith(text.lower())]
  33.         r = undefined
  34.         res = <generator object at 0xb78bfe4c>
  35.         r.lower.startswith = undefined
  36.         text.lower = <built-in method lower of str object at 0xb7d24098>
  37.     578             except ipapi.TryNext:
  38.     579                 pass
  39.  
  40. /tmp/yo/lib/python2.5/site-packages/IPython/Extensions/ipy_stock_completers.py in module_completer(self=<IPython.iplib.InteractiveShell object at 0xb7cf8a0c>, event=Struct({'__allownew': True, 'command': 'import', 'line': 'import ', 'symbol': ''}))
  41.      86     if pkg_cache is None:
  42.      87         print "\n\n[Standby while scanning modules, this can take a while]\n\n"
  43. ---> 88         pkg_cache = list(pkgutil.walk_packages())
  44.         global pkg_cache = None
  45.         global list = undefined
  46.         pkgutil.walk_packages = <function walk_packages at 0xb7a0c6f4>
  47.      89
  48.      90     already = set()
  49.  
  50. /tmp/yo/lib/python2.5/pkgutil.py in walk_packages(path=['/tmp/yo/lib/python2.5/site-packages/django'], prefix='', onerror=None)
  51.     123                 path = [p for p in path if not seen(p)]
  52.     124
  53. --> 125                 for item in walk_packages(path, name+'.', onerror):
  54.         item = (<pkgutil.ImpImporter instance at 0xb7716c6c>, 'django.core.cache', True)
  55.         global walk_packages = <function walk_packages at 0xb7a0c6f4>
  56.         path = ['/tmp/yo/lib/python2.5/site-packages/django']
  57.         name = 'django'
  58.         onerror = None
  59.     126                     yield item
  60.     127
  61.  
  62. /tmp/yo/lib/python2.5/pkgutil.py in walk_packages(path=['/tmp/yo/lib/python2.5/site-packages/django/core'], prefix='django.', onerror=None)
  63.     123                 path = [p for p in path if not seen(p)]
  64.     124
  65. --> 125                 for item in walk_packages(path, name+'.', onerror):
  66.         item = (<pkgutil.ImpImporter instance at 0xb7716c6c>, 'django.core.cache', True)
  67.         global walk_packages = <function walk_packages at 0xb7a0c6f4>
  68.         path = ['/tmp/yo/lib/python2.5/site-packages/django/core']
  69.         name = 'django.core'
  70.         onerror = None
  71.     126                     yield item
  72.     127
  73.  
  74. /tmp/yo/lib/python2.5/pkgutil.py in walk_packages(path=['/tmp/yo/lib/python2.5/site-packages/django/core'], prefix='django.core.', onerror=None)
  75.     108         if ispkg:
  76.     109             try:
  77. --> 110                 __import__(name)
  78.         global __import__ = undefined
  79.         name = 'django.core.cache'
  80.     111             except ImportError:
  81.     112                 if onerror is not None:
  82.  
  83. /tmp/yo/lib/python2.5/site-packages/django/core/cache/__init__.py in <module>()
  84.      52     return cache_class(host, params)
  85.      53
  86. ---> 54 cache = get_cache(settings.CACHE_BACKEND)
  87.         global cache = undefined
  88.         global get_cache = None
  89.         global settings.CACHE_BACKEND = undefined
  90.      55
  91.      56
  92.  
  93. /tmp/yo/lib/python2.5/site-packages/django/conf/__init__.py in __getattr__(self=<django.conf.LazySettings object at 0xb7716bec>, name='CACHE_BACKEND')
  94.      26     def __getattr__(self, name):
  95.      27         if self._target is None:
  96. ---> 28             self._import_settings()
  97.         self._import_settings = <bound method LazySettings._import_settings of <django.conf.LazySettings object at 0xb7716bec>>
  98.      29         if name == '__members__':
  99.      30             # Used to implement dir(obj), for example.
  100.  
  101. /tmp/yo/lib/python2.5/site-packages/django/conf/__init__.py in _import_settings(self=<django.conf.LazySettings object at 0xb7716bec>)
  102.      51                 raise KeyError
  103.      52         except KeyError:
  104. ---> 53             raise EnvironmentError, "Environment variable %s is undefined." % ENVIRONMENT_VARIABLE
  105.         global EnvironmentError = undefined
  106.         global ENVIRONMENT_VARIABLE = 'DJANGO_SETTINGS_MODULE'
  107.      54
  108.      55         self._target = Settings(settings_module)
  109.  
  110. <type 'exceptions.EnvironmentError'>: Environment variable DJANGO_SETTINGS_MODULE is undefined.
  111. In [1]: import

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right