zefex
Posts: 1
Joined: Wed Oct 25, 2017 10:25 pm

Work project: OMXPLAYER Wrapper / Error Module

Wed Oct 25, 2017 10:57 pm

Hi, I am new to Raspberry Pi
I just installed OMXPlayer and also the wrapper by cloning it from Git and install

When i execute the example i get this message in Thonny:

Code: Select all

Python 3.5.3 (/usr/bin/python3)
>>> %cd /home/pi/python-omxplayer-wrapper/examples
>>> %Run video_file.py
Traceback (most recent call last):
  File "/home/pi/python-omxplayer-wrapper/examples/video_file.py", line 3, in <module>
    from omxplayer.player import OMXPlayer
ImportError: No module named 'omxplayer'
>>> 
Can someone please help me to understand what went wrong?

I am using Raspberry Pi 3, my boss has hired me to get this working.

Thank you!
-Zefex

jehutting
Posts: 143
Joined: Sun Feb 15, 2015 8:37 am
Location: The Netherlands

Re: Work project: OMXPLAYER Wrapper / Error Module

Thu Nov 09, 2017 5:22 am

You need to use pip3 instead of pip when installing the wrapper.

See Will Price github issue #103.

Return to “Python”