#454 Boost Python Error: by-value converter for C++ vector

closed-out-of-date
nobody
Client (126)
8
2010-03-21
2010-01-19
No

A strange FreeOrion AI Python script error was reported on the forums:

http://www.freeorion.org/forum/viewtopic.php?p=41228#p41228

In particular, in the posted AI log file, there is an error from Python:

TypeError: No to_python (by-value) converter found for C++ type: class std::vector<int,class std::allocator<int> >

Based on some googling (see forum post), it seems to be a known problem, but only very rarely occurs, possibly only on certain language XP systems. Fixing may require some modifications to the AI interface exposing code, or an update to Boost Python (?).

Discussion

  • Geoff Topping

    Geoff Topping - 2010-01-20

    Someone on IRC using english XP Pro has reported the same error after replacing python25.dll with python26.dll renamed to python25.dll, which was suggested after getting errors about importing pickle and no AI activity. As such, this doesn't seem to be a language-dependent issue.

     
  • Geoff Topping

    Geoff Topping - 2010-01-20
    • priority: 5 --> 8
    • summary: Japanese (?) Boost Python Error --> Boost Python Error: by-value converter for C++ vector
     
  • Ondrej Riha

    Ondrej Riha - 2010-01-31

    We should upgrade Python dependency to 2.6 due to some language improvement which may be necessary for this project, but in Ubuntu and Debian(and probably in other distributions) Python 2.5 is default python and version 2.6 will be probably in next releases because there are few bugs with it.

    But in FreeOrion cmake install script, FreeOrion uses Python 2.6 and therefore we should also upgrade Python on Linux to 2.6. Python 2.6 is installable, but I want to do some investigation on this matter.

    We should also upgrade Boost requirements to 1.40.

     
  • Ondrej Riha

    Ondrej Riha - 2010-02-02

    Python 2.6 is recommended Python version, but in Linux there are still problems with version 2.6 and therefore FreeOrion AI have to wait some time(probably until next Debian stable release).

     
  • Geoff Topping

    Geoff Topping - 2010-03-21

    I've updated the Python and Boost versions in the SDK, so hopefully this problem will have gone away.

     
  • Geoff Topping

    Geoff Topping - 2010-03-21
    • status: open --> closed-out-of-date
     

Log in to post a comment.