Hi Jelle, Ok, sorry, I see my mistake. Would you also have some advices concerning the first problem?
>> from OCC import * Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> from OCC import * File "L:\programs\Python26\lib\site-packages\OCC\XDEDRAW.py", line 28, in <module> _XDEDRAW = swig_import_helper() File "L:\programs\Python26\lib\site-packages\OCC\XDEDRAW.py", line 24, in swig_import_helper _mod = imp.load_module('_XDEDRAW', fp, pathname, description) ImportError: DLL load failed: Le module spécifié est introuvable. Best regards, Pierre 2010/3/1 Jelle Feringa <jelleferi...@gmail.com> > Yes, the src/samples/ directory is _definitely_ the best way to learn > pyOCC. > > > > On Mar 1, 2010, at 2:16 PM, Pierre JUILLARD wrote: > > But, > > The third example is ok... > > >>> from OCC.gp import * > >>> vec1 = gp_Vec(1,2,3) > >>> vec2 = gp_Vec(-1,-2,-3) > >>> vec1.Magnitude() > 3.7416573867739413 > >>> vec2.Magnitude() > 3.7416573867739413 > >>> vec3=vec1+vec2 > >>> vec3.Magnitude() > 0.0 > >>> > > ... > > Pierre > > > > > 2010/3/1 Pierre JUILLARD <pierre.juill...@gmail.com> > >> God, >> >> The first example also doesn't want to run. >> I have a problem at the third line... >> >> >>> from OCC.gp import * >> >>> from OCC.GCE2d import * >> >>> P1 = gp_Pnt2D(1,2) >> >> >> Traceback (most recent call last): >> File "<pyshell#3>", line 1, in <module> >> P1 = gp_Pnt2D(1,2) >> NameError: name 'gp_Pnt2D' is not defined >> >> Best regards, >> >> Pierre >> >> >> >> >> 2010/3/1 Pierre JUILLARD <pierre.juill...@gmail.com> >> >> >>> Hi all, >>> >>> I just installed on a Windows XP SP3 32 bits machine where I have no >>> administrator rights: >>> - python 2.6.4 (everything seems ok: no problem during installation) >>> - and pythonOCC_all-in-on_0.4_python_2.6......exe >>> >>> The installer correctly found the python interpreter. >>> There was no error message during installation. >>> >>> However, typing... >>> >> from OCC import * >>> ...got me the following error message: >>> Traceback (most recent call last): >>> File "<pyshell#0>", line 1, in <module> >>> from OCC import * >>> File "L:\programs\Python26\lib\site-packages\OCC\XDEDRAW.py", line 28, >>> in <module> >>> _XDEDRAW = swig_import_helper() >>> File "L:\programs\Python26\lib\site-packages\OCC\XDEDRAW.py", line 24, >>> in swig_import_helper >>> _mod = imp.load_module('_XDEDRAW', fp, pathname, description) >>> ImportError: DLL load failed: Le module spécifié est introuvable. >>> >>> Any idea? >>> Please, any help would be appreciated. >>> >>> Best regards, >>> >>> Pierre >>> >> >> > _______________________________________________ > Pythonocc-users mailing list > Pythonocc-users@gna.org > https://mail.gna.org/listinfo/pythonocc-users > > > > _______________________________________________ > Pythonocc-users mailing list > Pythonocc-users@gna.org > https://mail.gna.org/listinfo/pythonocc-users > >
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users