-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing failing test on Windows #493
base: master
Are you sure you want to change the base?
Conversation
The new version is still not working: ====================================================== FAILURES ======================================================= src = 'C:\Users\sygo\AppData\Local\Temp\tmppe0c3koq', dst = 'C:\Users\sygo\AppData\Local\Temp\tmpcmdqr5us'
E FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\Users\sygo\AppData\Local\Temp\tmppe0c3koq' -> 'C:\Users\sygo\AppData\Local\Temp\tmpcmdqr5us' C:\Python\Python39\lib\shutil.py:815: FileExistsError During handling of the above exception, another exception occurred: testonto = get_ontology("http://emmo.info/testonto#")
test_basic.py:60: ......\ontopy2\EMMO-python\ontopy\ontology.py:1073: in sync_reasoner src = 'C:\Users\sygo\AppData\Local\Temp\tmppe0c3koq', dst = 'C:\Users\sygo\AppData\Local\Temp\tmpcmdqr5us'
E PermissionError: [Errno 13] Permission denied: 'C:\Users\sygo\AppData\Local\Temp\tmpcmdqr5us' C:\Python\Python39\lib\shutil.py:266: PermissionError |
Are you testing the latest update of this branch? |
Previous error was due to an unclean virtual environment. New error ================================================= test session starts ================================================= test_basic.py .F [100%] ====================================================== FAILURES ======================================================= testonto = get_ontology("http://emmo.info/testonto#")
test_basic.py:60: ..\ontopy\ontology.py:1085: in sync_reasoner input = None, capture_output = False, timeout = None, check = True
E subprocess.CalledProcessError: Command '['java', '-cp', 'C:\Users\sygo\Sylvain\Codes\temporary\ontopy3\EMMOntoPy\ontopy\factpluspluswrapper\java/lib/jars/*', '-Djava.library.path=C:\Users\sygo\Sylvain\Codes\temporary\ontopy3\EMMOntoPy\ontopy\factpluspluswrapper\java/lib/so', 'org.simphony.OntologyLoader', '--run-reasoner', 'C:\Users\sygo\AppData\Local\Temp\tmph7kl7670wt\tmponto.xml']' returned non-zero exit status 1. C:\Python\Python39\lib\subprocess.py:528: CalledProcessError tests/test_basic.py::test_basic -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html |
This is a difficult one when I am not able to reproduce the error. It could be that the version of java you have installed on your machine is incompatible with FaCT++? Are you able to run the command that subprocess tries to execute manually? It should also be possible to use HermiT on the absolutely latest version of EMMO 1.0.0-beta4 (tested on Linux). |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #493 +/- ##
=======================================
Coverage 72.90% 72.90%
=======================================
Files 18 18
Lines 3790 3791 +1
=======================================
+ Hits 2763 2764 +1
Misses 1027 1027 ☔ View full report in Codecov by Sentry. |
Closes #448
Type of change:
Checklist:
This checklist can be used as a help for the reviewer.
Comments: