Python Forum
Where is a file - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Where is a file (/thread-23461.html)



Where is a file - tharpa - Dec-31-2019

Part of an error message I am receiving says
Error:
File "src/lxml/xmlschema.pxi", line 86, in lxml.etree.XMLSchema.__init__ lxml.etree.XMLSchemaParseError: Element '{http://www.w3.org/2001/XMLSchema}element', attribute 'ref': The QName value '{http://www.opengis.net/gml/3.2}pos' does not resolve to a(n) element declaration., line 130
But I am having a hard time finding the file src/lxml/xmlschema.pxi. Where would I find this file?


RE: Where is a file - michael1789 - Dec-31-2019

Search the file in File Explorer. You can cut and paste the path from there.


RE: Where is a file - tharpa - Dec-31-2019

(Dec-31-2019, 03:16 PM)michael1789 Wrote: Search the file in File Explorer. You can cut and paste the path from there.
Well, I am on Linux, but I have tried the equivalent of that
find . -iname 'xmlschema.pxi'
but nothing turns up.


RE: Where is a file - michael1789 - Dec-31-2019

That would suggest that the file doesn't exist on your machine. Is it maybe part of a library that might need installing? Pip will grab stuff online and install it, could that file be something like that? Forgive me, I don't know what that file is for, but your error has two web addresses in it.

Post the whole error, might have clues.


RE: Where is a file - Gribouillis - Dec-31-2019

There is such a file in the lxml source tree. Basically it means that a document that you're parsing is not a valid XML schema.