ImportError: No module named media

The place to discuss the Linux/Ubuntu edition

ImportError: No module named media

Postby IAmMarchHare » Fri Oct 18, 2013 8:32 am

I'd been frustrated by a couple of things lately, so I upgraded Ubuntu last night when it was offered to see if it fixed anything. Well, now BA doesn't want to work, and I'm wondering if there is a troubleshooting guide.

I'm getting what appears to me to be a Python error that is just vague enough to leave me scratching my head:

************ Starting Bible Analyzer *************
Traceback (most recent call last):
File "/opt/bibleanalyzer/analyzer4.py", line 20, in <module>
import flatNotebook as fnb
File "/opt/bibleanalyzer/flatNotebook.py", line 86, in <module>
import advSearch, flatTool
File "/opt/bibleanalyzer/flatTool.py", line 3, in <module>
import wx, contextMenu, advSearch, stats
File "/opt/bibleanalyzer/contextMenu.py", line 5, in <module>
import normSearch, controlMini, stats
File "/opt/bibleanalyzer/controlMini.py", line 2, in <module>
import normSearch, stats, compareDiff, fixRef, advSearch, contextMenu, kjd, games, library, audioPlayer, dialogs, related, baseClass
File "/opt/bibleanalyzer/audioPlayer.py", line 2, in <module>
import wx.media
ImportError: No module named media
IAmMarchHare
 
Posts: 5
Joined: Tue Jun 18, 2013 12:59 pm

Re: ImportError: No module named media

Postby Tim » Fri Oct 18, 2013 9:28 am

It seems all the dependencies were not installed with the new installation. Try running the Bible Analyzer .deb file again and it should check for and install all the dependencies needed.
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)
Tim
Site Admin
 
Posts: 706
Joined: Sun Dec 07, 2008 1:14 pm

Re: ImportError: No module named media

Postby IAmMarchHare » Sat Oct 19, 2013 12:52 pm

Thanks, Tim, but that was the first thing I thought of. I posted only after trying that. I did a little research afterwards, and it seems that the omission of wx.media is intentional. See https://bugs.launchpad.net/ubuntu/+sour ... ug/1224528. It sounds like a patch might already be awaiting approval.
IAmMarchHare
 
Posts: 5
Joined: Tue Jun 18, 2013 12:59 pm

Re: ImportError: No module named media

Postby Tim » Sat Oct 19, 2013 2:53 pm

Thanks for checking on this. Yes, it seems they left wx.media out for some reason. Thus Bible Analyzer 4.7 will not run on 13.10 unless it is modified to skip all the media functions.

It is likely best to see what they are going to do with the pending action before we do anything.

Sorry for the issue, but it is not us causing it this time (for once).
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)
Tim
Site Admin
 
Posts: 706
Joined: Sun Dec 07, 2008 1:14 pm

Re: ImportError: No module named media

Postby Brother Mike » Sun Nov 03, 2013 2:09 am

There is a fix either in the works or proposed for this. You can find info here:

https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/1224528

I have installed the test version for Ubuntu 13.10 (Saucy) and so far, seems to be working well, although I have not done much, it at least loads now, so I imagine it will all be good.

Steps:

Add the maintainer's test PPA to your sources:
Code: Select all
sudo add-apt-repository ppa:fabricesp/testbuild


Update your sources:
Code: Select all
sudo apt-get update


Upgrade your packages:
Code: Select all
sudo apt-get upgrade


This is all done from the command line, but can be accomplished through your favorite package and update manager.
God bless
Brother Mike
UNIX Systems Engineer

Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me. (John 14:6 AV)
Brother Mike
 
Posts: 173
Joined: Fri Apr 03, 2009 3:18 pm
Location: Santa Clarita, CA


Return to Linux Matters

Who is online

Users browsing this forum: No registered users and 1 guest

cron