2011/11/15 Delerue Jean-Francois <jean-francois.dele...@sbmoffshore.com>
> Dear all, > > ** ** > > I installed theAll-In-One precompiled binaries version of pythonOCC with > Python 2.6. All examples run perfectly but I still have problems with 2 > examples using the OCAF tree:**** > > ** ** > > I cannot get running Level1\OCAF\topological_naming and > Level2\InteractiveFeatureTree. I get the following error message:**** > > ** ** > > Traceback (most recent call last):**** > > File > "C:\Python26\POCC\0.5\examples\Level1\OCAF\topological_naming\named_shape_demo.py", > line 45, in <module>**** > > box_label = ts.NewChild(root)**** > > NotImplementedError: Wrong number of arguments for overloaded function > 'TDF_TagSource_NewChild'.**** > > Possible C/C++ prototypes are:**** > > NewChild(TDF_Label const &)**** > > NewChild(TDF_TagSource *)**** > > ** ** > > When executing the NewChild method:**** > > ** ** > > doc = h_doc.GetObject()**** > > ** ** > > root = doc.Main()**** > > ** ** > > ts = TDF.TDF_TagSource()**** > > ** ** > > #**** > > # We'll add all shapes under this node in the label tree **** > > #**** > > shape_root = ts.NewChild(root)**** > > ** ** > > Am I the only one and did I missed something?**** > > ** ** > > Thanks you very much in advance, and congratulation for this wonderful > python module.**** > > ** ** > > Jean Francois**** > > > Hi Jean-François, Thanks for your report. I confirm that it is a bug in the pythonOCC wrapper. I got the example working with a small tweak in the file src/wrapper/SWIG_files/linux_darwin/TDF.i, commenting out the NewChild() method of TDF_TagSource. I will open an issue and push a fix to the git repository in the coming hours. Best Regards, Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users