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<thore.oltersd...@ise.fraunhofer.de>

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_**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_**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_**DataMapIteratorOfDataMapOfInte**gerCirc2d
TColgp_**DataMapIteratorOfDataMapOfInte**gerCirc2d_swigregister
TColgp_**DataMapNodeOfDataMapOfIntegerC**irc2d
TColgp_**DataMapNodeOfDataMapOfIntegerC**irc2d_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_**SequenceNodeOfSequenceOfArray1**OfPnt2d
TColgp_**SequenceNodeOfSequenceOfArray1**OfPnt2d_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


Hi,

I can't reproduce the issue. Be careful to the difference between '0' and
'O'. The right spelling is TColgp_Array2OfPnt(**1,2,3,4) and not
TColgp_Array20fPnt(**1,2,3,4).

Regards,

Thomas


--
Dipl.-Ing. Thore Oltersdorf

Group Heat Pumps
Department Solar Building
Division Thermal Systems and Buildings

Fraunhofer-Institut für Solare Energiesysteme ISE
Heidenhofstrasse 2, 79110 Freiburg, Germany
Phone: +49 (0)761/4588-5239  Fax: +49 (0)761/4588-9239
thore.oltersdorf--<1!at!1>--ise.fraunhofer.de
http://www.ise.fraunhofer.de
http://HLK.ise.fraunhofer.de



_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to