Guest User

erpnext

a guest
Jul 27th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 12.42 KB | None | 0 0
  1. --> --> -->
  2.  
  3.  
  4. <type 'exceptions.IOError'> Python 2.6.6: /usr/bin/python
  5. Sat Jul 27 16:38:40 2013
  6. A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
  7.  
  8.  /var/www/erpnext/public/web.py in ()
  9.    43         return webnotes.webutils.render(webnotes.form_dict.get('page'))
  10.    44
  11.    45 if __name__=="__main__":
  12.    46         init()
  13.    47         respond()
  14. respond = <function respond>
  15.  /var/www/erpnext/public/web.py in respond()
  16.    41         import webnotes
  17.    42         import webnotes.webutils
  18.    43         return webnotes.webutils.render(webnotes.form_dict.get('page'))
  19.    44
  20.    45 if __name__=="__main__":
  21. webnotes = <module 'webnotes' from '../lib/webnotes/__init__.pyc'>, webnotes.webutils = <module 'webnotes.webutils' from '../lib/webnotes/webutils.pyc'>, webnotes.webutils.render = <function render>, webnotes.form_dict = {}, webnotes.form_dict.get = <built-in method get of _dict object>
  22.  /var/www/erpnext/lib/webnotes/webutils.py in render(page_name=None)
  23.    15                         html = get_html('index')
  24.    16         except Exception:
  25.    17                 html = get_html('error')
  26.    18
  27.    19         from webnotes.handler import eprint, print_zip
  28. html undefined, global get_html = <function get_html>
  29.  /var/www/erpnext/lib/webnotes/webutils.py in get_html(page_name=u'error')
  30.    35         if not html:
  31.    36                 from webnotes.auth import HTTPRequest
  32.    37                 webnotes.http_request = HTTPRequest()
  33.    38                
  34.    39                 #webnotes.connect()
  35. global webnotes = <module 'webnotes' from '../lib/webnotes/__init__.pyc'>, webnotes.http_request undefined, HTTPRequest = <class webnotes.auth.HTTPRequest>
  36.  /var/www/erpnext/lib/webnotes/auth.py in __init__(self=<webnotes.auth.HTTPRequest instance>)
  37.    60
  38.    61                 # start session
  39.    62                 webnotes.session_obj = Session()
  40.    63                 webnotes.session = webnotes.session_obj.data
  41.    64
  42. global webnotes = <module 'webnotes' from '../lib/webnotes/__init__.pyc'>, webnotes.session_obj undefined, global Session = <class webnotes.sessions.Session>
  43.  /var/www/erpnext/lib/webnotes/sessions.py in __init__(self=<webnotes.sessions.Session instance>, user=None)
  44.   101                         return
  45.   102                        
  46.   103                 self.load()
  47.   104
  48.   105         def start(self):
  49. self = <webnotes.sessions.Session instance>, self.load = <bound method Session.load of <webnotes.sessions.Session instance>>
  50.  /var/www/erpnext/lib/webnotes/sessions.py in load(self=<webnotes.sessions.Session instance>)
  51.   155                                 'user':data.user, 'sid': self.sid})
  52.   156                 else:
  53.   157                         self.start_as_guest()
  54.   158
  55.   159         def get_session_record(self):
  56. self = <webnotes.sessions.Session instance>, self.start_as_guest = <bound method Session.start_as_guest of <webnotes.sessions.Session instance>>
  57.  /var/www/erpnext/lib/webnotes/sessions.py in start_as_guest(self=<webnotes.sessions.Session instance>)
  58.   217                 """all guests share the same 'Guest' session"""
  59.   218                 webnotes.login_manager.login_as_guest()
  60.   219                 self.start()
  61.   220
  62.   221         def update(self):
  63. self = <webnotes.sessions.Session instance>, self.start = <bound method Session.start of <webnotes.sessions.Session instance>>
  64.  /var/www/erpnext/lib/webnotes/sessions.py in start(self=<webnotes.sessions.Session instance>)
  65.   119                 self.data['data']['user'] = webnotes.login_manager.user
  66.   120                 self.data['data']['session_ip'] = os.environ.get('REMOTE_ADDR')
  67.   121                 self.data['data']['last_updated'] = webnotes.utils.now()
  68.   122                 self.data['data']['session_expiry'] = self.get_expiry_period()
  69.   123                 self.data['data']['session_country'] = get_geo_ip_country(os.environ.get('REMOTE_ADDR'))
  70. self = <webnotes.sessions.Session instance>, self.data = {u'data': {u'session_ip': '59.177.191.59', u'user': u'Guest'}, u'user': u'Guest', u'sid': u'Guest'}, webnotes = <module 'webnotes' from '../lib/webnotes/__init__.pyc'>, webnotes.utils = <module 'webnotes.utils' from '../lib/webnotes/utils/__init__.pyc'>, webnotes.utils.now = <function now>
  71.  /var/www/erpnext/lib/webnotes/utils/__init__.py in now()
  72.   213 def now():
  73.   214         """return current datetime as yyyy-mm-dd hh:mm:ss"""
  74.   215         return now_datetime().strftime('%Y-%m-%d %H:%M:%S')
  75.   216        
  76.   217 def nowdate():
  77. global now_datetime = <function now_datetime>, ).strftime undefined
  78.  /var/www/erpnext/lib/webnotes/utils/__init__.py in now_datetime()
  79.   194 def now_datetime():
  80.   195         from datetime import datetime
  81.   196         return convert_utc_to_user_timezone(datetime.utcnow())
  82.   197
  83.   198 def get_user_time_zone():
  84. global convert_utc_to_user_timezone = <function convert_utc_to_user_timezone>, datetime = <type 'datetime.datetime'>, datetime.utcnow = <built-in method utcnow of type object>
  85.  /var/www/erpnext/lib/webnotes/utils/__init__.py in convert_utc_to_user_timezone(utc_timestamp=datetime.datetime(2013, 7, 27, 12, 38, 40, 248866))
  86.   207
  87.   208 def convert_utc_to_user_timezone(utc_timestamp):
  88.   209         from pytz import timezone
  89.   210         utcnow = timezone('UTC').localize(utc_timestamp)
  90.   211         return utcnow.astimezone(timezone(get_user_time_zone()))
  91. pytz undefined, timezone undefined
  92.  /usr/lib/python2.6/site-packages/pytz/__init__.py in ()
  93.    30
  94.    31 try:
  95.    32     from pkg_resources import resource_stream
  96.    33 except ImportError:
  97.    34     resource_stream = None
  98. pkg_resources undefined, resource_stream undefined
  99.  /usr/lib/python2.6/site-packages/pkg_resources.py in ()
  100.  2673 # all distributions added to the working set in the future (e.g. by
  101.  2674 # calling ``require()``) will get activated as well.
  102.  2675 add_activation_listener(lambda dist: dist.activate())
  103.  2676 working_set.entries=[]; map(working_set.add_entry,sys.path) # match order
  104.  2677
  105. add_activation_listener = None, dist undefined
  106.  /usr/lib/python2.6/site-packages/pkg_resources.py in subscribe(self=<pkg_resources.WorkingSet object>, callback=<function <lambda>>)
  107.   660         self.callbacks.append(callback)
  108.   661         for dist in self:
  109.   662             callback(dist)
  110.   663
  111.   664
  112. callback = <function <lambda>>, dist = httplib2 0.8 (/usr/lib/python2.6/site-packages)
  113.  /usr/lib/python2.6/site-packages/pkg_resources.py in (dist=httplib2 0.8 (/usr/lib/python2.6/site-packages))
  114.  2673 # all distributions added to the working set in the future (e.g. by
  115.  2674 # calling ``require()``) will get activated as well.
  116.  2675 add_activation_listener(lambda dist: dist.activate())
  117.  2676 working_set.entries=[]; map(working_set.add_entry,sys.path) # match order
  118.  2677
  119. global add_activation_listener = None, dist = httplib2 0.8 (/usr/lib/python2.6/site-packages), dist.activate = <bound method Distribution.activate of httplib2 0.8 (/usr/lib/python2.6/site-packages)>
  120.  /usr/lib/python2.6/site-packages/pkg_resources.py in activate(self=httplib2 0.8 (/usr/lib/python2.6/site-packages), path=['/var/www/erpnext/lib/public/html', '/usr/lib/python2.6/site-packages/pip-1.4-py2.6.egg', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', u'..', u'../lib', u'../app'])
  121.  2175         """Ensure distribution is importable on `path` (default=sys.path)"""
  122.  2176         if path is None: path = sys.path
  123.  2177         self.insert_on(path)
  124.  2178         if path is sys.path:
  125.  2179             fixup_namespace_packages(self.location)
  126. self = httplib2 0.8 (/usr/lib/python2.6/site-packages), self.insert_on = <bound method Distribution.insert_on of httplib2 0.8 (/usr/lib/python2.6/site-packages)>, path = ['/var/www/erpnext/lib/public/html', '/usr/lib/python2.6/site-packages/pip-1.4-py2.6.egg', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', u'..', u'../lib', u'../app']
  127.  /usr/lib/python2.6/site-packages/pkg_resources.py in insert_on(self=httplib2 0.8 (/usr/lib/python2.6/site-packages), path=['/var/www/erpnext/lib/public/html', '/usr/lib/python2.6/site-packages/pip-1.4-py2.6.egg', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', u'..', u'../lib', u'../app'], loc='/usr/lib/python2.6/site-packages')
  128.  2282
  129.  2283         if path is sys.path:
  130.  2284             self.check_version_conflict()
  131.  2285
  132.  2286         nloc = _normalize_cached(loc)
  133. self = httplib2 0.8 (/usr/lib/python2.6/site-packages), self.check_version_conflict = <bound method Distribution.check_version_conflic... httplib2 0.8 (/usr/lib/python2.6/site-packages)>
  134.  /usr/lib/python2.6/site-packages/pkg_resources.py in check_version_conflict(self=httplib2 0.8 (/usr/lib/python2.6/site-packages))
  135.  2321         nsp = dict.fromkeys(self._get_metadata('namespace_packages.txt'))
  136.  2322         loc = normalize_path(self.location)
  137.  2323         for modname in self._get_metadata('top_level.txt'):
  138.  2324             if (modname not in sys.modules or modname in nsp
  139.  2325                 or modname in _namespace_packages
  140. modname undefined, self = httplib2 0.8 (/usr/lib/python2.6/site-packages), self._get_metadata = <bound method Distribution._get_metadata of httplib2 0.8 (/usr/lib/python2.6/site-packages)>
  141.  /usr/lib/python2.6/site-packages/pkg_resources.py in _get_metadata(self=httplib2 0.8 (/usr/lib/python2.6/site-packages), name='top_level.txt')
  142.  2169     def _get_metadata(self,name):
  143.  2170         if self.has_metadata(name):
  144.  2171             for line in self.get_metadata_lines(name):
  145.  2172                 yield line
  146.  2173
  147. line undefined, self = httplib2 0.8 (/usr/lib/python2.6/site-packages), self.get_metadata_lines = <bound method PathMetadata.get_metadata_lines of <pkg_resources.PathMetadata instance>>, name = 'top_level.txt'
  148.  /usr/lib/python2.6/site-packages/pkg_resources.py in get_metadata_lines(self=<pkg_resources.PathMetadata instance>, name='top_level.txt')
  149.  1166
  150.  1167     def get_metadata_lines(self, name):
  151.  1168         return yield_lines(self.get_metadata(name))
  152.  1169
  153.  1170     def resource_isdir(self,resource_name):
  154. global yield_lines = None, self = <pkg_resources.PathMetadata instance>, self.get_metadata = <bound method PathMetadata.get_metadata of <pkg_resources.PathMetadata instance>>, name = 'top_level.txt'
  155.  /usr/lib/python2.6/site-packages/pkg_resources.py in get_metadata(self=<pkg_resources.PathMetadata instance>, name='top_level.txt')
  156.  1158             if not self.egg_info:
  157.  1159                 return ""
  158.  1160             return self._get(self._fn(self.egg_info,name))
  159.  1161     else:
  160.  1162         def get_metadata(self, name):
  161. self = <pkg_resources.PathMetadata instance>, self._get = <bound method PathMetadata._get of <pkg_resources.PathMetadata instance>>, self._fn = <bound method PathMetadata._fn of <pkg_resources.PathMetadata instance>>, self.egg_info = '/usr/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg-info', name = 'top_level.txt'
  162.  /usr/lib/python2.6/site-packages/pkg_resources.py in _get(self=<pkg_resources.PathMetadata instance>, path='/usr/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg-info/top_level.txt')
  163.  1273
  164.  1274     def _get(self, path):
  165.  1275         stream = open(path, 'rb')
  166.  1276         try:
  167.  1277             return stream.read()
  168. stream undefined, builtin open = <built-in function open>, path = '/usr/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg-info/top_level.txt'
  169. <type 'exceptions.IOError'>: [Errno 13] Permission denied: '/usr/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg-info/top_level.txt'
  170.       args = (13, 'Permission denied')
  171.       errno = 13
  172.       filename = '/usr/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg-info/top_level.txt'
  173.       message = ''
  174.       strerror = 'Permission denied'
Advertisement
Add Comment
Please, Sign In to add comment