BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
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
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
Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
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
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
Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
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.
**************
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.
**************
-
- Posts: 200
- Joined: Fri Apr 03, 2009 3:18 pm
- Location: Santa Clarita, CA
- Contact:
Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
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.
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.
Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
Sounds great
Thanks
Paul
Thanks
Paul
Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
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.
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)
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)
Asus EEE 901 Issues
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)
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)
Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
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
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
Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
Hi Tim,
Just to let you know that the files you provided did the trick. All is working now. Many thanks.
Paul
Just to let you know that the files you provided did the trick. All is working now. Many thanks.
Paul
Re: BibleAnalyzer 3.61 and Ubuntu 9.04 Won't Run
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
______________________
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.