Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while using modRSRC.py #5

Open
andrea1984 opened this issue Jun 4, 2021 · 2 comments
Open

Error while using modRSRC.py #5

andrea1984 opened this issue Jun 4, 2021 · 2 comments

Comments

@andrea1984
Copy link

When I run modRSRC.py -f -m ..\ScriptSubVIs\ReadScriptFile.xml this error occurs:

Error: 'NoneType' object has no attribute 'findall'
Traceback (most recent call last):
File "C:\Users\ccsoper\Downloads\simucam\pylabview-master\modRSRC.py", line 7715, in main()
File "C:\Users\ccsoper\Downloads\simucam\pylabview-master\modRSRC.py", line 7701, in main checkBlocksAvailable(root, po)
File "C:\Users\ccsoper\Downloads\simucam\pylabview-master\modRSRC.py", line 7587, in checkBlocksAvailable
makeUidsUnique(FPHP, BDHP, ver, fo, po)
File "C:\Users\ccsoper\Downloads\simucam\pylabview-master\modRSRC.py", line 7476, in makeUidsUnique
zPlaneList_elems = ddo.findall("./paneHierarchy/zPlaneList/SL__arrayElement[@Class][@uid]")
AttributeError: 'NoneType' object has no attribute 'findall'

@andrea1984
Copy link
Author

I added a check on ddo variable: if ddo is not None:
Now when I try to recreate the vi, sadly I have this error: Inintialization from XML is not implemented
What should I do?

@mefistotelis
Copy link
Owner

The issue should be really fixed by not adding None to the list; it is added here:

allDDOsWithLists.append( FPHP.find("./SL__rootObject/root/ddoList/..") )

For Inintialization from XML is not implemented - well, you'd have to implement it. From call stack, you should be able to figure out which block (which python class) raised the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants