[BUG] AttributeError: 'NoneType' object has no attribute 'props'
See original GitHub issueDescribe the bug pydoro fails to play sound(s). Please see “Additional Context”.
To Reproduce Steps to reproduce the behavior:
pydoro --audio-check
- Press Enter ‘…’
- See error
Traceback (most recent call last):
File "/snap/pydoro/44/bin/pydoro", line 8, in <module>
sys.exit(main())
File "/snap/pydoro/44/lib/python3.8/site-packages/pydoro/pydoro_tui.py", line 130, in main
sound.play(in_app_path("b15.wav"), block=True)
File "/snap/pydoro/44/lib/python3.8/site-packages/pydoro/pydoro_core/sound.py", line 135, in _play_sound_nix
_play_sound_nix_blocking(sound)
File "/snap/pydoro/44/lib/python3.8/site-packages/pydoro/pydoro_core/sound.py", line 114, in _play_sound_nix_blocking
playbin.props.uri = "file://" + pathname2url(os.path.abspath(sound))
AttributeError: 'NoneType' object has no attribute 'props'
Expected behavior I expected pydoro to play it’s default sound or one that I chose (.wav).
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Pop!_OS
- Version 22.04
Additional context Please note, I am working on a snap for pydoro - so put your container hat on. 😃
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
AttributeError: 'NoneType' object has no attribute 'props' - Ignition
Here is my project I am creating a script inside of the CommitButton: def getComponentEntries(self): component_label = self.
Read more >Ubuntu Python Playsound error 'NoneType' object has no ...
You have to add the path of the audio file. eg. audio_filename = "/home/assistant/audio.mp3" and tts.save(audio_filename).
Read more >AttributeError: 'NoneType' object has no attribute 'props' #108
This bug appeared when I tried to load a video in .mkv format: Traceback ... AttributeError: 'NoneType' object has no attribute 'props' #108....
Read more >[FIXED] AttributeError: 'NoneType' object has no attribute ...
Hence, AttributeError: 'NoneType' object has no attribute 'something' error occurs when the type of object you are referencing is None.
Read more >[Solved] AttributeError: Nonetype Object Has No Attribute Group
When we try to call or access any attribute on a value that is not associated with its class or data type, we...
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 responding (wow that was fast!). I have the following packages in both the
build/stage
packages:That same error shows up in several places on the internet and so I added gstreamer in stage to see if would pick it up. I’ve also opened a thread here.
In fact, once I got the snap working, I intended to do a PR so others could reference the snap - which I’m happy to maintain since it automatically builds when you perform commits to your repo.
Hey, @JaDogg just an FYI
It turns out that Pop!_OS may be the real trouble-maker here.
They use
/etc/pop-os/os-release
instead of/etc/os/release
like everyone else. The snap works fine on other distros.