Setup Error: AttributeError: 'Element' object has no attribute 'doc_id'
See original GitHub issueI was trying to use this package today, and I kept getting an error that stated my device might be in use. I had no other applications that I thought could be the culprit. So I opened up the code.
By adding these changes:
++2:import traceback
++1523: traceback.print_exc()
I got a stack trace below:
>python setup.py
MIDItoOBS made by https://github.com/lebaston100
This setup assistant will guide you though the initial setup. If you experience any problems that you can not solve on your own feel free to open an issue on Github
!!Important!!
!!MAKE SURE OBS IS RUNNING OR THIS SCRIPT WILL CRASH!!
!!MAKE SURE THAT THE MIDI DEVICE(S) ARE NOT IN USE BY ANOTHER APPLICATION!!
Please select the number of what you want to do:
1: Re-Setup the midi devices that are used.
2: Leave the selected midi devices as-is and just edit button/fader assignment
Select 1 or 2: 2
Traceback (most recent call last):
File "C:\Users\chris\Downloads\MIDItoOBS-0.2.5\MIDItoOBS-0.2.5\setup.py", line 1520, in <module>
tempobj = {"id": device.doc_id, "object": tempmidiport, "devicename": device["devicename"]}
AttributeError: 'Element' object has no attribute 'doc_id'
Could not open device LPD8 0
The midi device might be used by another application/not plugged in/have a different name.
Please close the device in the other application/plug it in/edit the name in the config.json and restart this script.
I’ll dig a little further, but wanted to throw this up here in case its a simple fix that you may respond before I can figure it out.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
'Element' object has no attribute 'childNodes' while parsing xml
You are getting AttributeError because xml.etree.ElementTree.Element object has no attribute childNodes. To iterate over childern elements, ...
Read more >AttributeError: 'Element' object has no attribute 'data' - Reddit
AttributeError : 'Element' object has no attribute 'data'. I don't understand this error message, what does it mean and how should I fix...
Read more >Py 3.9 failures: 'xml.etree.ElementTree.Element' object has no ...
When running on Python 3.9, tests fail with the above error. ... Element' object has no attribute 'getchildren' #583.
Read more >PyXB: Python XML Schema Bindings Activity - SourceForge
I am trying to access one of the element from complex type and running into 'AttributeError: '_PluralBinding' object has no attribute' ...
Read more >python-docx Documentation - Read the Docs
0 and later are not API-compatible with prior versions. python-docx is hosted on PyPI, so installation is relatively simple, and just depends on ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the report. I’ll investigate that further soon and maybe update the version.
Thanks for the tool, and the blazing fast response. 😁