Python Forum
[SOLVED] OSError: [Errno 22] Invalid argument
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] OSError: [Errno 22] Invalid argument
#9
(Jun-03-2018, 02:30 PM)wavic Wrote: Yea I left one quote when I pasted it. The path to the file is not 'Path to the log file/Logs' but 'C:/Users/Richard/Desktop/Atom/K/Logs'

hdlr = logging.FileHandler('C:/Users/Richard/Desktop/Atom/K/Logs/log'+str(datetime.datetime.now())+'.log')
If you give you an error post it.

Perhaps you don't understand. This was there the entire time. I just didn't say the full path.
Self-taught HTML, CSS, Python, and Java programmer
Reply


Messages In This Thread
RE: OSError: [Errno 22] Invalid argument - by wavic - Jun-03-2018, 02:09 PM
RE: OSError: [Errno 22] Invalid argument - by Panda - Jun-03-2018, 02:10 PM
RE: OSError: [Errno 22] Invalid argument - by wavic - Jun-03-2018, 02:12 PM
RE: OSError: [Errno 22] Invalid argument - by Panda - Jun-03-2018, 02:15 PM
RE: OSError: [Errno 22] Invalid argument - by wavic - Jun-03-2018, 02:21 PM
RE: OSError: [Errno 22] Invalid argument - by Panda - Jun-03-2018, 02:24 PM
RE: OSError: [Errno 22] Invalid argument - by wavic - Jun-03-2018, 02:30 PM
RE: OSError: [Errno 22] Invalid argument - by Panda - Jun-03-2018, 02:31 PM
RE: OSError: [Errno 22] Invalid argument - by buran - Jun-03-2018, 02:39 PM
RE: OSError: [Errno 22] Invalid argument - by Panda - Jun-03-2018, 02:51 PM
RE: OSError: [Errno 22] Invalid argument - by wavic - Jun-03-2018, 02:41 PM
RE: OSError: [Errno 22] Invalid argument - by buran - Jun-03-2018, 02:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  OSError occurs in Linux. anna17 2 477 Mar-23-2024, 10:00 PM
Last Post: snippsat
  Invalid argument: 'images\x08ackground.jpg' CatBall 4 1,111 Jun-19-2023, 09:28 AM
Last Post: CatBall
  OSError with SMPT script Milan 0 880 Apr-28-2023, 01:34 PM
Last Post: Milan
  OSERROR When mkdir Oshadha 4 1,944 Jun-29-2022, 08:50 AM
Last Post: DeaD_EyE
  [split] [Errno 22] Invalid argument Junaid 0 2,365 Jun-12-2021, 06:02 PM
Last Post: Junaid
  [solved] Variable number of dictionnaries as argument in def() paul18fr 11 6,393 Apr-20-2021, 11:15 AM
Last Post: paul18fr
  OSError: Unable to load libjvm when connecting to hdfs with pyarrow 3.0.0 aupres 0 3,285 Mar-22-2021, 10:25 AM
Last Post: aupres
  pyarrow throws oserror winerror 193 1 is not a valid win32 application aupres 2 3,929 Oct-21-2020, 01:04 AM
Last Post: aupres
  [Errno 22] Invalid argument satyaneel 11 107,255 Jul-14-2020, 08:47 AM
Last Post: lichunming
  zlib decompress error: invalid code lengths set / invalid block type DreamingInsanity 0 7,039 Mar-29-2020, 12:44 PM
Last Post: DreamingInsanity

Forum Jump:

User Panel Messages

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