Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49612
| From | Νίκος <nikos@superhost.gr> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: OSError [Errno 26] ?!?! |
| Date | 2013-07-02 08:57 +0300 |
| Organization | GRNET - Greek Research and Technology Network |
| Message-ID | <kqtq4f$skq$1@news.grnet.gr> (permalink) |
| References | <kqthtc$10l$1@news.grnet.gr> <mailman.4088.1372742561.3114.python-list@python.org> |
Στις 2/7/2013 8:15 πμ, ο/η Cameron Simpson έγραψε:
> On 02Jul2013 06:37, Νίκος <nikos@superhost.gr> wrote:
> | After making a slightly chnage inside my pelatologio.py script
> | substituting '*****' instead of '-----' for no apparent reason i
> | receive the following error:
> |
> | [Tue Jul 02 06:33:06 2013] [error] [client 46.12.97.148] OSError:
> | [Errno 26] \\u0391\\u03c1\\u03c7\\u03b5\\u03af\\u03bf
> | \\u03ba\\u03b5\\u03b9\\u03bc\\u03ad\\u03bd\\u03bf\\u03c5
> | \\u03c3\\u03b5 \\u03c7\\u03c1
>
> Errno 26 depends on your operating system. See "man 2 intro" for details.
> But on my Mac and on a handle Linux system number 26 is:
>
> 26 ETXTBSY Text file busy. The new process was a pure procedure (shared
> text) file which was open for writing by another process, or
> while the pure procedure file was being executed an open call
> requested write access.
>
> See the os.strerror function for printing the message from an errno number:
>
> http://docs.python.org/3/library/os.html#os.strerror
>
> I'd say you're trying to write to a file you shouldn't be writing to.
> Maybe an executable?
>
> Try to get your script to print out the filename of whatever it was trying to
> overwrite before the open() call.
>
> Regarding the characters, I'd say they've been double escaped. Let's undo that:
>
> [/Users/cameron]fleet*> py3
> Python 3.3.2 (default, May 21 2013, 11:50:47)
> [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> print('\\u0391\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ba\\u03b5\\u03b9\\u03bc\\u03ad\\u03bd\\u03bf\\u03c5 \\u03c3\\u03b5 \\u03c7\\u03c1')
> \u0391\u03c1\u03c7\u03b5\u03af\u03bf \u03ba\u03b5\u03b9\u03bc\u03ad\u03bd\u03bf\u03c5 \u03c3\u03b5 \u03c7\u03c1
> >>> print('\u0391\u03c1\u03c7\u03b5\u03af\u03bf \u03ba\u03b5\u03b9\u03bc\u03ad\u03bd\u03bf\u03c5 \u03c3\u03b5 \u03c7\u03c1')
> Αρχείο κειμένου σε χρ
> >>>
>
> I can't read that, but I'd hope you can.
>
> | What is this OSError and these unicode characters besided it?
> | Here is the complete traceback.
>
> A traceback without code isn't terribly useful.
>
> Cheers,
Thank you, the error have been caused due to the fact that the uploading
procedure of my edited 'pelatologio.py' hadn't been completed yet, while
i was requesting the execution of the script via browser.
I didn't had to do anything it solved by itself, after upload was
successful and file got unlocked for access.
Thanks Cameron, and indeed the error message as you printed the Unicode
characters was saying in Greek that file was in use.
--
What is now proved was at first only imagined!
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
OSError [Errno 26] ?!?! Νίκος <nikos@superhost.gr> - 2013-07-02 06:37 +0300
Re: OSError [Errno 26] ?!?! Cameron Simpson <cs@zip.com.au> - 2013-07-02 15:15 +1000
Re: OSError [Errno 26] ?!?! Νίκος <nikos@superhost.gr> - 2013-07-02 08:57 +0300
Re: OSError [Errno 26] ?!?! Cameron Simpson <cs@zip.com.au> - 2013-07-02 17:21 +1000
Re: OSError [Errno 26] ?!?! Νίκος <nikos@superhost.gr> - 2013-07-02 12:40 +0300
Re: OSError [Errno 26] ?!?! Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-07-02 12:06 +0200
Re: OSError [Errno 26] ?!?! Dave Angel <davea@davea.name> - 2013-07-02 08:00 -0400
Re: OSError [Errno 26] ?!?! Νίκος <nikos@superhost.gr> - 2013-07-02 15:39 +0300
Re: OSError [Errno 26] ?!?! Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-07-02 15:00 +0200
Re: OSError [Errno 26] ?!?! Robert Kern <robert.kern@gmail.com> - 2013-07-02 14:58 +0100
Re: OSError [Errno 26] ?!?! Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-03 00:19 +0000
Re: Persistence of CGI (was: OSError [Errno 26] ?!?!) Tim Chase <python.list@tim.thechases.com> - 2013-07-02 19:57 -0500
Python list code of conduct Steve Simmons <square.steve@gmail.com> - 2013-07-02 16:51 +0100
Re: Python list code of conduct Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-03 00:42 +0000
Re: Python list code of conduct Joshua Landau <joshua.landau.ws@gmail.com> - 2013-07-02 20:48 +0100
Re: Python list code of conduct Skip Montanaro <skip@pobox.com> - 2013-07-02 15:33 -0500
Re: Python list code of conduct Ned Deily <nad@acm.org> - 2013-07-02 13:52 -0700
Re: Python list code of conduct Roy Smith <roy@panix.com> - 2013-07-02 19:46 -0400
Re: Python list code of conduct Ned Deily <nad@acm.org> - 2013-07-02 17:07 -0700
Re: Python list code of conduct Cameron Simpson <cs@zip.com.au> - 2013-07-03 10:10 +1000
Bug reports [was Re: Python list code of conduct] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-03 00:52 +0000
Re: Bug reports [was Re: Python list code of conduct] Joshua Landau <joshua.landau.ws@gmail.com> - 2013-07-03 02:12 +0100
Re: Bug reports [was Re: Python list code of conduct] Chris Angelico <rosuav@gmail.com> - 2013-07-03 18:02 +1000
Re: Bug reports [was Re: Python list code of conduct] Roy Smith <roy@panix.com> - 2013-07-03 10:03 -0400
Re: Bug reports [was Re: Python list code of conduct] Chris Angelico <rosuav@gmail.com> - 2013-07-04 00:15 +1000
Re: Bug reports [was Re: Python list code of conduct] Roy Smith <roy@panix.com> - 2013-07-03 10:23 -0400
Re: Bug reports [was Re: Python list code of conduct] Chris Angelico <rosuav@gmail.com> - 2013-07-04 00:52 +1000
Re: Bug reports [was Re: Python list code of conduct] Grant Edwards <invalid@invalid.invalid> - 2013-07-03 20:11 +0000
Re: Bug reports [was Re: Python list code of conduct] Roy Smith <roy@panix.com> - 2013-07-03 16:31 -0400
Re: Bug reports [was Re: Python list code of conduct] Grant Edwards <invalid@invalid.invalid> - 2013-07-03 21:52 +0000
IPv6 deployment by ISPs (was: Bug reports) Ben Finney <ben+python@benfinney.id.au> - 2013-07-04 11:15 +1000
Re: Python list code of conduct Terry Reedy <tjreedy@udel.edu> - 2013-07-03 02:18 -0400
Re: Python list code of conduct Roy Smith <roy@panix.com> - 2013-07-03 10:10 -0400
Re: Python list code of conduct Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-03 17:24 +0000
Re: Python list code of conduct Ben Finney <ben+python@benfinney.id.au> - 2013-07-03 08:39 +1000
Re: Python list code of conduct Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-03 06:18 +0000
Re: Python list code of conduct Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-07-02 19:15 -0400
Re: Python list code of conduct Neil Hodgson <nhodgson@iinet.net.au> - 2013-07-03 19:50 +1000
Re: Python list code of conduct Ben Finney <ben+python@benfinney.id.au> - 2013-07-03 10:39 +1000
Re: Python list code of conduct rusi <rustompmody@gmail.com> - 2013-07-03 04:50 -0700
Re: Python list code of conduct Steve Simmons <square.steve@gmail.com> - 2013-07-03 15:18 +0100
csiph-web