Re: [Pythonocc-users] Problems with TColgp after new compilation of PythonOCC on Ubuntu 10.04

2013-05-03 Thread Thore Oltersdorf
Ehm. Thomas. You are absolutely right. Idiotical error. Thanks for this 
hint for beginner's...;-))




Am 5/3/2013 2:41 PM, schrieb Thomas Paviot:

2013/5/3 Thore Oltersdorf


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 "", line 1, in
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_**DataMapNodeOfDataMapOfIntegerC**irc2d
Handle_TColgp_**DataMapNodeOfDataMapOfIntegerC**irc2d_DownCast
Handle_TColgp_**DataMapNodeOfDataMapOfIntegerC**irc2d_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_**SequenceNodeOfSequenceOfArray1**OfPnt2d
Handle_TColgp_**SequenceNodeOfSequenceOfArray1**OfPnt2d_DownCast
Handle_TColgp_**SequenceNodeOfSequenceOfArray1**OfPnt2d_swigregister
Handle_TColgp_**SequenceNodeOfSequenceOfDir
Handle_TColgp_**SequenceNo

Re: [Pythonocc-users] Problems with TColgp after new compilation of PythonOCC on Ubuntu 10.04

2013-05-03 Thread Thomas Paviot
2013/5/3 Thore Oltersdorf 

> 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 "", line 1, in
> 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_**DataMapNodeOfDataMapOfIntegerC**irc2d
> Handle_TColgp_**DataMapNodeOfDataMapOfIntegerC**irc2d_DownCast
> Handle_TColgp_**DataMapNodeOfDataMapOfIntegerC**irc2d_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_**SequenceNodeOfSequenceOfArray1**OfPnt2d
> Handle_TColgp_**SequenceNodeOfSequenceOfArray1**OfPnt2d_DownCast
> Handle_TColgp_**SequenceNodeOfSequence

[Pythonocc-users] Problems with TColgp after new compilation of PythonOCC on Ubuntu 10.04

2013-05-03 Thread Thore Oltersdorf

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 "", line 1, in
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_SequenceNodeOfSequenceOf