Home My Page Projects Code Snippets Project Openings devtools
Summary Activity Tracker SCM

[#3617] ccp4i2 tests failure: No module named 'utils'

Date:
2023-06-20 10:30
Priority:
3
State:
Open
Submitted by:
Charles Ballard (ccb63)
Assigned to:
Stuart McNicholas (mcnicholas)
Summary:
ccp4i2 tests failure: No module named 'utils'

Detailed description
Test101\RunTests\testSuite.py:49: in <module>
from utils import startup
E ModuleNotFoundError: No module named 'utils'
generated xml file: C:\msys64\je\workspace\CCP4\s8w\devtools\test-install\test\i2Test.xml

run with
ccp4-python -m pytest -rP ./test101/RunTests/testSuite.py --junit-xml i2Test.xml
Message  ↓
Date: 2023-06-20 10:32
Sender: Maria Fando

I added the path to py3.9 in testSuite.py:


================================================================================================= ERRORS ==================================================================================================
______________________________________________________________________________________ ERROR collecting testSuite.py ______________________________________________________________________________________
Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ccp4i2/core/CCP4Utils.py:192: in openFile
f = open(fileName,mode)
E FileNotFoundError: [Errno 2] No such file or directory: 'configs/ccp4i2_config.params.xml'

During handling of the above exception, another exception occurred:
test101/RunTests/testSuite.py:50: in <module>
CCP4Config.CConfig().insts.graphical = None
Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ccp4i2/core/CCP4Config.py:80: in __init__
self.saveDataToXml(filename)
Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ccp4i2/core/CCP4Config.py:171: in saveDataToXml
f.saveFile(root)
Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ccp4i2/core/CCP4File.py:1328: in saveFile
CCP4Utils.saveFile(fileName=fileName, text=text,overwrite=1)
Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ccp4i2/core/CCP4Utils.py:206: in saveFile
f = openFile(fileName,mode,overwrite=overwrite)
Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ccp4i2/core/CCP4Utils.py:194: in openFile
raise CException(CUtils, 110, str(fileName) + " mode:" + str(mode) + " overwrite:" + str(overwrite) + " exists:" + str(os.path.exists(fileName)))
E core.CCP4ErrorHandling.CException: None -ERROR- CUtils:110 Error opening file
E configs/ccp4i2_config.params.xml mode:w overwrite:1 exists:False

No Changes Have Been Made to This Item