2009/11/6 Arun Persaud <apers...@lbl.gov> > Hi >
Hi Arun, Happy to have you onboard! > > I just installed svn version 708 and run into a few problems during the > The svn trunk is currently moving very fast (about 5 commits a day), and it's not really a surprise that pythonOCC does not compile/run properly. We hardly work on the 0.4 future release (latest rev. is 713, you're already out of date). > install. I think I got it running now, but thought I drop you guys a > quick note. Not sure if these are bugs or if I just did something wrong > during the install (more likely I did something wrong) ;) > > a) I had to install salomegeometry which was not mentioned on the wiki > to get everything to link properly. > pythonOCC-0.3 is linked by default to salomegeometry. In the upcoming 0.4 release, you'll have to explicitely call this dependency by passing --enable_geom (and --enable_smesh) to the installation script. To compile rev.713: python setup.py build --enable_geom -j2 (or the number of cpus of your machine). pythonOCC trunk is sync with the latest salomegeometry revision. > > b) I had to add /usr/lib64/python2.6/site-packages/OCC.pth for python to > find files in the site-packages/OCC directory > Weird. Did you append this path to your sys.path? What Linux distro do you run? gcc/swig versions? > > c) I got a lot of errors like the following, which I don't understand > when trying to run the interactive viewer. > > Traceback (most recent call last): > File > > "/home/arun/src/Prog/pythonOCC/src/samples/Tools/InteractiveViewer/InteractiveViewer.py", > line 605, in OnExit > self.OnClose(event) > File > > "/home/arun/src/Prog/pythonOCC/src/samples/Tools/InteractiveViewer/InteractiveViewer.py", > line 608, in OnClose > SaveRecentFiles(self._recentfiles, os.path.join(THISPATH, > "recentfiles")) > NameError: global name 'os' is not defined > > I got them too for example in _createpythonshell(self), but not in > _createbrowser(self) which both use os.path.join and I can't see a > difference in how they use them. Got rid of the errors by adding a > "import os.path" to _createpythonshell(self) and to lots of other > functions and then it worked?! > I didn't work on the InteractiveViewer for a while. The best way to check that everything is ok is to run the unittests available in the /src/unittest directroy: occ_unittest.py, paf_unittest.py and topology_unittest.py. Can you please report the outputs of these scripts? > > will start playing with pythonOCC now, thanks for creating it! > Thank you. According to the traceback, you run a 64 bit Linux distribution. I didn't test this platform, would you be so kind to become the Linux 64bit tester? > Arun > Cheers, Thomas > _______________________________________________ > 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