Python Forum
io.UnsupportedOperation: not readable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
io.UnsupportedOperation: not readable
#2
In your with statement on line 9, you have assigned both the input and output versions of your file to 'f'. So the output one overwrites the input one, and you can't read from a file open in 'w' mode. Since you are not writing to the output in that with block, I would just remove that second file assignment.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
io.UnsupportedOperation: not readable - by navidmo - Oct-31-2019, 10:26 PM
RE: io.UnsupportedOperation: not readable - by ichabod801 - Oct-31-2019, 11:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  io.UnsupportedOperation: not readable RedSkeleton007 2 18,789 Nov-06-2023, 06:32 AM
Last Post: gpurdy
  io.UnsupportedOperation: fileno toml12953 3 1,735 Jun-15-2023, 08:48 PM
Last Post: toml12953
  How to make x-axis readable with matplotlib Mark17 7 3,941 Mar-01-2022, 04:30 PM
Last Post: DPaul
  Function global not readable by 'main' fmr300 1 1,356 Jan-16-2022, 01:18 AM
Last Post: deanhystad
  Display output in readable format and save hnkrish 1 2,640 Jul-19-2019, 09:29 AM
Last Post: Larz60+
  How to convert Python crawled Bing web page content to human readable? dalaludidu 4 3,428 Sep-02-2018, 04:15 PM
Last Post: dalaludidu
  Time Difference in Epoch Microseconds then convert to human readable firesh 4 11,649 Feb-27-2018, 09:08 AM
Last Post: firesh
  which code is more readable? Skaperen 5 5,722 Nov-14-2016, 02:37 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020