Page 1 of 1

AttributeError: 'un_iter' object attri 'advanceNSignificant'

Posted: Fri Mar 07, 2014 12:27 am
by klunz
Hello Everyone,

this is my first post here, so first of all, Thank you very much for this amazing game!
I just started playing Vegastrike, I am running it on Gentoo Linux and build it from the most recent trunk (revision 13627).
After doing some basic trading, I wanted to carry out my first Cargo mission.
However, everytime (reproduced this 3 times) I jump into the system were my target is, the game aborts with the following output:

Code: Select all

Traceback (most recent call last):
  File "/home/tobi/Programme/Spiele/vega_strike/data/modules/missions/cargo_mission.py", line 196, in Execute
    self.adjsys=go_somewhere_significant(self.you,1,100,baseonly,tempfac)
  File "/home/tobi/Programme/Spiele/vega_strike/data/modules/go_somewhere_significant.py", line 50, in __init__
    significant = unit.getSignificant (randint,landable_only,base_only)
  File "/home/tobi/Programme/Spiele/vega_strike/data/modules/unit.py", line 83, in getSignificant
    rez2 = getPlanetList(True)
  File "/home/tobi/Programme/Spiele/vega_strike/data/modules/unit.py", line 122, in getPlanetList
    i.advanceNSignficant(0)
AttributeError: 'un_iter' object has no attribute 'advanceNSignficant'
terminate called after throwing an instance of 'boost::python::error_already_set'
[1]    19979 abort      ./vegastrike
I dont really understand whats going on, it seems to be a python problem (I build against python2.7).
Any help would be greatly appreciated, I would love to dive deeper into the universe of VegaStrike.

Thank you very much in advance, Greetings
Tobi

Re: AttributeError: 'un_iter' object attri 'advanceNSignific

Posted: Fri Mar 07, 2014 12:34 am
by klauss
Are you using the data from trunk as well?

Re: AttributeError: 'un_iter' object attri 'advanceNSignific

Posted: Fri Mar 07, 2014 7:38 am
by klunz
Hello klauss, thank you for the quick reply.

I checked out "data", "vegastrike" and "hqtextures" from trunk and then followed the build guide using ccmake. Ogre was not used and I had to disable ffmpeg, other then that everything should be pretty standard...

Code: Select all

[tobi@laptobi:vega_strike/data]$ svn info
Path: .
Working Copy Root Path: /home/tobi/Programme/Spiele/vega_strike/data
URL: https://svn.code.sf.net/p/vegastrike/code/trunk/data
Repository Root: https://svn.code.sf.net/p/vegastrike/code
Repository UUID: 9476613a-4e0a-0410-bcee-947800e9c4d1
Revision: 13672
Node Kind: directory
Schedule: normal
Last Changed Author: klaussfreire
Last Changed Rev: 13667
Last Changed Date: 2014-02-26 06:03:54 +0100 (Mi, 26 Feb 2014)

Code: Select all

[tobi@laptobi:vega_strike/vegastrike]$ svn info
Path: .
Working Copy Root Path: /home/tobi/Programme/Spiele/vega_strike/vegastrike
URL: https://svn.code.sf.net/p/vegastrike/code/trunk/vegastrike
Repository Root: https://svn.code.sf.net/p/vegastrike/code
Repository UUID: 9476613a-4e0a-0410-bcee-947800e9c4d1
Revision: 13672
Node Kind: directory
Schedule: normal
Last Changed Author: klaussfreire
Last Changed Rev: 13672
Last Changed Date: 2014-03-05 20:30:05 +0100 (Mi, 05 Mär 2014)
Thanks again, Greetings
Tobi

Re: AttributeError: 'un_iter' object attri 'advanceNSignific

Posted: Fri Mar 07, 2014 7:35 pm
by klauss
Ah... it took me a while to notice the typo!

Fixed :) Thanks for the report

Re: AttributeError: 'un_iter' object attri 'advanceNSignific

Posted: Fri Mar 07, 2014 11:43 pm
by klunz
Hey klauss,

wow, thanks for the very quick response and fix.
So was the Attribute just typed wrong?
I guess this means when I do a svn-update now and rebuild, this will not happen anymore?
Or is there no need to rebuild, just svn-update?

Thanks very much again, I am really looking forward to completing my first mission :)

Greetings
Tobi

Re: AttributeError: 'un_iter' object attri 'advanceNSignific

Posted: Sat Mar 08, 2014 12:17 am
by klauss
Yes, typo there. There's no need to rebuild, it's python code that sits in the data folder. So just svn up.

Re: AttributeError: 'un_iter' object attri 'advanceNSignific

Posted: Sat Mar 08, 2014 4:58 pm
by klunz
Could there be another typo? Now VS aborts with:

Code: Select all

Traceback (most recent call last):
  File "/home/tobi/Programme/Spiele/vega_strike/data/modules/missions/cargo_mission.py", line 196, in Execute
    self.adjsys=go_somewhere_significant(self.you,1,100,baseonly,tempfac)
  File "/home/tobi/Programme/Spiele/vega_strike/data/modules/go_somewhere_significant.py", line 50, in __init__
    significant = unit.getSignificant (randint,landable_only,base_only)
  File "/home/tobi/Programme/Spiele/vega_strike/data/modules/unit.py", line 83, in getSignificant
    rez2 = getPlanetList(True)
  File "/home/tobi/Programme/Spiele/vega_strike/data/modules/unit.py", line 122, in getPlanetList
    i.advanceNSiginficant(0)
AttributeError: 'un_iter' object has no attribute 'advanceNSiginficant'
terminate called after throwing an instance of 'boost::python::error_already_set'
[1]    26224 abort      ./vegastrike
I guess it should be Significant :shock:

Greetings
Tobi

Re: AttributeError: 'un_iter' object attri 'advanceNSignific

Posted: Sun Mar 09, 2014 5:13 am
by klauss
Yes. I don't know how I didn't notice it, I did a grep to find all the uses. I guess shit happens.

Try now.