fifengine / fifengine-editor-old

Other
4 stars 3 forks source link

AttributeError: 'Engine' object has no attribute 'this' #24

Closed milandamen closed 7 years ago

milandamen commented 7 years ago

When I try to run the editor I get this error:

milan@Some-Laptop-Kubuntu:~/opt/fifengine-editor$ python2 run.py 
Using the FIFE python module found here:  /usr/lib/python2.7/dist-packages/fife                                                       
Traceback (most recent call last):                                                                                                    
File "run.py", line 43, in <module>                                                                                                 
    app = Editor(options, mapfile)                                                                                                    
File "/home/milan/opt/fifengine-editor/scripts/editor.py", line 112, in __init__                                                    
    PychanApplicationBase.__init__(self, TDS, *args, **kwargs)                                                                        
File "/usr/lib/python2.7/dist-packages/fife/extensions/pychan/pychanbasicapplication.py", line 68, in __init__                      
    super(PychanApplicationBase, self).__init__(setting)                                                                              
File "/usr/lib/python2.7/dist-packages/fife/extensions/basicapplication.py", line 75, in __init__                                   
    self.engine = fife.Engine()                                                                                                       
File "/usr/lib/python2.7/dist-packages/fife/fife.py", line 2704, in __init__                                                        
    self.this.append(this)                                                                                                            
AttributeError: 'Engine' object has no attribute 'this'
LinuxDonald commented 7 years ago

What version of swig are you using?

milandamen commented 7 years ago

I'm using swig 3.0.8-0ubuntu3, which is the newest for my OS (Kubuntu).

LinuxDonald commented 7 years ago

Swig is broken in version 3.0.8 please use 3.0.7 or 3.0.9 or higher version. That is not an fife bug.

milandamen commented 7 years ago

When I use 3.0.10 it gives me the same error.

LinuxDonald commented 7 years ago

Have you recompiled fife with swig 3.0.10?

milandamen commented 7 years ago

Thank you, that fixed it.

LinuxDonald commented 7 years ago

Np :-)