I’m importing wx.media to play a video, however the import fails with this error: ImportError: No module named media
My import lines are:
import wx
import wx.media
I’m on raspberry pi and wxpython is working fine. My python version is 2.7.9 installed with wxgtk2.8 and wxgtk3.0. I can also see a media.py file in my /usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython folder.
Can anyone suggest a workaround? I’m trying to play a video on the panel.
Did you build wxPython yourself? Are you sure you built the media module? There should be two other files:
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_media.so
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/media.py
···
On Tue, 12 Jul 2016, Fazil Parappurath A wrote:
Hi,
I'm importing wx.media to play a video, however the import fails with this
error: ImportError: No module named media
My import lines are:
import wx
import wx.media
I'm on raspberry pi and wxpython is working fine. My python version is 2.7.9
installed with wxgtk2.8 and wxgtk3.0. I can also see a media.py file in my
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython folder.
Can anyone suggest a workaround? I'm trying to play a video on the panel.
Thanks for reply Scott. I used package manager (apt-get) to install. I do not see those two files you mentioned. Do you think I should reinstall manually?
Thanks for reply Scott. I used package manager (apt-get) to install. I do
not see those two files you mentioned. Do you think I should reinstall
manually?
On Tuesday, July 12, 2016 at 4:09:29 PM UTC-7, Scott Talbert wrote:
On Tue, 12 Jul 2016, Fazil Parappurath A wrote:
> Hi,
> I'm importing wx.media to play a video, however the import
fails with this
> error: ImportError: No module named media
>
> My import lines are:
> import wx
> import wx.media
>
> I'm on raspberry pi and wxpython is working fine. My python
version is 2.7.9
> installed with wxgtk2.8 and wxgtk3.0. I can also see a
media.py file in my
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython
folder.
>
> Can anyone suggest a workaround? I'm trying to play a video
on the panel.
Did you build wxPython yourself? Are you sure you built the
media module?
There should be two other files:
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_media.so
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/media.py
That's weird. Debian jessie should have wxPython 3.0. Do they perhaps have 3.0 also? Can you try installing that?
···
On Wed, 13 Jul 2016, Fazil Parappurath A wrote:
Linux raspberrypi 4.1.17-v7+Rasbian GNU/Linux 8 (jessie)
I think its very similar to debian.
-
Fazil
On Wednesday, July 13, 2016 at 11:36:08 AM UTC-7, Scott Talbert wrote:
What distribution are you using?
On Wed, 13 Jul 2016, Fazil Parappurath A wrote:
> Thanks for reply Scott. I used package manager (apt-get) to
install. I do
> not see those two files you mentioned. Do you think I should
reinstall
> manually?
>
> sudo apt-get install python-wxgtk2.8 python-wxtools
wx2.8-i18n
> libwxgtk2.8-dev
>
> -
>
> Fazil
>
> On Tuesday, July 12, 2016 at 4:09:29 PM UTC-7, Scott Talbert > wrote:
> On Tue, 12 Jul 2016, Fazil Parappurath A wrote:
>
> > Hi,
> > I'm importing wx.media to play a video, however the
import
> fails with this
> > error: ImportError: No module named media
> >
> > My import lines are:
> > import wx
> > import wx.media
> >
> > I'm on raspberry pi and wxpython is working fine. My
python
> version is 2.7.9
> > installed with wxgtk2.8 and wxgtk3.0. I can also see
a
> media.py file in my
> >
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython
> folder.
> >
> > Can anyone suggest a workaround? I'm trying to play
a video
> on the panel.
>
> Did you build wxPython yourself? Are you sure you
built the
> media module?
> There should be two other files:
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_media.so
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/media.py
>
Once you do that, it looks like the media module is packaged separately. You'll need to install python-wxgtk-media3.0 as well.
···
On Wed, 13 Jul 2016, Scott Talbert wrote:
That's weird. Debian jessie should have wxPython 3.0. Do they perhaps have 3.0 also? Can you try installing that?
On Wed, 13 Jul 2016, Fazil Parappurath A wrote:
Linux raspberrypi 4.1.17-v7+Rasbian GNU/Linux 8 (jessie)
I think its very similar to debian.
-
Fazil
On Wednesday, July 13, 2016 at 11:36:08 AM UTC-7, Scott Talbert wrote:
What distribution are you using?
On Wed, 13 Jul 2016, Fazil Parappurath A wrote:
> Thanks for reply Scott. I used package manager (apt-get) to
install. I do
> not see those two files you mentioned. Do you think I should
reinstall
> manually?
>
> sudo apt-get install python-wxgtk2.8 python-wxtools
wx2.8-i18n
> libwxgtk2.8-dev
>
> -
>
> Fazil
>
> On Tuesday, July 12, 2016 at 4:09:29 PM UTC-7, Scott Talbert >> wrote:
> On Tue, 12 Jul 2016, Fazil Parappurath A wrote:
>
> > Hi,
> > I'm importing wx.media to play a video, however the
import
> fails with this
> > error: ImportError: No module named media
> >
> > My import lines are:
> > import wx
> > import wx.media
> >
> > I'm on raspberry pi and wxpython is working fine. My
python
> version is 2.7.9
> > installed with wxgtk2.8 and wxgtk3.0. I can also see
a
> media.py file in my
> >
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython
> folder.
> >
> > Can anyone suggest a workaround? I'm trying to play
a video
> on the panel.
>
> Did you build wxPython yourself? Are you sure you
built the
> media module?
> There should be two other files:
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_media.so
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/media.py
>
It also has wxPython3.0. I installed media module as you suggested using “apt-get install python-wxgtk-media3.0”.
Now import wx.media is working. Thank you very much Scott!
···
On Wed, Jul 13, 2016 at 12:31 PM, Scott Talbert swt@techie.net wrote:
Once you do that, it looks like the media module is packaged separately. You’ll need to install python-wxgtk-media3.0 as well.
On Wed, 13 Jul 2016, Scott Talbert wrote:
That’s weird. Debian jessie should have wxPython 3.0. Do they perhaps have 3.0 also? Can you try installing that?
On Wed, 13 Jul 2016, Fazil Parappurath A wrote:
Linux raspberrypi 4.1.17-v7+Rasbian GNU/Linux 8 (jessie)
I think its very similar to debian.
Fazil
On Wednesday, July 13, 2016 at 11:36:08 AM UTC-7, Scott Talbert wrote:
What distribution are you using?
On Wed, 13 Jul 2016, Fazil Parappurath A wrote:
> Thanks for reply Scott. I used package manager (apt-get) to
install. I do
> not see those two files you mentioned. Do you think I should
reinstall
> manually?
>
> sudo apt-get install python-wxgtk2.8 python-wxtools
wx2.8-i18n
> libwxgtk2.8-dev
>
>
> -
>
> Fazil
>
>
> On Tuesday, July 12, 2016 at 4:09:29 PM UTC-7, Scott Talbert
wrote:
> On Tue, 12 Jul 2016, Fazil Parappurath A wrote:
>
> > Hi,
> > I'm importing wx.media to play a video, however the
import
> fails with this
> > error: ImportError: No module named media
> >
> > My import lines are:
> > import wx
> > import wx.media
> >
> > I'm on raspberry pi and wxpython is working fine. My
python
> version is 2.7.9
> > installed with wxgtk2.8 and wxgtk3.0. I can also see
a
> media.py file in my
> >
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython
> folder.
> >
> > Can anyone suggest a workaround? I'm trying to play
a video
> on the panel.
>
> Did you build wxPython yourself? Are you sure you
built the
> media module?
> There should be two other files:
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_media.so
>
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/media.py
>
>
>
I started with the same ‘module not found’
with import wx.media
My setup is python2.7.12, wxpython 3.0.2.0
gtk2 classic.
OS is linux
4.9 .58-71-arm7l-with-Ubuntu-16.04-xenial.ubuntu 16.04 xenial
Hardware is Odroid XU4
install python-wxgtk-media3.0 failed, ‘unable to fetch some archives’ (ubuntu-ports…)
Any ideas how I might replicate your
successful outcome?
Thanks for any advice, Graham.
···
On Tuesday, July 12, 2016 at 3:24:15 PM UTC-7, Fazil Parappurath A wrote:
Hi,
I’m importing wx.media to play a video, however the import fails with this error: ImportError: No module named media
My import lines are:
import wx
import wx.media
I’m on raspberry pi and wxpython is working fine. My python version is 2.7.9 installed with wxgtk2.8 and wxgtk3.0. I can also see a media.py file in my /usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython folder.
Can anyone suggest a workaround? I’m trying to play a video on the panel.
It looks like you're trying to use the Ubuntu packages. What's the full error message that you're getting from 'apt-get install python-wxgtk-media3.0 ?
···
On Wed, 11 Apr 2018, Graham Brown wrote:
Hi Fazil,Scott
I started with the same ‘module not found’ with import wx.media
My setup is python2.7.12, wxpython 3.0.2.0 gtk2 classic.
OS is linux 4.9 .58-71-arm7l-with-Ubuntu-16.04-xenial.ubuntu 16.04
xenial
Hardware is Odroid XU4
install python-wxgtk-media3.0 failed, ‘unable to fetch some archives’
(ubuntu-ports…)
Any ideas how I might replicate your successful outcome?
Thanks for any advice, Graham.
On Tuesday, July 12, 2016 at 3:24:15 PM UTC-7, Fazil Parappurath A wrote:
Hi,
I'm importing wx.media to play a video, however the import fails
with this error: ImportError: No module named media
My import lines are:
import wx
import wx.media
I'm on raspberry pi and wxpython is working fine. My python version
is 2.7.9 installed with wxgtk2.8 and wxgtk3.0. I can also see a
media.py file in my
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython
folder.
Can anyone suggest a workaround? I'm trying to play a video on the
panel.
Thank you in advance,
Fazil
--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Tuesday, July 12, 2016 at 3:24:15 PM UTC-7, Fazil Parappurath A wrote:
Hi,
I’m importing wx.media to play a video, however the import fails with this error: ImportError: No module named media
My import lines are:
import wx
import wx.media
I’m on raspberry pi and wxpython is working fine. My python version is 2.7.9 installed with wxgtk2.8 and wxgtk3.0. I can also see a media.py file in my /usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython folder.
Can anyone suggest a workaround? I’m trying to play a video on the panel.
For some reason your computer can't resolve ports.ubuntu.com so your installation of the packages fails. I don't know why that is happening. Perhaps you can try a different DNS server, or try again later.
···
On Thu, 12 Apr 2018, Graham Brown wrote:
Hi ScottThanks for replying.
I have attached a screenshot of the output. Please let me know if it's
not legible and Ii will type it out.
Best Regards, Graham.
On Tuesday, July 12, 2016 at 3:24:15 PM UTC-7, Fazil Parappurath A > wrote:
Hi,
I'm importing wx.media to play a video, however the import fails
with this error: ImportError: No module named media
My import lines are:
import wx
import wx.media
I'm on raspberry pi and wxpython is working fine. My python
version is 2.7.9 installed with wxgtk2.8 and wxgtk3.0. I can also
see a media.py file in my
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wxPython
folder.
Can anyone suggest a workaround? I'm trying to play a video on the
panel.
Thank you in advance,
Fazil
--
You received this message because you are subscribed to the Google
Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.