AttributeError: ‘ModuleRecord’ object has no attribute ‘_setModule’

If below errors while running the Python sample for Sentinel Cloud Web Services then solution is:

 

Errors: Traceback (most recent call last):   File “C:\Program Files (x86)\Safenet Sentinel\Sentinel Cloud Services_3.3_sandbox\Sentinel Cloud Connect Web Services\Samples\Python\ws_demo.py”, line 12, in     import scc_objects   File “C:\Program Files (x86)\Safenet Sentinel\Sentinel Cloud Services_3.3_sandbox\Sentinel Cloud Connect Web Services\Samples\Python\scc_objects.py”, line 32, in     ModuleRecord._setModule(sys.modules[__name__]) AttributeError: ‘ModuleRecord’ object has no attribute ‘_setModule’

 

Possible Reason: Python extension package PyXB corruption is the possible cause

 

Solution: Reinstalling PyXB package doesn’t help. Delete all the files from \Python27\Lib\site-packages and install the pyXB package [https://pypi.python.org/packages/source/P/PyXB/PyXB-1.1.4.tar.gz#md5=a600c7bb8dcc0bbcaedbce8c4c56ece1].

 

To configure PyXB run the command: python setup.py install