| <class 'pyodbc.ProgrammingError'> | Python 2.7.12: /usr/bin/python Sun Dec 14 09:05:03 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/sandbox/public_html/cgi-bin/Space.py in |
| 156 condition = condition.replace("'city", "' and city") |
| 157 |
| 158 displayResults("templateNmap.htm", db, project, condition ) |
| 159 |
| => 160 main() |
| main = <function main> |
| /home/sandbox/public_html/cgi-bin/Space.py in main() |
| 156 condition = condition.replace("'city", "' and city") |
| 157 |
| => 158 displayResults("templateNmap.htm", db, project, condition ) |
| 159 |
| 160 main() |
| global displayResults = <function displayResults>, db = 'db=Class2019B', project = '', condition = "city='\xec\x84\xb1\xeb\x82\xa8'" |
| /home/sandbox/public_html/cgi-bin/Space.py in displayResults(template='templateNmap.htm', db='db=Class2019B', project='', condition="city='\xec\x84\xb1\xeb\x82\xa8'") |
| 115 if not line: break |
| 116 if( '#YourData' == line.strip()): |
| => 117 displayData( db, project, condition ) |
| 118 else: |
| 119 print line |
| global displayData = <function displayData>, db = 'db=Class2019B', project = '', condition = "city='\xec\x84\xb1\xeb\x82\xa8'" |
| /home/sandbox/public_html/cgi-bin/Space.py in displayData(database='db=Class2019B', project='', condition="city='\xec\x84\xb1\xeb\x82\xa8'") |
| 75 password = 'guest' |
| 76 |
| => 77 db = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password) |
| 78 cur = db.cursor() |
| 79 |
| db undefined, global pyodbc = <module 'pyodbc' from '/usr/local/lib/python2.7/dist-packages/pyodbc.so'>, pyodbc.connect = <built-in function connect>, server = 'tcp:digerati.aks.ac.kr', database = 'db=Class2019B', username = 'guest', password = 'guest' |
<class 'pyodbc.ProgrammingError'>: ('42000', u'[42000] [unixODBC][Microsoft][ODBC Driver 17 for SQL Server][SQL Server]\ub85c\uadf8\uc778\uc5d0\uc11c \uc694\uccad\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 "db=Class2019B"\uc744(\ub97c) \uc5f4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \ub85c\uadf8\uc778\uc774 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. (4060) (SQLDriverConnect)')
args =
('42000', u'[42000] [unixODBC][Microsoft][ODBC Driver 17 for... \uc5f4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \ub85c\uadf8\uc778\uc774 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. (4060) (SQLDriverConnect)')
message =
''