GithubHelp home page GithubHelp logo

Running wm.py on macOS about snakeware HOT 5 CLOSED

sdubois avatar sdubois commented on May 22, 2024
Running wm.py on macOS

from snakeware.

Comments (5)

zachpmanson avatar zachpmanson commented on May 22, 2024

Pygame and pygame GUI are 2 packages required to run the window manager.
I've sent a pull request that adds this explanation to a readme in snakewm, along with the other pip packages you need.

Run:

python3 -m pip install pygame

And

python3 -m pip install pygame-gui

from snakeware.

zachpmanson avatar zachpmanson commented on May 22, 2024

I just realised I misread the part where you installed the packages. Sorry if my reply seemed condescending.

from snakeware.

sdubois avatar sdubois commented on May 22, 2024

Not at all! I have pygame and pygame-gui installed, but wm.py still returns

Traceback (most recent call last):
  File "wm.py", line 11, in <module>
    import pygame, pygame_gui
ImportError: No module named pygame

from snakeware.

horstjens avatar horstjens commented on May 22, 2024

@sdubois as you write that you are using MacOS:
can it be that you have pygame installed for python2, but not for python3 ?
As far as i understand each MacOS has an python2 on board.
You can check by typing in a terminal:
python
(make sure it says python version 3 something) and then
import pygame
If you still get an error than pygame was installed for python2.

from snakeware.

sdubois avatar sdubois commented on May 22, 2024

Ah you are right! I was able to get it working by using the python3 command.

from snakeware.

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.