Code Monkey home page Code Monkey logo

Comments (11)

ph47s74x avatar ph47s74x commented on May 13, 2024 1

#57 was merged, but not sure if it ever fixed the issue. Let us know if you're still having the issue which in that case a new PR would be great

Same issue for me. Fresh ubuntu-22.04.3-desktop-amd64.iso VM and only one monitor, but I'm using a 4k monitor. Not sure if this is a problem. Used pip install self-operating-computer to install.

I am using Ubuntu 20.04.2 and had a similar issue.

I used this issues responses to solve it;

issue: #80

This seems to be related to Pillow and ImageGrab on machines (possibly just virtual machines) that have Wayland enabled.

Here is the fix that worked for me on Ubuntu 22.04.3 LTS in a virtualbox.

https://stackoverflow.com/questions/75752576/pillow-imagegrab-grab-not-working-on-a-virtual-machine

# Open this file
/etc/gdm3/custom.conf
# Set this value to disable Wayland
WaylandEnable=false

then

# Restart gdm3
sudo systemctl restart gdm3

from self-operating-computer.

michaelhhogue avatar michaelhhogue commented on May 13, 2024

What operating system are you on? Also, do you have multiple monitors?

from self-operating-computer.

Andy1996247 avatar Andy1996247 commented on May 13, 2024

What operating system are you on? Also, do you have multiple monitors?

Ubuntu 22. And yes I run 2 monitors.

from self-operating-computer.

michaelhhogue avatar michaelhhogue commented on May 13, 2024

There are some known issues with multi-monitor setups. #57 proposes a change that uses only the active monitor on Linux.

from self-operating-computer.

joshbickett avatar joshbickett commented on May 13, 2024

#57 was merged, but not sure if it ever fixed the issue. Let us know if you're still having the issue which in that case a new PR would be great

from self-operating-computer.

michaelhhogue avatar michaelhhogue commented on May 13, 2024

@joshbickett @Andy1996247 #57 didn't fix this issue. The active monitor needs to be selected in the screenshot when there are multiple monitors connected. Will look into this tonight.

from self-operating-computer.

SebastianHausler avatar SebastianHausler commented on May 13, 2024

#57 was merged, but not sure if it ever fixed the issue. Let us know if you're still having the issue which in that case a new PR would be great

Same issue for me. Fresh ubuntu-22.04.3-desktop-amd64.iso VM and only one monitor, but I'm using a 4k monitor. Not sure if this is a problem. Used pip install self-operating-computer to install.

from self-operating-computer.

Andy1996247 avatar Andy1996247 commented on May 13, 2024

#57 was merged, but not sure if it ever fixed the issue. Let us know if you're still having the issue which in that case a new PR would be great

Same issue for me. Fresh ubuntu-22.04.3-desktop-amd64.iso VM and only one monitor, but I'm using a 4k monitor. Not sure if this is a problem. Used pip install self-operating-computer to install.

I am using Ubuntu 20.04.2 and had a similar issue.

I used this issues responses to solve it;

issue: #80

This seems to be related to Pillow and ImageGrab on machines (possibly just virtual machines) that have Wayland enabled.
Here is the fix that worked for me on Ubuntu 22.04.3 LTS in a virtualbox.
https://stackoverflow.com/questions/75752576/pillow-imagegrab-grab-not-working-on-a-virtual-machine

# Open this file
/etc/gdm3/custom.conf
# Set this value to disable Wayland
WaylandEnable=false

then

# Restart gdm3
sudo systemctl restart gdm3

thankyou this worked

from self-operating-computer.

joshbickett avatar joshbickett commented on May 13, 2024

@michaelhhogue since #80 is a fix for this issue. I wonder if we could incorporate that fix into the project some how to avoid these issues in the future. Let me know if you have thoughts

from self-operating-computer.

michaelhhogue avatar michaelhhogue commented on May 13, 2024

@joshbickett It probably would be best to add this to the README or in a separate file that a link could point to. Even MSS, which I've looked into as a better screenshot solution, would still produce this error. From what I've found, it would take a lot of weird dependencies to actually add support for Wayland to resolve this issue automatically.

If no one else opens one, I'll probably do a PR for this after I'm done working on LLaVA support.

from self-operating-computer.

joshbickett avatar joshbickett commented on May 13, 2024

Ok sounds good. I wonder if it makes sense to create a linux-readme.md or something like that which we can link to from the readme.md for a more in-depth install? Not sure what the standard is in these situations

from self-operating-computer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.