question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyautogui code not working in 4gb ram pc,but working fine with 8gb ram

See original GitHub issue

in my python code i will provide a specific part of window screenshot image which i want to detect and if this image not found in screen then it will press some button

while(True):
    element = pg.locateOnScreen(target_image)
    if(element!=None):
        print('Visible')
        
    else:
        press_button()

The logic is that simple,but in 4gb ram(core i3) computer the code taking too long to run,but in 8gb ram(core i5) the code working perfectly

I am not getting why this is hapenning,it’s just few lines of code. Should i have to upgrade the hardware or there is any way to simplify code for lower end computer?

If anyone have any idea,please let me know.

Thank you

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
winstxnhdwcommented, Jan 20, 2022

Sorry to dig this up with no fix for your error. But I do believe you are correct in saying it does not work on 4GB ram systems (or other hardware related systems) - have not confirmed on higher RAM systems yet.

Edit for developers of PyAutoGUI - note; I am also using an I3 processor.

Honestly, if anything, it just might be that you are on a 32-bit system.

2reactions
winstxnhdwcommented, Oct 15, 2021

Your issue is most likely unrelated to your RAM size.

Read more comments on GitHub >

github_iconTop Results From Across the Web

why does my pyautogui code not works good - Stack Overflow
the problem when I add another action ,which is I want the mouse move to the position of the image. the script works...
Read more >
PyAutoGUI 0.9.53 - PythonFix.com
PyAutoGUI lets Python control the mouse and keyboard, and other GUI ... code not working in 4gb ram pc,but working fine with 8gb...
Read more >
I have 8GB of RAM but only showing 4GB - Microsoft Community
I checked nvidia and it was all fine so I checked how much memory I was using and it says 3.7 of 4GB....
Read more >
Is 8GB RAM enough for a programmer that does some light ...
Is a Core i3 processor and 4GB RAM laptop good enough for web development? ... If you're working on a computer 9–5, 5...
Read more >
Is 4 gb ram enough for programming? - Sololearn
I'd recommend 8GB, maybe as a single RAM stick so you can upgrade to 16 later ... which okay would use 2 slot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found