2010/5/20 John Griessen <j...@industromatic.com> > I've executed a file from ipython and get errors immediately that suggest > incomplete installation or misunderstood install, or python path problem. > > My script is launched from leo-ipython started with python2.6. > > It contains: > --------------------------------- > from OCC.PAF.Context import ParametricModelingContext > from OCC.PAF.Parametric import Parameters > p = Parameters() > tutorial_context = ParametricModelingContext(p) > tutorial_context.init_display() > > p.height = 33.3 > > p.radius = 22.9 > > tutorial_context.register_operations(tutorial_context.prim_operations) > my_cylinder = > tutorial_context.prim_operations.MakeCylinderRH(p.radius,p.height,name="cylinder1", > show=True) > --------------------------------------- > > ipython says: > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > > /home/john/FABprojects/pythonocc-test/<ipython console> in <module>() > > ImportError: No module named OCC.PAF.Context > ------------------------------------- > > That's the first line. > I must be missing something. > > John >
Weird. Maybe something went wrong with the installation. Be sure there are /site-packages/OCC/PAF/*.py files. Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users