Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
New Install on Mac OSX fails to launch: #2720
Found your game mentioned here: https://www.slant.co/topics/1933/~open-source-games
I am a software developer, but not in games industry. Python is sort of my favorite language - used it professionally a little bit, but not as much as I would like. I was sort of looking for a project I might get involved with.
At any rate, I am off to a very sad start. After installing application, it fails to launch. System error console has this to say:
My machine is a Mac Minin running OSX version 10.9.5
Some of this is probably a bit beyond my experience, but if I am right in guessing that the problem starts with the expectation that my system /usr/lib/libSystem.B.dylib is supposed to be defining code for: _fchmodat
Anyway... I'd love to see the game. I may try it on Windows 10 laptop or Raspberry Pi a bit later.
Hi there. :)
I'm sorry you had such a terrible experience. Unfortunately, we haven't had a macOS developer in a while. As such, we probably can not give you the solution right away, but perhaps we can figure this out together.
Judging by the traceback, you've installed the package from our website, which means it's release 2014.1. Some googling seems to suggest this is related to the Boost library used by FIFE, our engine:
This is out of my league really, but I'm guessing that FIFE for Mac was build on a newer version of macOS than 10.9, thereby introducing this error.
We've recently switched to Python 3.5 instead of 2.7 and released 2017.1 and 2017.2. We're still looking for someone that can help with a new release for Mac. I think at the moment, none of the few active developers has any knowledge about how one is supposed to build a package. Any help would be really appreciated. :)
This is sort of long, but I decided to write it all in the hopes it will be
So, first of all, you are correct, I installed Unknown Horizons by just
I notice now that that is version 2014.1, so I guess that is quite old, anyway.
I also have not yet tried to get the game running on my Laptop (Windows 10) or
So, there's sort of two facets to discuss here. One is the specific technical
I don't know if this project has any direct relation to Patrician II (Ascaron
So, I love to play games and want to play your game, but there are secondary
I have some ideas of my own about producing a programming-related game, but
I don't really consider myself a Mac developer. Rather, I am more of a web
I'm not in a huge hurry to have anything in particular resolved.
So, this morning (I am in Mountain timezone in America, GMT +7/+8), I figured I
Let's see if I can provide some useful feedback on that front...
Looks like you've just got a Documentation placeholder for how to install FIFE:
Ok... some things can be inferred. I basically:
So, this is also kind of frustrating... Luckily, as I said, I'm not in a big
The test would seem to imply my fife is hosed, but I seem to have some sort of
Help on package fife:
:( So, there's another place for improvement. Maybe fife module is fine here?
I haven't written my own setup.py files before, but I've dug through a few,
(I believe CPython itself also has a C-compiler wrapped up in itself and a
With an install language like Python, an incredible amount of power is
This is getting quite long. Let me try to hit some of the high level ideas I've
One thought is that the install of your game could all be quite dynamic. You
And from there, with enough scripting, the rest of the pieces can fall in
Since you are currently distributing a .dmg for Mac OSX that is both broken for
I am not clear on the relationship between Boost and FIFE, exactly, nor how you
Right now, the distribution I have for UH is the .dmg you published. It seems
There is a new version of Boost as of April 19th of this year. I'm not quite
If you can give me some clues about how that fits together with FIFE and the
Maybe more documentation about what these major pieces are, how they are
So, yes, let's work together on this. Let's keep the conversation going and see
I will dig through the FIFE setup.py some, but if there's some way to quickly
Uh needs python3 support. On Travis we use this command for it to build fifengine with python3 support:
But it still not works there. We dont know if the paths are correct.
fifengine/setup.py already imports sys
A simple statement like this would make this Python 3 requirement both explicit and enforced:
(how do you get Python formatted correctly here?)
After re-getting the FIFE library via git, and running:
And then trying to run:
You get a syntax error because your test script is using Python 2 syntax.
If you run run_tests.py and just select 0, using Python 2, you still get this error:
.../fifengine/tests/fife_test/run.py is also in Python2 syntax.
Running it still errors.
If you just run Python3 (3.3.5), and try this:
'>>> from fife import fife'
you still get this:
'Traceback (most recent call last):
So... umm..... gosh.... all of this that I am saying in this post has been redone on a Windows 7 Enterprise machine. I am having much the same problems, and this has nothing to do with whether Apple defines _fchmodat
These issues of just downloading FIFE via git, building it, installing it, and then verifying that you can't:
'>>> from fife import fife'
Should be easily verifiable by pretty much anyone.
Not sure I can do much to help you at this point other than point out these problems.
If you download new fifengine from git, build and install it with Python 3, can you run any of the tests?
Thanks for your reply, MasterofJOKers. I expect you are completely right. I am just trying to get some sort of running installation so I can look at the game, and then start to look at buglists and see if I can do anything useful, either for UH or for FIFE, preferably UH itself.
So, I guess when you install UH from the git repository and build that using the Python setup.py, the assumption is that fife is already installed, right? I wasn't sure if maybe the Python install of UH would just bring in some pre-compiled FIFE from somewhere. After getting through a successful build and install of UH using Python 3, it appears I have no FIFE, so I guess not. :(
As the FIFE documentation states: "Compiling Fifengine is a complicated and time consuming task." I was sort of hoping to avoid that. I did read through the compilation docs there a bit. Perhaps I will ultimately end up building FIFE myself, or maybe learn enough about how all the pieces hang together that I can get FIFE through standard Windows installer, then build UH from the git repository?
There doesn't seem to be a lot of UH documentation on how these pieces get generated and how you might mix and match to build a dev environment.
Building the FIFE engine doesn't really take that much time. On a 3-year-old ultrabook the compilation takes approximately 15 min. To work on Unknown Horizons you need fifechan in addition, but that's even faster. Finally, UH itself doesn't require any building since it's pure Python :).