I attempt to run a python program and the following pops up in command prompt:
"Unable to initialize device PRN"
I should also mention that the program runs fine.
Short for PRiNter, PRN is the name MS-DOS assigns to the first parallel port. For example, MS-DOS may report the following error message: "Not Ready Writing Device PRN. ... if MS-DOS is unable to access or send information to the printer port.
Print a file or files to a local or network printer. Syntax PRINT [/D:device] [pathname(s)] Key device Either a local printer (LPTx, COMx ) or a network printer by its sharename (\\servername\print_share) pathname The file or files to be printed. The default device is PRN.
I had this same problem when I accidentally typed "print program.py" instead of "python program.py". The error message comes from the Windows command-line program named print
. Those who suggested restarting the command prompt probably committed the same typo without noticing, and corrected it in their new command prompt.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With