lyt.exportToPDF OSError during execution

314
1
10-19-2022 09:24 AM
Labels (1)
mlyons
by
New Contributor II

Please see attached picture for the code block.

I have some notebook code that batch plots layouts to pdf. For whatever reason, it gets through a few layouts before throwing the error and terminating the code. I have 16 GB of memory that gets to 85% utilization right before the error. However, a coworker with 32 GB of memory is able to print the entire set perfectly fine. Is this a memory issue?

0 Kudos
1 Reply
AngelaSchirck
Occasional Contributor II

I think you're correct.  An OSError means there's something with the operating system that's preventing the program from working correctly.  From geeksforgeeks:
"OSError is a built-in exception in Python and serves as the error class for the os module, which is raised when an os specific system function returns a system-related error, including I/O failures such as 'file not found' or 'disk full'."