pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.23k stars 328 forks source link

No window opened on macOS #37

Closed Feuermurmel closed 4 years ago

Feuermurmel commented 4 years ago

Hi! I would like to look in to ursina but I can't seem to get the basic examples working. Maybe I'm doing something stupid. I followed the instructions in Ursina Game Engine Tutorial for Dummies to set up a virtualenv:

(venv) $ python3 -m venv venv
(venv) $ . venv/bin/activate
(venv) $ pip install cython
Collecting cython
  Using cached https://files.pythonhosted.org/packages/21/17/135ed3c0b9d4c877af3efed6d5968dd05852aeea84923ce0aa89c045f60f/Cython-0.29.16-cp38-cp38-macosx_10_9_x86_64.whl
Installing collected packages: cython
Successfully installed cython-0.29.16
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(venv) $ pip install git+https://github.com/pokepetter/ursina.git
Collecting git+https://github.com/pokepetter/ursina.git
  Cloning https://github.com/pokepetter/ursina.git to /private/var/folders/zh/qmj7vwqn4ql302y46nl7dp4m0000gn/T/pip-req-build-af1rp9cu
  Running command git clone -q https://github.com/pokepetter/ursina.git /private/var/folders/zh/qmj7vwqn4ql302y46nl7dp4m0000gn/T/pip-req-build-af1rp9cu
Collecting panda3d (from ursina==0.1)
  Using cached https://files.pythonhosted.org/packages/8a/9d/d5a639b31653d85500e82876f146f82f44ded07e7e224daad5cefe82da7e/panda3d-1.10.6.post2-cp38-cp38-macosx_10_9_x86_64.whl
Collecting pillow (from ursina==0.1)
  Using cached https://files.pythonhosted.org/packages/f3/c7/6aac64d950363a017ef8216f86d19ea29872e078f0607231a6b00849b7ad/Pillow-7.1.1-cp38-cp38-macosx_10_10_x86_64.whl
Collecting screeninfo (from ursina==0.1)
  Using cached https://files.pythonhosted.org/packages/d1/1d/d9861700fa0692d39f4aaf7233ee3dd9cbebd514546fec9344a824f63af4/screeninfo-0.6.5.tar.gz
Collecting dataclasses (from screeninfo->ursina==0.1)
  Using cached https://files.pythonhosted.org/packages/26/2f/1095cdc2868052dd1e64520f7c0d5c8c550ad297e944e641dbf1ffbb9a5d/dataclasses-0.6-py3-none-any.whl
Requirement already satisfied: Cython in ./venv/lib/python3.8/site-packages (from screeninfo->ursina==0.1) (0.29.16)
Collecting pyobjus (from screeninfo->ursina==0.1)
  Using cached https://files.pythonhosted.org/packages/cb/9e/6425d66cf66892ee99ebdc86204c825d6817458328b6cdc3a6c51ad152d1/pyobjus-1.1.0.tar.gz
Installing collected packages: panda3d, pillow, dataclasses, pyobjus, screeninfo, ursina
  Running setup.py install for pyobjus ... done
  Running setup.py install for screeninfo ... done
  Running setup.py install for ursina ... done
Successfully installed dataclasses-0.6 panda3d-1.10.6.post2 pillow-7.1.1 pyobjus-1.1.0 screeninfo-0.6.5 ursina-0.1
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Then, when I try to run any of the examples, no window opens, no app shows up in the Dock and the Python process does not respond to ctrl-c, which may be a separate issue:

(venv) $ cat example.py 
from ursina import *                    # Import the ursina engine

app = Ursina()                          # Initialise your Ursina app
app.run()                               # Run the app
(venv) $ python example.py 
package_folder: /Users/michi/Documents/Projects/mygame/venv/lib/python3.8/site-packages/ursina
asset_folder: /Users/michi/Documents/Projects/mygame
dev mode: True
blender_paths:
{}
psd-tools not installed

I'm running macOS 10.13.6. Here is the setup of the virtualenv:

(venv) $ pip list
Package     Version     
----------- ------------
Cython      0.29.16     
dataclasses 0.6         
panda3d     1.10.6.post2
Pillow      7.1.1       
pip         19.2.3      
pyobjus     1.1.0       
screeninfo  0.6.5       
setuptools  41.2.0      
ursina      0.1         
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
1devM2 commented 4 years ago

Hello, this happened to me as well but when I used an editor it worked perfectly

glyph commented 3 years ago

I had this issue and it seemed to be crawling my entire home directory. I moved the file into a directory, and it worked.

dylanopen commented 1 year ago

Hi, I'm not sure Ursina supports MacOS at the moment... I might be wrong, but I'm pretty sure it's just for Linux (and maybe Windows) at the moment. Hopefully this is fixed in the future!

a2cy commented 1 year ago

it only supports windows and linux

glyph commented 1 year ago

Given that it kinda works on macOS, are there any obvious blockers to full support?