question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setup Error: AttributeError: 'Element' object has no attribute 'doc_id'

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lebaston100commented, Dec 14, 2020

Thanks for the report. I’ll investigate that further soon and maybe update the version.

0reactions
CDeLeon94commented, Dec 14, 2020

Thanks for the tool, and the blazing fast response. 😁

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found