#22 signature missing in 2.0alpha9.

Bug
closed-works-for-me
Modules (11)
5
2009-08-30
2009-08-26
Anonymous
No

from ipython (python2.5 without ipython does the same)

In [2]: vec3(5,5,5)
---------------------------------------------------------------------------
ArgumentError Traceback (most recent call last)

/home/lionel/<ipython console> in <module>()

/usr/lib/python2.5/site-packages/cgkit/cgtypes.py in __init__(self, *args)
110 else:
111 # everything else that is not just one argument...
--> 112 _core.vec3.__init__(self, *args)
113
114 # vec4

ArgumentError: Python argument types in
vec3.__init__(vec3, int, int, int)
did not match C++ signature:
__init__(_object*, support3d::vec3<double>)
__init__(_object*, double, double, double)
__init__(_object*, double, double)
__init__(_object*, double)
__init__(_object*)

Info :
OS : ubuntu, 9.04
boost : 1.37
python : 2.5

Note :
the 1.37 version of boost-python is named libboost_python-mt, I added the mt to compile it.

Discussion

  • Nobody/Anonymous

    the problem seems quite general :

    In [68]: c = vec3(5)

    In [69]: c[1]
    ---------------------------------------------------------------------------
    ArgumentError Traceback (most recent call last)

    /home/lionel/<ipython console> in <module>()

    ArgumentError: Python argument types in
    vec3.__getitem__(vec3, int)
    did not match C++ signature:
    __getitem__(support3d::vec3<double>*, int)

     
  • Nobody/Anonymous

    looks like it is working with python2.6.

     
  • Matthias Baas

    Matthias Baas - 2009-08-30

    This has been reported before, but I'm not able to reproduce this on any system I have access to (Windows, OSX, Fedora Linux). At the moment, I would just attribute it to a problem with Ubuntu (there has been a problem on a previous version of Ubuntu which caused a crash but again, I couldn't reproduce that an any other system).
    Anyway, this happens when Boost.Python tries to resolve a method call. This is something that happens in Boost, not in cgkit, so I think this rather needs fixing on the Boost or Ubuntu side. But as it works for you for Python 2.6 and it works for me on any system, it doesn't seem to be a problem in Boost itself.
    As I'm afraid I can't do anything about this on the cgkit side, I'm closing this bug report. If you want to discuss this further, I would suggest to post a message into the mailing list (one thing that would be interesting to know is whether you built Boost.Python yourself or whether this is the Ubuntu version).

    - Matthias -

     
  • Matthias Baas

    Matthias Baas - 2009-08-30
    • status: open --> closed-works-for-me
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks