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.

[BUG] AttributeError: 'NoneType' object has no attribute 'props'

See original GitHub issue

Describe the bug pydoro fails to play sound(s). Please see “Additional Context”.

To Reproduce Steps to reproduce the behavior:

  1. pydoro --audio-check
  2. Press Enter ‘…’
  3. 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kz6fittycentcommented, Sep 19, 2022

Thanks for responding (wow that was fast!). I have the following packages in both the build/stage packages:

    build-packages:
      - python3
      - python3-gi
      - python3-pip
      - python3-pygame
      - python3-gst-1.0      
      
    stage-packages:
      - python3
      - python3-gi
      - python3-pygame
      - python3-gst-1.0
      - gstreamer1.0-libav
     

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.

0reactions
kz6fittycentcommented, Sep 19, 2022

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.

Read more comments on GitHub >

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

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