<class 'pyodbc.ProgrammingError'> | Python 2.7.12: /usr/bin/python Fri Jun 14 16:49:19 2024 |
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 = 's_inhyeog', project = 'PCSpace', condition = "type='\xed\x83\x9c\xec\x8b\xa4' and province='\xea\xb2\xbd\xec\x83\x81\xeb\xb6\x81\xeb\x8f\x84' and city='\xec\x84\xb1\xec\xa3\xbc\xea\xb5\xb0'" |
/home/sandbox/public_html/cgi-bin/Space.py in displayResults(template='templateNmap.htm', db='s_inhyeog', project='PCSpace', condition="type='\xed\x83\x9c\xec\x8b\xa4' and province='\xea\xb2\xbd\xec\x83\x81\xeb\xb6\x81\xeb\x8f\x84' and city='\xec\x84\xb1\xec\xa3\xbc\xea\xb5\xb0'") |
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 = 's_inhyeog', project = 'PCSpace', condition = "type='\xed\x83\x9c\xec\x8b\xa4' and province='\xea\xb2\xbd\xec\x83\x81\xeb\xb6\x81\xeb\x8f\x84' and city='\xec\x84\xb1\xec\xa3\xbc\xea\xb5\xb0'" |
/home/sandbox/public_html/cgi-bin/Space.py in displayData(database='s_inhyeog', project='PCSpace', condition="type='\xed\x83\x9c\xec\x8b\xa4' and province='\xea\xb2\xbd\xec\x83\x81\xeb\xb6\x81\xeb\x8f\x84' and city='\xec\x84\xb1\xec\xa3\xbc\xea\xb5\xb0'") |
86 command = comstring |
87 |
=> 88 cur.execute(unicode(command, "utf-8")) |
89 |
90 poiList = [] |
cur = <pyodbc.Cursor object>, cur.execute = <built-in method execute of pyodbc.Cursor object>, builtin unicode = <type 'unicode'>, command = "select gid, type, province, city, label, latitud... and province='\xea\xb2\xbd\xec\x83\x81\xeb\xb6\x81\xeb\x8f\x84' and city='\xec\x84\xb1\xec\xa3\xbc\xea\xb5\xb0'" |
<class 'pyodbc.ProgrammingError'>: ('42S02', u"[42S02] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]\uac1c\uccb4 \uc774\ub984 'PCSpaceSpace'\uc774(\uac00) \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4. (208) (SQLExecDirectW)")
args =
('42S02', u"[42S02] [Microsoft][ODBC Driver 17 for SQL Serve...PCSpaceSpace'\uc774(\uac00) \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4. (208) (SQLExecDirectW)")
message =
''