You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, an issue arised with Windows paths for the PyCIFRW dependency, which has been reported and subsequently fixed.
When running the script now, it fails for similar reasons (Windows path handling) via the this dependency, specifically in the line self.top = self.world.get_ontology(cif_top).load(), where self.world = emmo.World().
Full traceback:
C:\Users\c_w_a\Documents\GitHub\CIF-ontology\cif_top.ttl does not look like a valid URI, trying to serialize this will break.Traceback (most recent call last): File ".\dic2owl\dic2owl\generate_cif.py", line 211, in <module> self = gen = main() File ".\dic2owl\dic2owl\generate_cif.py", line 191, in main gen = Generator(dicfile="cif_core.dic", base_iri=base_iri) self.top = self.world.get_ontology(cif_top).load() File "C:\Users\c_w_a\.virtualenvs\EMMO\lib\site-packages\emmo\ontology.py", line 295, in load self._load(only_local=only_local, filename=filename, format=format, File "C:\Users\c_w_a\.virtualenvs\EMMO\lib\site-packages\emmo\ontology.py", line 397, in _load g.parse(resolved_url, format=fmt) File "C:\Users\c_w_a\.virtualenvs\EMMO\lib\site-packages\rdflib\graph.py", line 1062, in parse source = create_input_source( File "C:\Users\c_w_a\.virtualenvs\EMMO\lib\site-packages\rdflib\parser.py", line 193, in create_input_source input_source = URLInputSource(absolute_location, format) File "C:\Users\c_w_a\.virtualenvs\EMMO\lib\site-packages\rdflib\parser.py", line 113, in __init__ file = urlopen(req) File "C:\Users\c_w_a\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 222, in urlopen return opener.open(url, data, timeout) File "C:\Users\c_w_a\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 525, in open response = self._open(req, data) File "C:\Users\c_w_a\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 547, in _open return self._call_chain(self.handle_open, 'unknown', File "C:\Users\c_w_a\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 502, in _call_chain result = func(*args) File "C:\Users\c_w_a\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 1390, in unknown_open raise URLError('unknown url type: %s' % type)urllib.error.URLError: <urlopen error unknown url type: c>
My setup:
Windows 10 (version 20H2, build 19042.928)
Python 3.8.1
Virtual environment through virtualenvironment-powershell.
Installed EMMO from PyPI (version 1.0.0)
While I normally use WSL 2.0 (Linux kernel in Windows), I would prefer not to for this particular project.
The text was updated successfully, but these errors were encountered:
Hmm, it might be my fault for working in the branch, where I moved stuff around and the fact that the script expects the ontology files to be present alongside it.
Hmm, it might be my fault for working in the branch, where I moved stuff around and the fact that the script expects the ontology files to be present alongside it.
Indeed. This could all be fixed from the side of the script using EMMO-Python, i.e., it should be fine on this side. I will therefore close this issue.
From CIF-ontology, I tried to run
generate_cif.py
locally on my Windows 10 environment with Python 3.8.First, an issue arised with Windows paths for the PyCIFRW dependency, which has been reported and subsequently fixed.
When running the script now, it fails for similar reasons (Windows path handling) via the this dependency, specifically in the line
self.top = self.world.get_ontology(cif_top).load()
, whereself.world = emmo.World()
.Full traceback:
My setup:
Windows 10 (version 20H2, build 19042.928)
Python 3.8.1
Virtual environment through
virtualenvironment-powershell
.Installed EMMO from PyPI (version 1.0.0)
While I normally use WSL 2.0 (Linux kernel in Windows), I would prefer not to for this particular project.
The text was updated successfully, but these errors were encountered: