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 - 'NoneType' object has no attribute 'groups' #3

Open
ljy396 opened this issue Jun 11, 2013 · 4 comments
Open

Error - 'NoneType' object has no attribute 'groups' #3

ljy396 opened this issue Jun 11, 2013 · 4 comments

Comments

@ljy396
Copy link

ljy396 commented Jun 11, 2013

Hello,

I got below error messages when I was running python in terminal. It is similar to #issue 1.

from pyomxplayer import OMXPlayer
from pprint import pprint
omx = OMXPlayer('/home/pi/1.mp3')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/pyomxplayer.py", line 32, in init
file_props = self._FILEPROP_REXP.match(self._process.readline()).groups()
AttributeError: 'NoneType' object has no attribute 'groups'

Hope you guys fix this issue. Thanks.

@ljy396
Copy link
Author

ljy396 commented Jun 11, 2013

Sorry, Missed some characters. Post again

from pyomxplayer import OMXPlayer
from pprint import pprint
omx = OMXPlayer('/home/pi/1.mp3')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/pyomxplayer.py", line 32, in init
file_props = self._FILEPROP_REXP.match(self._process.readline()).groups()
AttributeError: 'NoneType' object has no attribute 'groups'

@leucos
Copy link

leucos commented Dec 11, 2013

File properties are not outputed by omxplayer on some versions. Just comment out the 3 lines below # Get file properties and the 3 lines starting with if self.audio['streams'] > 0:

@alfredoivan
Copy link

Hello, jbaiter

I have rpi raspbian #737 , latest omxplayer. And had this problem. Managed to solve it by commenting those lines , and ALSO the audio lines (group error) below.

Now it works almost flawless.

Hope this helps you ,

good work !
Alfredo Martínez Cáceres

sa7mon added a commit to sa7mon/pyomxplayer that referenced this issue Oct 13, 2015
@PangolinPaw
Copy link

Hello all,

I appreciate this is quite old but I've had similar experiences. leucos's suggestion and the 13 Oct 2015 commit resolved the problem for .mkv files, however .mp4 (while they no longer produce an error) do not play. Any suggestions would be appreciated.

bigheadz pushed a commit to bigheadz/OMXPlayer-python-client that referenced this issue Jul 21, 2017
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

4 participants