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

No module named 'omxplayer' after review #66 & #77 #103

Closed
deepline1986 opened this issue Sep 25, 2017 · 6 comments
Closed

No module named 'omxplayer' after review #66 & #77 #103

deepline1986 opened this issue Sep 25, 2017 · 6 comments
Labels

Comments

@deepline1986
Copy link

@deepline1986 deepline1986 commented Sep 25, 2017

Issue Report

Description

I run the example code by python3. The error code is "No module named 'omxplayer'"

I've checked the #66 & #77 but it seems cannot solve the issue.

The example code is coming from "http://python-omxplayer-wrapper.readthedocs.io/en/latest/" and it seems support python3 already.

Thanks for the support!

Problem reproduction

#!/usr/bin/env python3

from omxplayer.player import OMXPlayer
from pathlib import Path
from time import sleep

VIDEO_PATH = Path("../home/pi/Videos/1080p.mkv")

player = OMXPlayer(VIDEO_PATH)
player.play()

sleep(5)

player.quit()

Environment details

Raspbian

@willprice
Copy link
Owner

@willprice willprice commented Sep 26, 2017

Can you provide more information:

  • How did you install the library
  • What version of python 3 you are using.
@willprice willprice added the question label Sep 26, 2017
@StevenJUlbrich
Copy link

@StevenJUlbrich StevenJUlbrich commented Nov 4, 2017

Hello
I am having the same issue
Python 3.5.I default Jan 19, 2017

I followed the install instructions from http://python-omxplayer-wrapper.readthedocs.io/en/latest/

the first line would not resolve properly but a basic check showed that libdbus-1.3 present
the pip install was executed
rebooted the raspberry pi

RESTART: /home/ip/python-omxplayer-wrapper/examples/video_file.py
Traceback(most recent call lst):
File "/home/pi/python-omxplayer-wrapper/examples/video_file.py" line 3, in from omxplayer.player import OMXPlayer: No module named 'omxplayer'

@jehutting
Copy link

@jehutting jehutting commented Nov 5, 2017

Maybe if you use pip3 (in stead of pip)? pip3 is normally the command to use for installing packages for Python3?

$ pip3 install omxplayer-wrapper
@StevenJUlbrich
Copy link

@StevenJUlbrich StevenJUlbrich commented Nov 9, 2017

pip3 did the trick

@RonDraper
Copy link

@RonDraper RonDraper commented May 21, 2018

I'm basically having the same issue. I have done the pip3 install omxplay-wrapper command. Everything is up to date and requirements already satisfied.
My issue is that my import works while using the terminal and why using Thonny to execute the py module. But when I try to get the raspberry pi to execute it on startup it fails.

@willprice
Copy link
Owner

@willprice willprice commented May 21, 2018

What is thorny, how are you trying to start it up and can you capture a stack trace of the issue? I'm guessing you're invoking it with the wrong version of python and hence a different suite of site-packages where omxplayer-wrapper isn't installed

@willprice willprice closed this Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.