I’m totally new to python. I have this made this script to find a specifik attribute in a XML document, the script woirks fine in python IDLE as you can see. but when i put the script into dynamo it fails to run. what am i missing here?
The error is saying that there is an unexpected space or tab somewhere in your code. Do you have any code editor installed? Paste the code in it and use pylint to check where is that indent.
Thanks there was a unexpected tab in the code.
but now i get this error:
I think you need to pass it the file path, not a file from path.
still dosen’t work, it’s like it can’t find the module
if i try just to import xml.etree.ElementTree i get this error “ImportError: No module named xml”
Can it bee because it cant find the module library or something like that?
Try appending the Lib directory to your PATH variable. e.g.:
import sys sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib')
Yay Its works thanks all