Closed siddheshsingh26 closed 1 year ago
Hi, I was able to run a simple program using an xml file sent in the zip file. These are the contents of main.py and test.xml:
import xml.etree.ElementTree as ET
def read_xml(filename):
tree = ET.parse(filename)
root = tree.getroot()
for element in root.iter():
if element.text:
print(element.text)
xml_file = "/workspace/code/test.xml"
read_xml(xml_file)
<data>
<person>
<name>John Doe</name>
<age>30</age>
<city>New York</city>
</person>
<person>
<name>Jane Smith</name>
<age>25</age>
<city>Los Angeles</city>
</person>
</data>
However, when running the Edge_face_detector.zip I found another problem. The manager is able to find the python files and modules in the workspace using relative paths, but any other file is only found with absolute paths. I'm creating an issue and solving it now, please try again with this patch or using absolute paths
So basically i am working on building a webpage using Robotics Infrastructure and RAM in which i am taking a user input through a zip file . The zip file will contain .xml and .weights files which are needed to run the main.py . Below are the screenshots of the zips: XML:
weights: In this by removing the .weights file the RAM is able to unzip remaining 3 files
Error :