New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError with git versions #2442
Comments
I've installed it on Trisquel today (an Ubuntu-based distribution) and worked fine. Maybe this video helps you: https://goblinrefuge.com/mediagoblin/u/freakspot/m/instalacion-de-unknown-horizons-a-partir-del-codigo-fuente/. Tell us which fifechan and fifengine version are currently installed. |
I dont know the command for version info. What i can say is that UH Git version only runs with fife git and fifechan git version. And not with the last stable release of fife. |
On Debian, one could run |
Here's the output of those commands: $ python -c 'from fife import fife; print fife.getVersion()'
0.4.0+39e8b513
$~/unknown-horizons: dpkg -l | grep -i fife
$~/unknown-horizons: |
so ... basically, the following does not work for you? Could you please run |
Could you please open "/usr/lib/python2.7/dist-packages/fife/fife.py" and tell me, whats in line 5640 and 5641? The file generated for me should not be able to exhibit the same behaviour as yours. What version of swig did you use? ( |
$ python -c 'from fife import fife; fife.Point(0, 0)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/fife/fife.py", line 5639, in __init__
self.this.append(this)
File "/usr/lib/python2.7/dist-packages/fife/fife.py", line 5619, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, Point, name)
File "/usr/lib/python2.7/dist-packages/fife/fife.py", line 74, in _swig_getattr
return _swig_getattr_nondynamic(self, class_type, name, 0)
File "/usr/lib/python2.7/dist-packages/fife/fife.py", line 69, in _swig_getattr_nondynamic
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
$ python -c 'from fife import fife; print fife._newclass'
1
$ dpkg -l | grep -i swig
ii swig 3.0.8-0ubuntu3 amd64 Generate scripting interfaces to C/C++ code
ii swig3.0 3.0.8-0ubuntu3 amd64 Generate scripting interfaces to C/C++ code Lines 5640 - 5641 for except Exception:
self.this = this |
This makes no sense to me. Your >>> object.__getattr__()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: type object 'object' has no attribute '__getattr__'
>>> try:
... object.__getattr__()
... except Exception:
... print "shiny"
...
shiny
>>> try:
... object.__getattr__()
... except BaseException:
... print "shiny"
...
shiny On the other hand, if I change my line (which is just |
So it seems to be partly fife's fault for having an own |
I've manually installig swig 3.0.10. The game now finally works. Though I'm not really satisfied with this solution as you normally don't want to build 4 projects from source just to play a game. |
Totally understandable. We are working on a new release and on nightly builds. |
I think we can close this one. Looks like an issue with swig 3.0.8 specifically: swig/swig#583 |
I've followed http://www.unknown-horizons.org/download/sources/s-linux/, and here's what I get for the last step:
The text was updated successfully, but these errors were encountered: