Skip to content Skip to sidebar Skip to footer

Oserror: [winerror 1450] Insufficient System Resources Exist To Complete The Requested Service Using Selenium In Python Through Anaconda

I've been running the same python script using windows task scheduler for the past month, then all of a sudden the script runs into an Insufficient Resources error (see below). My

Solution 1:

This error message...

OSError: [WinError 1450] Insufficient system resources exist to complete the requested service

...implies that the Python Client was unable to complete a particular requested service.

This error doesn't seem to be Selenium related but involves the Python Client and the underlying Operating System.

However, as per "Insufficient System Resources Exist to Complete the Requested Service" Error on Windows often occurs on the Windows 10 OS when you leave your computer on for a long time, when you plug into a USB drive, or when you're trying to launch some .exe files like the Chrome browser, iTunes, Microsoft Edge, etc. Then the computer will get freezing or stuttering. After a PC reboot, the error may happen again and stop your computing.


Solution

The two most frequently used approach are as follows:

A. Modify Registry to Fix "Insufficient System Resources Exist to Complete the Requested Service"

  • If Windows 10 has no enough inner memory resources to create the system image, then you will get stuck on the system error "insufficient system resources exist to complete the requested service". A registry modification could release the pain.
  • Use Windows shortcut keys Win + R to open the Run.
  • Type into regedit.
  • Hit the Enter.
  • Expand the entry for the subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer.
  • Highlight the LanmanServer and right-click the blank area on the right pane.
  • Select the New and DWORD (32-bit) Value.
  • Name the new entry as maxworkitems.
  • Double-click the new entry and type 1024 into the Value data box.
  • Click the OK. (Note: If your computer memory storage is less than 512M, type 256 into the box.)

ModifyRegistry1

  • Go to the subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.
  • Highlight the Memory Management.
  • On the right side, right-click the blank area to create a new DWORD (32-bit) Value.
  • Name the new entry as PoolUsageMaximum.
  • Change the Value data to 60 and choose the Decimal option.
  • Click the OK.

ModifyRegistry2

  • Restart the computer.
  • Note: Registry Editor is a database storing important Windows data. You'd better backup registry before any modification in case other serious system errors occur, such as black screen problem, boot loop issue, "system cannot find the file specified" error, etc.

B. Scan Disk Drive to Fix the Error

  • The faulty disk drive can result in the error "insufficient system resources exist to complete the requested service" and other storage problems, such as high memory usage issue, memory leak issue, 100% disk usage problem, etc. So it may be necessary to take a scan to check the disk.
  • Open This PC on Windows 10.
  • Right-click the C: drive and select Properties.
  • Go to the Tools tab.
  • Click the Check button.
  • Click the Scan drive.

scan_disk_drive

  • Then Windows 10 will start checking. If errors are found, you can follow the on-screen instructions to fix them.
  • After that, you can also click the Optimize button on the C: drive Properties to optimize the drive.

Solution 2:

This happened to me. In my case, Python was trying to load a DLL, but the DLL was blocked by my antivirus software. Check your antivirus logs to see if it blocked anything run by Python.

Post a Comment for "Oserror: [winerror 1450] Insufficient System Resources Exist To Complete The Requested Service Using Selenium In Python Through Anaconda"