files.py failing when run via browser while properly executed via terminal
Νικόλαος Κούρας
nikos.gr33k at gmail.com
Tue Jun 4 07:22:17 EDT 2013
i tried somehtign else too.
uploaded 1.mp3 and 1.exe from windows 8 via FileZilla to linux webhost
and then renamed them both to Greek letters so that the renaming take place from within the CentOS and after that i tried:
http://superhost.gr/cgi-bin/files.py
Guess what? Still same error :(
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] Error in sys.excepthook:
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] ValueError: underlying buffer has been detached
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59]
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] Original exception was:
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] Traceback (most recent call last):
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] File "files.py", line 67, in <module>
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] cur.execute('''SELECT url FROM files WHERE url = %s''', (fullpath,) )
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] File "/usr/local/lib/python3.3/site-packages/PyMySQL3-0.5-py3.3.egg/pymysql/cursors.py", line 108, in execute
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] query = query.encode(charset)
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] UnicodeEncodeError: 'utf-8' codec can't encode character '\\udcd3' in position 61: surrogates not allowed
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] Premature end of script headers: files.py
[Tue Jun 04 14:21:05 2013] [error] [client 46.12.95.59] File does not exist: /home/nikos/public_html/500.shtml
What the hell is it with these Greek filenames, why everyhting breaks?
More information about the Python-list
mailing list