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
file://C:\WinPython3.3\3.3 - Biopythontest\WinPython-64bit-3.3.3.3\python-3.3.3.amd64\biopython\Test\CDAO\test.cdao/tree0000001#node0000001 does not look like a valid URI, trying to serialize this will break.
I did a bit of exploration on this error starting to the snippet Peter posted. I found out the problem started with RDFlib behaviour under Windows is legit, it put out the more compatible forward slashes. only one indeed, the one after the test.cdao file. The rest is handled by another parser and by the os.path library in the test callings, those modules actively converts forward slashes in backward slashes when used in Windows so when the path get passed to RDFlib it complains.
The only way out I could think of is using regular expression module before handling the path to RDFlib and change the backward slashes to forwards. I don't know the inner gut of Biopython so well, maybe there is another way to do it.
See http://lists.open-bio.org/pipermail/biopython-dev/2014-April/011294.html - the test output for CDAO reports a series of slightly messages (more than an hundred) that looks like this:
According to the RDFLib docstring for their URI class they issue this warning if the URI contains a Windows-style forward slash: http://rdflib.readthedocs.org/en/latest/_modules/rdflib/term.html
The relevant snippet of their code is:
My suggestion would be to switch all the
\
into/
to avoid these warnings under Windows:The text was updated successfully, but these errors were encountered: