I'm attempting to read an XML file and manipulate it via BeautifulSoup; however, when I try it I get the following error:
Code: Select all
20:20:50 T:2804 M:1472647168 ERROR: CThread::staticThread : Access violation at 0x774a224d: Writing location 0x00000014
The code is as follows:
Code: Select all
# this code works fine
xml_file = open( os.path.join( BASE_DIR, XML_FILE ) )
xml_data = open( xml_file, "r" ).read()
file_target_name = beatifulSoup.element.someTag
file_target = os.path.join( BASE_DIR, file_target_name )
# this code crashes xbmc
file_data = open( file_target, "r" ).read()
Code: Select all
filePath = "e:cache/92240a58/466b23e2.xml"
file_data = open( filePath, "r" ).read()
Code: Select all
file_data = open( "e:cache/92240a58/466b23e2.xml", "r" ).read()

I've tested and checked, then double checked that the path is the very same but it continues to freeze and crash... any ideas?
On an unrelated subject... why do we not have a Python Plugins & Script section in the Development forum? Yeah, yeah, perhaps we don't many devs, but it would still make sense to have one... i'm just saying!

