Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where is a file
#1
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?
Reply
#2
Search the file in File Explorer. You can cut and paste the path from there.
Reply
#3
(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.
Reply
#4
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.
Reply
#5
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020