KeithMFoster/the-oregon-trail

Doesn't work in MacOS without root

Opened this issue · 0 comments

On my Mac, in the shooting part of the game, it gives an error if you aren't root.

Monday, March 29, 1847
Total Mileage:    0
Food:             100
Bullets:          5000
Clothing:         100
Misc. Supplies:   50
Cash:             50

Do you want to (1) Hunt, or (2) Continue: 1

You pull your gun, aim, and pull the trigger
Exception in thread Thread-1 (listen):
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/chris/Documents/projects/other_people_stuff/the-oregon-trail/.env/lib/python3.10/site-packages/keyboard/__init__.py", line 294, in listen
    _os_keyboard.listen(self.direct_callback)
  File "/Users/chris/Documents/projects/other_people_stuff/the-oregon-trail/.env/lib/python3.10/site-packages/keyboard/_darwinkeyboard.py", line 430, in listen
    raise OSError("Error 13 - Must be run as administrator")
OSError: Error 13 - Must be run as administrator
Pop
You Missed -- and your dinner got away..

I don't know if that's deliberate, but it would be nice to not have this limitation.