Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --> --> -->
- <type 'exceptions.IOError'> Python 2.6.6: /usr/bin/python
- Sat Jul 27 16:38:40 2013
- A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
- /var/www/erpnext/public/web.py in ()
- 43 return webnotes.webutils.render(webnotes.form_dict.get('page'))
- 44
- 45 if __name__=="__main__":
- 46 init()
- 47 respond()
- respond = <function respond>
- /var/www/erpnext/public/web.py in respond()
- 41 import webnotes
- 42 import webnotes.webutils
- 43 return webnotes.webutils.render(webnotes.form_dict.get('page'))
- 44
- 45 if __name__=="__main__":
- 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>
- /var/www/erpnext/lib/webnotes/webutils.py in render(page_name=None)
- 15 html = get_html('index')
- 16 except Exception:
- 17 html = get_html('error')
- 18
- 19 from webnotes.handler import eprint, print_zip
- html undefined, global get_html = <function get_html>
- /var/www/erpnext/lib/webnotes/webutils.py in get_html(page_name=u'error')
- 35 if not html:
- 36 from webnotes.auth import HTTPRequest
- 37 webnotes.http_request = HTTPRequest()
- 38
- 39 #webnotes.connect()
- global webnotes = <module 'webnotes' from '../lib/webnotes/__init__.pyc'>, webnotes.http_request undefined, HTTPRequest = <class webnotes.auth.HTTPRequest>
- /var/www/erpnext/lib/webnotes/auth.py in __init__(self=<webnotes.auth.HTTPRequest instance>)
- 60
- 61 # start session
- 62 webnotes.session_obj = Session()
- 63 webnotes.session = webnotes.session_obj.data
- 64
- global webnotes = <module 'webnotes' from '../lib/webnotes/__init__.pyc'>, webnotes.session_obj undefined, global Session = <class webnotes.sessions.Session>
- /var/www/erpnext/lib/webnotes/sessions.py in __init__(self=<webnotes.sessions.Session instance>, user=None)
- 101 return
- 102
- 103 self.load()
- 104
- 105 def start(self):
- self = <webnotes.sessions.Session instance>, self.load = <bound method Session.load of <webnotes.sessions.Session instance>>
- /var/www/erpnext/lib/webnotes/sessions.py in load(self=<webnotes.sessions.Session instance>)
- 155 'user':data.user, 'sid': self.sid})
- 156 else:
- 157 self.start_as_guest()
- 158
- 159 def get_session_record(self):
- self = <webnotes.sessions.Session instance>, self.start_as_guest = <bound method Session.start_as_guest of <webnotes.sessions.Session instance>>
- /var/www/erpnext/lib/webnotes/sessions.py in start_as_guest(self=<webnotes.sessions.Session instance>)
- 217 """all guests share the same 'Guest' session"""
- 218 webnotes.login_manager.login_as_guest()
- 219 self.start()
- 220
- 221 def update(self):
- self = <webnotes.sessions.Session instance>, self.start = <bound method Session.start of <webnotes.sessions.Session instance>>
- /var/www/erpnext/lib/webnotes/sessions.py in start(self=<webnotes.sessions.Session instance>)
- 119 self.data['data']['user'] = webnotes.login_manager.user
- 120 self.data['data']['session_ip'] = os.environ.get('REMOTE_ADDR')
- 121 self.data['data']['last_updated'] = webnotes.utils.now()
- 122 self.data['data']['session_expiry'] = self.get_expiry_period()
- 123 self.data['data']['session_country'] = get_geo_ip_country(os.environ.get('REMOTE_ADDR'))
- 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>
- /var/www/erpnext/lib/webnotes/utils/__init__.py in now()
- 213 def now():
- 214 """return current datetime as yyyy-mm-dd hh:mm:ss"""
- 215 return now_datetime().strftime('%Y-%m-%d %H:%M:%S')
- 216
- 217 def nowdate():
- global now_datetime = <function now_datetime>, ).strftime undefined
- /var/www/erpnext/lib/webnotes/utils/__init__.py in now_datetime()
- 194 def now_datetime():
- 195 from datetime import datetime
- 196 return convert_utc_to_user_timezone(datetime.utcnow())
- 197
- 198 def get_user_time_zone():
- 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>
- /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))
- 207
- 208 def convert_utc_to_user_timezone(utc_timestamp):
- 209 from pytz import timezone
- 210 utcnow = timezone('UTC').localize(utc_timestamp)
- 211 return utcnow.astimezone(timezone(get_user_time_zone()))
- pytz undefined, timezone undefined
- /usr/lib/python2.6/site-packages/pytz/__init__.py in ()
- 30
- 31 try:
- 32 from pkg_resources import resource_stream
- 33 except ImportError:
- 34 resource_stream = None
- pkg_resources undefined, resource_stream undefined
- /usr/lib/python2.6/site-packages/pkg_resources.py in ()
- 2673 # all distributions added to the working set in the future (e.g. by
- 2674 # calling ``require()``) will get activated as well.
- 2675 add_activation_listener(lambda dist: dist.activate())
- 2676 working_set.entries=[]; map(working_set.add_entry,sys.path) # match order
- 2677
- add_activation_listener = None, dist undefined
- /usr/lib/python2.6/site-packages/pkg_resources.py in subscribe(self=<pkg_resources.WorkingSet object>, callback=<function <lambda>>)
- 660 self.callbacks.append(callback)
- 661 for dist in self:
- 662 callback(dist)
- 663
- 664
- callback = <function <lambda>>, dist = httplib2 0.8 (/usr/lib/python2.6/site-packages)
- /usr/lib/python2.6/site-packages/pkg_resources.py in (dist=httplib2 0.8 (/usr/lib/python2.6/site-packages))
- 2673 # all distributions added to the working set in the future (e.g. by
- 2674 # calling ``require()``) will get activated as well.
- 2675 add_activation_listener(lambda dist: dist.activate())
- 2676 working_set.entries=[]; map(working_set.add_entry,sys.path) # match order
- 2677
- 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)>
- /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'])
- 2175 """Ensure distribution is importable on `path` (default=sys.path)"""
- 2176 if path is None: path = sys.path
- 2177 self.insert_on(path)
- 2178 if path is sys.path:
- 2179 fixup_namespace_packages(self.location)
- 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']
- /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')
- 2282
- 2283 if path is sys.path:
- 2284 self.check_version_conflict()
- 2285
- 2286 nloc = _normalize_cached(loc)
- 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)>
- /usr/lib/python2.6/site-packages/pkg_resources.py in check_version_conflict(self=httplib2 0.8 (/usr/lib/python2.6/site-packages))
- 2321 nsp = dict.fromkeys(self._get_metadata('namespace_packages.txt'))
- 2322 loc = normalize_path(self.location)
- 2323 for modname in self._get_metadata('top_level.txt'):
- 2324 if (modname not in sys.modules or modname in nsp
- 2325 or modname in _namespace_packages
- 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)>
- /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')
- 2169 def _get_metadata(self,name):
- 2170 if self.has_metadata(name):
- 2171 for line in self.get_metadata_lines(name):
- 2172 yield line
- 2173
- 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'
- /usr/lib/python2.6/site-packages/pkg_resources.py in get_metadata_lines(self=<pkg_resources.PathMetadata instance>, name='top_level.txt')
- 1166
- 1167 def get_metadata_lines(self, name):
- 1168 return yield_lines(self.get_metadata(name))
- 1169
- 1170 def resource_isdir(self,resource_name):
- 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'
- /usr/lib/python2.6/site-packages/pkg_resources.py in get_metadata(self=<pkg_resources.PathMetadata instance>, name='top_level.txt')
- 1158 if not self.egg_info:
- 1159 return ""
- 1160 return self._get(self._fn(self.egg_info,name))
- 1161 else:
- 1162 def get_metadata(self, name):
- 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'
- /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')
- 1273
- 1274 def _get(self, path):
- 1275 stream = open(path, 'rb')
- 1276 try:
- 1277 return stream.read()
- 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'
- <type 'exceptions.IOError'>: [Errno 13] Permission denied: '/usr/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg-info/top_level.txt'
- args = (13, 'Permission denied')
- errno = 13
- filename = '/usr/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg-info/top_level.txt'
- message = ''
- strerror = 'Permission denied'
Advertisement
Add Comment
Please, Sign In to add comment