Dear Python-OCC Community. We have compiled a new version of PythonOCC (pythonocc-0.6-alpha2) on Ubuntu 10.04. All dependencies were updated by still available deb-packages and - if not available - by manual compilation/installation. Flags were set properly in case of non-standard directories within cmake configuration files.
After compilation we were not conscious about any compilation error. Our idea was to use OCC.TColgp for an array for coordinates of a surface. But after module import it didn't work. There was no well documented trace that could have been followed from the error message. Does anyone have a slight idea for better debugging? We suppose that the module is not compiled due to missing relations (not setting specific environment variables/flags) in the current build process. Or we have missed any errors not stopping the compilation. Here is the code of interest: ........ import OCC.TColgp Arr = OCC.TColgp.TColgp_Array20fPnt(1,2,3,4) Traceback (most recent call last): File "<console>", line 1, in<module> AttributeError: 'module' object has no attribute 'TColgp_Array20fPnt' ........ By scrolling through contents of the OCC.TColgp Array20fPnt should be available:
for i in dir(OCC.TColgp):
... print i ... GarbageCollector Handle_TColgp_DataMapNodeOfDataMapOfIntegerCirc2d Handle_TColgp_DataMapNodeOfDataMapOfIntegerCirc2d_DownCast Handle_TColgp_DataMapNodeOfDataMapOfIntegerCirc2d_swigregister Handle_TColgp_HArray1OfCirc2d Handle_TColgp_HArray1OfCirc2d_DownCast Handle_TColgp_HArray1OfCirc2d_swigregister Handle_TColgp_HArray1OfDir Handle_TColgp_HArray1OfDir2d Handle_TColgp_HArray1OfDir2d_DownCast Handle_TColgp_HArray1OfDir2d_swigregister Handle_TColgp_HArray1OfDir_DownCast Handle_TColgp_HArray1OfDir_swigregister Handle_TColgp_HArray1OfLin2d Handle_TColgp_HArray1OfLin2d_DownCast Handle_TColgp_HArray1OfLin2d_swigregister Handle_TColgp_HArray1OfPnt Handle_TColgp_HArray1OfPnt2d Handle_TColgp_HArray1OfPnt2d_DownCast Handle_TColgp_HArray1OfPnt2d_swigregister Handle_TColgp_HArray1OfPnt_DownCast Handle_TColgp_HArray1OfPnt_swigregister Handle_TColgp_HArray1OfVec Handle_TColgp_HArray1OfVec2d Handle_TColgp_HArray1OfVec2d_DownCast Handle_TColgp_HArray1OfVec2d_swigregister Handle_TColgp_HArray1OfVec_DownCast Handle_TColgp_HArray1OfVec_swigregister Handle_TColgp_HArray1OfXY Handle_TColgp_HArray1OfXYZ Handle_TColgp_HArray1OfXYZ_DownCast Handle_TColgp_HArray1OfXYZ_swigregister Handle_TColgp_HArray1OfXY_DownCast Handle_TColgp_HArray1OfXY_swigregister Handle_TColgp_HArray2OfCirc2d Handle_TColgp_HArray2OfCirc2d_DownCast Handle_TColgp_HArray2OfCirc2d_swigregister Handle_TColgp_HArray2OfDir Handle_TColgp_HArray2OfDir2d Handle_TColgp_HArray2OfDir2d_DownCast Handle_TColgp_HArray2OfDir2d_swigregister Handle_TColgp_HArray2OfDir_DownCast Handle_TColgp_HArray2OfDir_swigregister Handle_TColgp_HArray2OfLin2d Handle_TColgp_HArray2OfLin2d_DownCast Handle_TColgp_HArray2OfLin2d_swigregister Handle_TColgp_HArray2OfPnt Handle_TColgp_HArray2OfPnt2d Handle_TColgp_HArray2OfPnt2d_DownCast Handle_TColgp_HArray2OfPnt2d_swigregister Handle_TColgp_HArray2OfPnt_DownCast Handle_TColgp_HArray2OfPnt_swigregister Handle_TColgp_HArray2OfVec Handle_TColgp_HArray2OfVec2d Handle_TColgp_HArray2OfVec2d_DownCast Handle_TColgp_HArray2OfVec2d_swigregister Handle_TColgp_HArray2OfVec_DownCast Handle_TColgp_HArray2OfVec_swigregister Handle_TColgp_HArray2OfXY Handle_TColgp_HArray2OfXYZ Handle_TColgp_HArray2OfXYZ_DownCast Handle_TColgp_HArray2OfXYZ_swigregister Handle_TColgp_HArray2OfXY_DownCast Handle_TColgp_HArray2OfXY_swigregister Handle_TColgp_HSequenceOfDir Handle_TColgp_HSequenceOfDir2d Handle_TColgp_HSequenceOfDir2d_DownCast Handle_TColgp_HSequenceOfDir2d_swigregister Handle_TColgp_HSequenceOfDir_DownCast Handle_TColgp_HSequenceOfDir_swigregister Handle_TColgp_HSequenceOfPnt Handle_TColgp_HSequenceOfPnt2d Handle_TColgp_HSequenceOfPnt2d_DownCast Handle_TColgp_HSequenceOfPnt2d_swigregister Handle_TColgp_HSequenceOfPnt_DownCast Handle_TColgp_HSequenceOfPnt_swigregister Handle_TColgp_HSequenceOfVec Handle_TColgp_HSequenceOfVec2d Handle_TColgp_HSequenceOfVec2d_DownCast Handle_TColgp_HSequenceOfVec2d_swigregister Handle_TColgp_HSequenceOfVec_DownCast Handle_TColgp_HSequenceOfVec_swigregister Handle_TColgp_HSequenceOfXY Handle_TColgp_HSequenceOfXYZ Handle_TColgp_HSequenceOfXYZ_DownCast Handle_TColgp_HSequenceOfXYZ_swigregister Handle_TColgp_HSequenceOfXY_DownCast Handle_TColgp_HSequenceOfXY_swigregister Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d_DownCast Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d_swigregister Handle_TColgp_SequenceNodeOfSequenceOfDir Handle_TColgp_SequenceNodeOfSequenceOfDir2d Handle_TColgp_SequenceNodeOfSequenceOfDir2d_DownCast Handle_TColgp_SequenceNodeOfSequenceOfDir2d_swigregister Handle_TColgp_SequenceNodeOfSequenceOfDir_DownCast Handle_TColgp_SequenceNodeOfSequenceOfDir_swigregister Handle_TColgp_SequenceNodeOfSequenceOfPnt Handle_TColgp_SequenceNodeOfSequenceOfPnt2d Handle_TColgp_SequenceNodeOfSequenceOfPnt2d_DownCast Handle_TColgp_SequenceNodeOfSequenceOfPnt2d_swigregister Handle_TColgp_SequenceNodeOfSequenceOfPnt_DownCast Handle_TColgp_SequenceNodeOfSequenceOfPnt_swigregister Handle_TColgp_SequenceNodeOfSequenceOfVec Handle_TColgp_SequenceNodeOfSequenceOfVec2d Handle_TColgp_SequenceNodeOfSequenceOfVec2d_DownCast Handle_TColgp_SequenceNodeOfSequenceOfVec2d_swigregister Handle_TColgp_SequenceNodeOfSequenceOfVec_DownCast Handle_TColgp_SequenceNodeOfSequenceOfVec_swigregister Handle_TColgp_SequenceNodeOfSequenceOfXY Handle_TColgp_SequenceNodeOfSequenceOfXYZ Handle_TColgp_SequenceNodeOfSequenceOfXYZ_DownCast Handle_TColgp_SequenceNodeOfSequenceOfXYZ_swigregister Handle_TColgp_SequenceNodeOfSequenceOfXY_DownCast Handle_TColgp_SequenceNodeOfSequenceOfXY_swigregister MMgt Standard SwigPyIterator SwigPyIterator_swigregister TColgp_Array1OfCirc2d TColgp_Array1OfCirc2d_swigregister TColgp_Array1OfDir TColgp_Array1OfDir2d TColgp_Array1OfDir2d_swigregister TColgp_Array1OfDir_swigregister TColgp_Array1OfLin2d TColgp_Array1OfLin2d_swigregister TColgp_Array1OfPnt TColgp_Array1OfPnt2d TColgp_Array1OfPnt2d_swigregister TColgp_Array1OfPnt_swigregister TColgp_Array1OfVec TColgp_Array1OfVec2d TColgp_Array1OfVec2d_swigregister TColgp_Array1OfVec_swigregister TColgp_Array1OfXY TColgp_Array1OfXYZ TColgp_Array1OfXYZ_swigregister TColgp_Array1OfXY_swigregister TColgp_Array2OfCirc2d TColgp_Array2OfCirc2d_swigregister TColgp_Array2OfDir TColgp_Array2OfDir2d TColgp_Array2OfDir2d_swigregister TColgp_Array2OfDir_swigregister TColgp_Array2OfLin2d TColgp_Array2OfLin2d_swigregister TColgp_Array2OfPnt TColgp_Array2OfPnt2d TColgp_Array2OfPnt2d_swigregister TColgp_Array2OfPnt_swigregister TColgp_Array2OfVec TColgp_Array2OfVec2d TColgp_Array2OfVec2d_swigregister TColgp_Array2OfVec_swigregister TColgp_Array2OfXY TColgp_Array2OfXYZ TColgp_Array2OfXYZ_swigregister TColgp_Array2OfXY_swigregister TColgp_DataMapIteratorOfDataMapOfIntegerCirc2d TColgp_DataMapIteratorOfDataMapOfIntegerCirc2d_swigregister TColgp_DataMapNodeOfDataMapOfIntegerCirc2d TColgp_DataMapNodeOfDataMapOfIntegerCirc2d_swigregister TColgp_DataMapOfIntegerCirc2d TColgp_DataMapOfIntegerCirc2d_swigregister TColgp_HArray1OfCirc2d TColgp_HArray1OfCirc2d_swigregister TColgp_HArray1OfDir TColgp_HArray1OfDir2d TColgp_HArray1OfDir2d_swigregister TColgp_HArray1OfDir_swigregister TColgp_HArray1OfLin2d TColgp_HArray1OfLin2d_swigregister TColgp_HArray1OfPnt TColgp_HArray1OfPnt2d TColgp_HArray1OfPnt2d_swigregister TColgp_HArray1OfPnt_swigregister TColgp_HArray1OfVec TColgp_HArray1OfVec2d TColgp_HArray1OfVec2d_swigregister TColgp_HArray1OfVec_swigregister TColgp_HArray1OfXY TColgp_HArray1OfXYZ TColgp_HArray1OfXYZ_swigregister TColgp_HArray1OfXY_swigregister TColgp_HArray2OfCirc2d TColgp_HArray2OfCirc2d_swigregister TColgp_HArray2OfDir TColgp_HArray2OfDir2d TColgp_HArray2OfDir2d_swigregister TColgp_HArray2OfDir_swigregister TColgp_HArray2OfLin2d TColgp_HArray2OfLin2d_swigregister TColgp_HArray2OfPnt TColgp_HArray2OfPnt2d TColgp_HArray2OfPnt2d_swigregister TColgp_HArray2OfPnt_swigregister TColgp_HArray2OfVec TColgp_HArray2OfVec2d TColgp_HArray2OfVec2d_swigregister TColgp_HArray2OfVec_swigregister TColgp_HArray2OfXY TColgp_HArray2OfXYZ TColgp_HArray2OfXYZ_swigregister TColgp_HArray2OfXY_swigregister TColgp_HSequenceOfDir TColgp_HSequenceOfDir2d TColgp_HSequenceOfDir2d_swigregister TColgp_HSequenceOfDir_swigregister TColgp_HSequenceOfPnt TColgp_HSequenceOfPnt2d TColgp_HSequenceOfPnt2d_swigregister TColgp_HSequenceOfPnt_swigregister TColgp_HSequenceOfVec TColgp_HSequenceOfVec2d TColgp_HSequenceOfVec2d_swigregister TColgp_HSequenceOfVec_swigregister TColgp_HSequenceOfXY TColgp_HSequenceOfXYZ TColgp_HSequenceOfXYZ_swigregister TColgp_HSequenceOfXY_swigregister TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d_swigregister TColgp_SequenceNodeOfSequenceOfDir TColgp_SequenceNodeOfSequenceOfDir2d TColgp_SequenceNodeOfSequenceOfDir2d_swigregister TColgp_SequenceNodeOfSequenceOfDir_swigregister TColgp_SequenceNodeOfSequenceOfPnt TColgp_SequenceNodeOfSequenceOfPnt2d TColgp_SequenceNodeOfSequenceOfPnt2d_swigregister TColgp_SequenceNodeOfSequenceOfPnt_swigregister TColgp_SequenceNodeOfSequenceOfVec TColgp_SequenceNodeOfSequenceOfVec2d TColgp_SequenceNodeOfSequenceOfVec2d_swigregister TColgp_SequenceNodeOfSequenceOfVec_swigregister TColgp_SequenceNodeOfSequenceOfXY TColgp_SequenceNodeOfSequenceOfXYZ TColgp_SequenceNodeOfSequenceOfXYZ_swigregister TColgp_SequenceNodeOfSequenceOfXY_swigregister TColgp_SequenceOfArray1OfPnt2d TColgp_SequenceOfArray1OfPnt2d_swigregister TColgp_SequenceOfDir TColgp_SequenceOfDir2d TColgp_SequenceOfDir2d_swigregister TColgp_SequenceOfDir_swigregister TColgp_SequenceOfPnt TColgp_SequenceOfPnt2d TColgp_SequenceOfPnt2d_swigregister TColgp_SequenceOfPnt_swigregister TColgp_SequenceOfVec TColgp_SequenceOfVec2d TColgp_SequenceOfVec2d_swigregister TColgp_SequenceOfVec_swigregister TColgp_SequenceOfXY TColgp_SequenceOfXYZ TColgp_SequenceOfXYZ_swigregister TColgp_SequenceOfXY_swigregister TCollection _TColgp __builtins__ __doc__ __file__ __name__ __package__ _newclass _object _swig_getattr _swig_property _swig_repr _swig_setattr _swig_setattr_nondynamic _swig_setattr_nondynamic_method gp new_instancemethod _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users