--> --> -->
 
 
<type 'exceptions.UnboundLocalError'>
Python 2.7.6: /usr/bin/python
Sun Aug 28 02:31:33 2016

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/mint/index.py in ()
    255         #HTML_object.HTML_header()
    256     
=>  257         Execute.showIndex()
    258        
    259         #HTML_object.HTML_footer()
Execute = <__main__.Execute instance>, Execute.showIndex = <bound method Execute.showIndex of <__main__.Execute instance>>
 /var/www/mint/index.py in showIndex(self=<__main__.Execute instance>)
     73 
     74                 dbFunction=DataBaseFunction()
=>   75                 recPROTEINS=dbFunction.SELECTproteins()
     76                 print 'Content-Type: text/html\n\n'
     77                 print '<html>'
recPROTEINS undefined, dbFunction = <__main__.DataBaseFunction instance>, dbFunction.SELECTproteins = <bound method DataBaseFunction.SELECTproteins of <__main__.DataBaseFunction instance>>
 /var/www/mint/index.py in SELECTproteins(self=<__main__.DataBaseFunction instance>)
     54         def SELECTproteins(self):
     55                 import connection
=>   56                 conn=connection.DbConnection()
     57                 cur=conn.cursor()
     58                 
conn undefined, connection = <module 'connection' from '/var/www/mint/connection.pyc'>, connection.DbConnection = <function DbConnection>
 /var/www/mint/connection.py in DbConnection()
     12         msg="I am unable to connect to the database"
     13     
=>   14     return conn
     15 
     16    
conn undefined

<type 'exceptions.UnboundLocalError'>: local variable 'conn' referenced before assignment
      args = ("local variable 'conn' referenced before assignment",)
      message = "local variable 'conn' referenced before assignment"