Non-informative error when an SBML file doesn't exist


13
views
0
9 days ago by
If an SBML model file isn’t found the error message doesn’t say that, instead it says "NameError: global name 'os' is not defined".  (CC3D version 3.7.5)

Traceback (most recent call last):
  File "C:\CompuCell3D-64bit\pythonSetupScripts\CompuCellPythonSimulationNewPlayer.py", line 351, in <module>
    execfile(CompuCellSetup.simulationPaths.simulationPythonScriptName)
  File "C:\Users\James Sluka\Desktop\Small Code Projects\Multi_simple_liver\Liver_I_paper_model\cc3dCode\Simulation\PBPK
_SBML_MULTI.py", line 272, in <module>
    CompuCellSetup.mainLoop(sim,simthread,steppableRegistry)
  File "C:\CompuCell3D-64bit\pythonSetupScripts\CompuCellSetup.py", line 1761, in mainLoop
    return mainLoopNewPlayer(sim, simthread, steppableRegistry, _screenUpdateFrequency )
  File "C:\CompuCell3D-64bit\pythonSetupScripts\CompuCellSetup.py", line 1498, in mainLoopNewPlayer
    steppableRegistry.start()
  File "C:\CompuCell3D-64bit\pythonSetupScripts\PySteppables.py", line 1460, in start
    steppable.start()
  File "C:\Users\James Sluka\Desktop\Small Code Projects\Multi_simple_liver\Liver_I_paper_model\cc3dCode\Simulation\PBPK
_SBML_MULTISteppables.py", line 777, in start    self.addFreeFloatingSBML(_modelFile=modelFile,_modelName='PBPKWambaugh_cS',_stepSize=self.timeStepOfIntegration4,_in
itialConditions=initialConditions)
  File "C:\CompuCell3D-64bit\pythonSetupScripts\SBMLSolverHelper.py", line 184, in addFreeFloatingSBML
modelPathNormalized=os.path.abspath(os.path.join(self.simulator.getBasePath(),modelPathNormalized))
NameError: global name 'os' is not defined

Community: CompuCell3D

Similar posts:
Search »
  • Segmentation fault
    File attached: NewSimulation.zip (814.89 KB) In the project attached, if I open it in Twedit+...