mathLab / PyGeM

Python Geometrical Morphing
http://mathlab.github.io/PyGeM/
Other
344 stars 117 forks source link

Test issue #165

Closed rahulvigneswaran closed 5 years ago

rahulvigneswaran commented 5 years ago

Followed the following instructions for installation : The official distribution is on GitHub, and you can clone the repository using

git clone https://github.com/mathLab/PyGeM

To install the package just type:

python setup.py install

For testing the installation, used

python test.py

But got the following error,

`====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_affine.py", line 3, in import pygem.affine as at File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRepAlgoAPI)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_ffdparams.py", line 6, in from OCC.BRepAlgoAPI import BRepAlgoAPI_Cut ImportError: No module named OCC.BRepAlgoAPI

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_filehandler.py", line 5, in import pygem.filehandler as fh File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_freeform.py", line 3, in import pygem.freeform as ffd File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_idw.py", line 3, in from pygem import IDW File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_idwparams.py", line 3, in from pygem import IDWParameters File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.TopoDS)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_igeshandler.py", line 5, in from OCC.TopoDS import TopoDS_Shape ImportError: No module named OCC.TopoDS

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_khandler.py", line 2, in import pygem.khandler as uh File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_nurbshandler.py", line 3, in from pygem.nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_openfhandler.py", line 3, in import pygem.openfhandler as ofh File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_1 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 10, in test_import_pg_1 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_10 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 42, in test_import_pg_10 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_11 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 46, in test_import_pg_11 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_2 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 14, in test_import_pg_2 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_3 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 18, in test_import_pg_3 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_4 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 22, in test_import_pg_4 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_5 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 26, in test_import_pg_5 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_6 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 30, in test_import_pg_6 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_7 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 34, in test_import_pg_7 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: test_import_pg_8 (test_package.TestPackage)

Traceback (most recent call last): File "/home/pomegranate/Documents/PyGeM/tests/test_package.py", line 38, in test_import_pg_8 import pygem as pg File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_radial.py", line 3, in import pygem.radial as rad File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_rbfparams.py", line 7, in from pygem import RBFParameters File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.TopoDS)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_stephandler.py", line 5, in from OCC.TopoDS import TopoDS_Shape ImportError: No module named OCC.TopoDS

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_stlhandler.py", line 3, in import pygem.stlhandler as sh File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_unvhandler.py", line 3, in import pygem.unvhandler as uh File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep

====================================================================== ERROR: Failure: ImportError (No module named OCC.BRep)

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/pomegranate/Documents/PyGeM/tests/test_vtkhandler.py", line 3, in import pygem.vtkhandler as vh File "/home/pomegranate/Documents/PyGeM/pygem/init.py", line 19, in from .nurbshandler import NurbsHandler File "/home/pomegranate/Documents/PyGeM/pygem/nurbshandler.py", line 9, in from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve ImportError: No module named OCC.BRep


Ran 27 tests in 0.064s

FAILED (errors=27) `

mtezzele commented 5 years ago

Did you install the OCC package? Instructions are in the readme file just above the one you copy/pasted.

ndem0 commented 5 years ago

@rahulvigneswaran Did you solve the installation issue?

rahulvigneswaran commented 5 years ago

Hi @ndem0 ,Sorry for the delayed reply. I was out for a few days. Will do as @mtezzele instructed and get back in few hours.

rahulvigneswaran commented 5 years ago

@mtezzele @ndem0
I created a new conda environment by conda create --name gempy27 python=2.7 installed the OCC package by conda install -c conda-forge -c dlr-sc -c pythonocc -c oce pythonocc-core==0.17 python=2.7 and installed the missing matplotlib and nose package.

Yet I ended up with a similar issue when I ran the test.py as follows,

(gempy27) pomegranate@pomegranate:~/PyGeM$ sudo python test.py
EEEEEEEEEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_affine.py", line 3, in <module>
    import pygem.affine as at
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRepAlgoAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_ffdparams.py", line 6, in <module>
    from OCC.BRepAlgoAPI import BRepAlgoAPI_Cut
ImportError: No module named OCC.BRepAlgoAPI

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_filehandler.py", line 5, in <module>
    import pygem.filehandler as fh
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_freeform.py", line 3, in <module>
    import pygem.freeform as ffd
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_idw.py", line 3, in <module>
    from pygem import IDW
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_idwparams.py", line 3, in <module>
    from pygem import IDWParameters
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.TopoDS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_igeshandler.py", line 5, in <module>
    from OCC.TopoDS import TopoDS_Shape
ImportError: No module named OCC.TopoDS

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_khandler.py", line 2, in <module>
    import pygem.khandler as uh
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_nurbshandler.py", line 3, in <module>
    from pygem.nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_openfhandler.py", line 3, in <module>
    import pygem.openfhandler as ofh
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_1 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 10, in test_import_pg_1
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_10 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 42, in test_import_pg_10
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_11 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 46, in test_import_pg_11
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_2 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 14, in test_import_pg_2
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_3 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 18, in test_import_pg_3
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_4 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 22, in test_import_pg_4
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_5 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 26, in test_import_pg_5
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_6 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 30, in test_import_pg_6
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_7 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 34, in test_import_pg_7
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: test_import_pg_8 (test_package.TestPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pomegranate/PyGeM/tests/test_package.py", line 38, in test_import_pg_8
    import pygem as pg
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_radial.py", line 3, in <module>
    import pygem.radial as rad
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_rbfparams.py", line 7, in <module>
    from pygem import RBFParameters
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.TopoDS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_stephandler.py", line 5, in <module>
    from OCC.TopoDS import TopoDS_Shape
ImportError: No module named OCC.TopoDS

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_stlhandler.py", line 3, in <module>
    import pygem.stlhandler as sh
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_unvhandler.py", line 3, in <module>
    import pygem.unvhandler as uh
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

======================================================================
ERROR: Failure: ImportError (No module named OCC.BRep)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/pomegranate/PyGeM/tests/test_vtkhandler.py", line 3, in <module>
    import pygem.vtkhandler as vh
  File "/home/pomegranate/PyGeM/pygem/__init__.py", line 19, in <module>
    from .nurbshandler import NurbsHandler
  File "/home/pomegranate/PyGeM/pygem/nurbshandler.py", line 9, in <module>
    from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve
ImportError: No module named OCC.BRep

----------------------------------------------------------------------
Ran 27 tests in 0.058s

FAILED (errors=27)
mtezzele commented 5 years ago

After the occ installation are you able to use occ? Try to import a occ module for example. As you can see from the error, it can not find the occ modules when it tries to import them.

rahulvigneswaran commented 5 years ago

@mtezzele I created a conda env and reinstalled everything from first. OCC module is working properly and that error has vanished. But I have two new errors,

.

*******************************************************************
******        Statistics on Transfer (Write)                 ******

*******************************************************************
******        Transfer Mode = 0  I.E.  As Is       ******
******        Transferring Shape, ShapeType = 0                      ******
** WorkSession : Sending all data
 Step File Name : tests/test_datasets/test_pipe_out.step(960 ents)  Write  Done
.
*******************************************************************
******        Statistics on Transfer (Write)                 ******

*******************************************************************
******        Transfer Mode = 0  I.E.  As Is       ******
******        Transferring Shape, ShapeType = 0                      ******
** WorkSession : Sending all data
 Step File Name : tests/test_datasets/test_pipe_out.step(960 ents)  Write  Done
...
*******************************************************************
******        Statistics on Transfer (Write)                 ******

*******************************************************************
******        Transfer Mode = 0  I.E.  As Is       ******
******        Transferring Shape, ShapeType = 2                      ******
** WorkSession : Sending all data
 Step File Name : tests/test_datasets/x.step(380 ents)  Write  Done
.
*******************************************************************
******        Statistics on Transfer (Write)                 ******

*******************************************************************
******        Transfer Mode = 0  I.E.  As Is       ******
******        Transferring Shape, ShapeType = 2                      ******
** WorkSession : Sending all data
 Step File Name : tests/test_datasets/x.stp(380 ents)  Write  Done
.....................................................................
======================================================================
ERROR: test_iges_plot_save_fig (test_igeshandler.TestIgesHandler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rahul_k/Downloads/PyGeM/tests/test_igeshandler.py", line 169, in test_iges_plot_save_fig
    iges_handler.plot(save_fig=True)
  File "/home/rahul_k/Downloads/PyGeM/pygem/nurbshandler.py", line 744, in plot
    stl_mesh = mesh.Mesh.from_file('aux_figure.stl')
  File "/home/rahul_k/miniconda2/envs/shapeopti/lib/python2.7/site-packages/stl/stl.py", line 321, in from_file
    with open(filename, 'rb') as fh:
IOError: [Errno 2] No such file or directory: 'aux_figure.stl'

======================================================================
ERROR: test_step_plot_save_fig (test_stephandler.TestStepHandler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rahul_k/Downloads/PyGeM/tests/test_stephandler.py", line 169, in test_step_plot_save_fig
    step_handler.plot(save_fig=True)
  File "/home/rahul_k/Downloads/PyGeM/pygem/nurbshandler.py", line 744, in plot
    stl_mesh = mesh.Mesh.from_file('aux_figure.stl')
  File "/home/rahul_k/miniconda2/envs/shapeopti/lib/python2.7/site-packages/stl/stl.py", line 321, in from_file
    with open(filename, 'rb') as fh:
IOError: [Errno 2] No such file or directory: 'aux_figure.stl'

----------------------------------------------------------------------
Ran 329 tests in 15.243s

FAILED (errors=2)
ndem0 commented 5 years ago

@rahulvigneswaran I suspect the error is because you are using the sudo command. In the two failing tests, a new STL file has been created, then it has read and removed so I guess it is something related to file permission. Try to run the tests without sudo (anyway, for safety reason you should avoid sudo command if it is not extremely necessary) and let us know the result. I checked all the tests few minutes ago and still no problems on my computer.

rahulvigneswaran commented 5 years ago

@ndem0 The entire code was run inside a conda environment without the use of sudo command and yet the issue persists. Will you be able to make portable .yml file of the conda environment that you used to run the code and send here? Documentation regarding Sharing the Enviroment can be found here [[https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#id12]()]

mtezzele commented 5 years ago

Can you confirm that the following code does not work:

import pygem.igeshandler as ih

iges_handler = ih.IgesHandler() mesh_points = iges_handler.parse('some_iges_file_from_test_dataset_for_example.iges') iges_handler.plot(save_fig=True)

ndem0 commented 5 years ago

@rahulvigneswaran Please let me know the version of numpy-stl and pythonocc modules. All the information can be extrapolated from https://github.com/mathLab/PyGeM/blob/master/.travis.yml

rahulvigneswaran commented 5 years ago

@mtezzele Yes, it does not work. It spits out the following error,

(shapeopti) rahul_k@gpuserver:~/Downloads/PyGeM$ python
Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import pygem.igeshandler as ih
>>>
>>> iges_handler = ih.IgesHandler()
>>> mesh_points = iges_handler.parse('test_pipe.igs')                                                                                                                                        Total number of loaded entities : 89.
>>> iges_handler.plot(save_fig=True)
failed to get the current screen resources
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pygem/nurbshandler.py", line 744, in plot
    stl_mesh = mesh.Mesh.from_file('aux_figure.stl')
  File "/home/rahul_k/miniconda2/envs/shapeopti/lib/python2.7/site-packages/stl/                                                                                                             stl.py", line 321, in from_file
    with open(filename, 'rb') as fh:
IOError: [Errno 2] No such file or directory: 'aux_figure.stl'

Note: I shifted the test_pipe.igs from the /tests/test_datasets to /PyGeM directory for convinence.

rahulvigneswaran commented 5 years ago

@ndem0
numpy-stl ---- 2.9.0 pythonocc-core ---- 0.18.1

Sorry, I just now noticed that the pythonocc-core is not in the recommeded version. I will remove and try reinstalling 0.17.

rahulvigneswaran commented 5 years ago

Sorry for the trouble. The test.py ran successfully after I changed the pythonocc-core version to 0.17. Thank you for helping me through . @mtezzele @ndem0