Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46870
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-06-04 04:22 -0700 |
| References | <2ecf267a-cd92-4472-9323-92a41288cb5e@googlegroups.com> |
| Message-ID | <48f73ef8-3dba-4043-b2bd-6f50be131e3d@googlegroups.com> (permalink) |
| Subject | Re: files.py failing when run via browser while properly executed via terminal |
| From | Νικόλαος Κούρας <nikos.gr33k@gmail.com> |
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?
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
files.py failing when run via browser while properly executed via terminal Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 03:05 -0700 Re: files.py failing when run via browser while properly executed via terminal Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 04:22 -0700
csiph-web