BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

The place to post any Bugs or Problems you may have with the Current Release Version
paeuk
Posts: 34
Joined: Fri May 01, 2009 6:55 am

BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by paeuk »

Hi,

I've purchased Bibleanalyser and it's been running fine on Ubuntu-EEE 8.04 on my Asus EEE 901. However with the release of Ubuntu 9.04 netbook remix, I've re-installed Ubuntu on the Netbook and after re-installing BibleAnalyser cannot get it to work.

The symptoms are that I double click the icon and it appears to be starting then disappears (never loads)
I checked the "top" and Bible Analyzer is not in the list of active processes.

When I try and run Bible Analzer from /usr/bin in a terminal window I get

************************ Starting Bible Analyzer ***************************
Traceback (most recent call last):
File "/usr/share/bibleanalyzer/analyzer3.py", line 3, in <module>
import wx, re, wx.html, images, string, sys, cStringIO, os
ImportError: Bad magic number in /usr/share/bibleanalyzer/images.pyc

Press Enter to close terminal

I've done a search about the "Bad magic number" and what I've come up with is the following:

"This happens when you have a .pyc file that was compiled by a
different version from the Python you are trying to import
it with. Normally, if the corresponding .py file is around,
this is not a problem, because Python will automatically
recompile and produce a new .pyc file. So it seems that
you don't have the original .py file around here, or it
cannot be recompiled for some reason. (If they are both
present, you could try removing that .pyc file.)

Or you can try to find out what Python version is used, and
install that version... "

Does this make any sense? Is there something that I can add/install to Ubuntu 9.04 to make this work?

Thanks for the help

Paul


Paul Earle

paeuk
Posts: 34
Joined: Fri May 01, 2009 6:55 am

Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by paeuk »

Hi again,

I've done some further investigating and found an interesting forum thread related to similar errors using a different application:

http://ubuntuforums.org/showthread.php? ... 01&page=16):

It seems to be an issue related to Python 2.6 (that I asssume is in Ubuntu 9.04).

========================
Quote:
Originally Posted by flyguy97 View Post
There is a known issue with using python 2.6.
[...]
A workaround is to invoke the executable with the python2.5 command.
Yes, just change /usr/bin/sopcast-player as follows:
Code:
#!/bin/sh
/usr/bin/python2.5 /usr/share/sopcast-player/lib/sopcast-player.py $@

=========================

I don't know what the equivalent action would be with BibleAnalyzer to try this since I'm not a Linux expert!

Hope this helps.

Paul

paeuk
Posts: 34
Joined: Fri May 01, 2009 6:55 am

Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by paeuk »

And some additional information from another Forum:

Guys - solution from the ubuntu forums here
(http://ubuntuforums.org/showthread.php? ... 01&page=16):

**************
http://ubuntuforums.org/showthread.php? ... 01&page=16

I saw the same problem since python was updated in Jaunty. Because when Python
compiles, it embeds its magic number in the resulting .pyc, so when that is loaded
against another version of python, things go boom.

To fix the problem, go to /usr/share/sopcast-player/lib/ and delete all of the .pyc
files. But there is a direct reference to .pyc in the launcher, so you must also go
to /usr/bin/sopcast-player, and change .pyc to .py. After that, it should run for you.
**************

Brother Mike
Posts: 198
Joined: Fri Apr 03, 2009 3:18 pm
Location: Santa Clarita, CA

Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by Brother Mike »

Never fear, a fix is here.

I had the same issue when I upgraded to Kubuntu 9.04. And yes, it is the Python version that is the culprit.

Tim has the solution, it worked for me. I am sure he will be posting about it when he is ready.

paeuk
Posts: 34
Joined: Fri May 01, 2009 6:55 am

Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by paeuk »

Sounds great :)

Thanks
Paul

Tim
Site Admin
Posts: 1454
Joined: Sun Dec 07, 2008 1:14 pm

Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by Tim »

Ah, if not for Vista and Ubuntu I would be a sane man.

Yes, the .pyd files in the Bible Analyzer .deb were compiled with Python 2.5. Brother Mike discovered the "Magic Number" error when he tried to run Bible Analyzer on 9.04 and found out it was a Python version conflict. 9.04 appears to have Python 2.6 (I have not gotten my 9.04 CD yet).

To remedy the issue download this archive,
http://www.BibleAnalyzer.com/files/BALinux.zip and extract the .py files to your usr/share/bibleanalyzer folder and then try to run Bible Analyzer. The Python 2.6 in 9.04 will compile the files at runtime and hopefully all will be well.

Also, these files contain a minor update or Bible Analyzer.
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: 1454
Joined: Sun Dec 07, 2008 1:14 pm

Asus EEE 901 Issues

Post by Tim »

By the way, Paul, did your Asus EEE 901 come with Ubuntu or did you install it? Another Bible Analyzer user says he cannot install Bible Analyzer on his 901, and from what I can determine it has another brand of Linux. It uses .deb based packages, but will not let Bible Analyzer install. Do you have any suggestions?
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)

paeuk
Posts: 34
Joined: Fri May 01, 2009 6:55 am

Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by paeuk »

Hi Tim,

I installed Ubuntu myself on the 901. It originally comes with Xandros Linux, but the day I bought it I put Ubuntu-eee on there which works fine with BibleAnalyser. It's only when a few days ago my brother told me about the new Ubuntu 9.04 netbook remix that I blew away my previous install and started afresh with Ubuntu-9.04,

I'm not an expert on Linux (a novice really!) but what I would suggest for the user that is using Xandros is that if he can install but not run the BibleAnalyser is to run it from terminal and see what error messages come up - may then give some pointers).

Thanks for the files for solving the 9.04 issue. I'll give it a try :)

Paul

paeuk
Posts: 34
Joined: Fri May 01, 2009 6:55 am

Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by paeuk »

Hi Tim,

Just to let you know that the files you provided did the trick. All is working now. Many thanks.

Paul

alysona
Posts: 4
Joined: Tue Dec 29, 2009 4:28 am

Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run

Post by alysona »

I am using Linux Ubuntu and would like to download movies, but when I try to download the file does not start.? In applications) internet) transmission bit torrent client) the files report idle, but I know it works because I can test it on another computer using Windows. Any ideas?
______________________
yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator
Last edited by alysona on Sat Jan 09, 2010 1:50 am, edited 1 time in total.

Post Reply