| <class '_mysql_exceptions.OperationalError'> | Python 2.5.1: /usr/local/bin/python2.5 Sun Jul 6 17:04:43 2008 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /usr/local/cgi/20un/products/ShowProduct.py in |
| 129 self.__ncg.display(r'%sShowProduct.html'%self.htmlDocsPath) |
| 130 |
| 131 |
| 132 pageObj = ShowProduct() |
| 133 pageObj.show() |
| pageObj = <__main__.ShowProduct instance at 0x81c58cc>, pageObj.show = <bound method ShowProduct.show of <__main__.ShowProduct instance at 0x81c58cc>> |
| /usr/local/cgi/20un/products/ShowProduct.py in show(self=<__main__.ShowProduct instance at 0x81c58cc>) |
| 122 productID = self.__ncg.hdf.getIntValue('Query.productID',0) |
| 123 if productID: |
| 124 prObj = self.getProduct(productID) |
| 125 if prObj is not None: |
| 126 self.setCompanyInfo(prObj.mainID) |
| prObj undefined, self = <__main__.ShowProduct instance at 0x81c58cc>, self.getProduct = <bound method ShowProduct.getProduct of <__main__.ShowProduct instance at 0x81c58cc>>, productID = 4178 |
| /usr/local/cgi/20un/products/ShowProduct.py in getProduct(self=<__main__.ShowProduct instance at 0x81c58cc>, productID=4178) |
| 66 |
| 67 def getProduct(self,productID): |
| 68 prObj = Product({'ID':productID}) |
| 69 if prObj.loadProductInfo() is not None: |
| 70 setValue = self.__ncg.hdf.setValue |
| prObj undefined, global Product = <class ProductManager.Product at 0x8241bcc>, productID = 4178 |
| /usr/local/core/ProductManager.py in __init__(self=<ProductManager.Product instance at 0x81cd22c>, params={'ID': 4178}) |
| 32 def __init__(self,params={}): |
| 33 import DataAccessLayer |
| 34 self.__dataObj = DataAccessLayer.DataLayer() |
| 35 if type(params)<>type({}): |
| 36 raise ValueError,'Invalid Value' |
| self = <ProductManager.Product instance at 0x81cd22c>, self.__dataObj undefined, DataAccessLayer = <module 'DataAccessLayer' from '/usr/local/core/DataAccessLayer.pyc'>, DataAccessLayer.DataLayer = <class DataAccessLayer.DataLayer at 0x823c1dc> |
| /usr/local/core/DataAccessLayer.py in __init__(self=<DataAccessLayer.DataLayer instance at 0x81cd1ec>) |
| 49 |
| 50 class DataLayer: |
| 51 def __init__(self): self.__sqlObj = SQLDataAccess() |
| 52 |
| 53 |
| __init__ undefined, self = <DataAccessLayer.DataLayer instance at 0x81cd1ec>, self.__sqlObj undefined, global SQLDataAccess = <class DataAccessLayer.SQLDataAccess at 0x823c1ac> |
| /usr/local/core/DataAccessLayer.py in __init__(self=<DataAccessLayer.SQLDataAccess instance at 0x823bacc>) |
| 12 self.__connection = MySQLdb.connect(host=ncg.hdf.getValue('dbHost','localhost'),user=ncg.hdf.getValue('dbUser',''), |
| 13 passwd=ncg.hdf.getValue('dbPass',''),db=ncg.hdf.getValue('dbDB',''), |
| 14 client_flag =65536|131072) # client_flags: CLIENT_MULTI_STATEMENTS 65536 , CLIENT_MULTI_RESULTS 131072 |
| 15 except: raise |
| 16 |
| client_flag undefined |
| /usr/local/lib/python2.5/site-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'client_flag': 196608, 'db': 'main', 'host': 'localhost', 'passwd': 'TwL904#Bt', 'user': 'xpcHSK909'}) |
| 72 """Factory function for connections.Connection.""" |
| 73 from connections import Connection |
| 74 return Connection(*args, **kwargs) |
| 75 |
| 76 connect = Connection = Connect |
| Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'client_flag': 196608, 'db': 'main', 'host': 'localhost', 'passwd': 'TwL904#Bt', 'user': 'xpcHSK909'} |
| /usr/local/lib/python2.5/site-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 82d4c0c>, *args=(), **kwargs={'client_flag': 196608, 'db': 'main', 'host': 'localhost', 'passwd': 'TwL904#Bt', 'user': 'xpcHSK909'}) |
| 168 kwargs2['client_flag'] = client_flag |
| 169 |
| 170 super(Connection, self).__init__(*args, **kwargs2) |
| 171 |
| 172 self.encoders = dict([ (k, v) for k, v in conv.items() |
| builtin super = <type 'super'>, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 82d4c0c>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 82d4c0c>>, args = (), kwargs2 = {'client_flag': 196608, 'conv': {0: <class 'decimal.Decimal'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x82351ec>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x8235144>, ...}, 'db': 'main', 'host': 'localhost', 'passwd': 'TwL904#Bt', 'user': 'xpcHSK909'} |
<class '_mysql_exceptions.OperationalError'>: (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)")