Bible Analyzer fails to load

The place to discuss the Linux/Ubuntu edition
MyWereld
Posts: 34
Joined: Tue Feb 15, 2011 7:42 pm

Bible Analyzer fails to load

Post by MyWereld »

I'm getting this when trying to launch Bible Analyzer:

Code: Select all

Traceback (most recent call last):
  File "/opt/bibleanalyzer/analyzer4.py", line 6576, in <module>
    app = MyApp(0)
  File "/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/opt/bibleanalyzer/analyzer4.py", line 6548, in OnInit
    BAnalyzer = BibleAnalyzer(None, "Bible Analyzer 4.0")
  File "/opt/bibleanalyzer/analyzer4.py", line 85, in __init__
    self.LoadModules()
  File "/opt/bibleanalyzer/analyzer4.py", line 768, in LoadModules
    self.refIndex.GetModRefs()
  File "/opt/bibleanalyzer/utility.py", line 226, in GetModRefs
    self.doRefIndex(pth, selStr)
  File "/opt/bibleanalyzer/utility.py", line 196, in doRefIndex
    cur.execute("create table refindex(id INTEGER PRIMARY KEY, topic, line)")
sqlite3.OperationalError: attempt to write a readonly database

Press Enter to close terminal

Any idea what I need to do to get it going again?

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

Re: Bible Analyzer fails to load

Post by Tim »

Run once in Terminal with,

sudo bibleanalyzer

It should start normally after that.
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)

MyWereld
Posts: 34
Joined: Tue Feb 15, 2011 7:42 pm

Re: Bible Analyzer fails to load

Post by MyWereld »

Thanks for the reply, for others having the same issue:

In a terminal:

Code: Select all

xhost +
sudo bibleanalyzer
Like Tim said, do this once and it should be set from now on.
:)

blessedbeloved
Posts: 5
Joined: Thu Jan 26, 2012 12:19 am

Re: Bible Analyzer fails to load

Post by blessedbeloved »

Greetings!

I have similar experience on both LinuxMint15 Cinamon and LinuxMint LMDE after installing extra Modules.
On LM15Cinamon all I had to do was sudo bibleanalyzer to fix the problem. However, on LMDE that didn't work and there was an error message about "/root/Documents/BibleAnalyzer" not found.
What I did to solve the problem:
1) I manually created that folder by opening the folder "as administrator" and copied the "BibleAnalyzer" folder from my user folder over.
2) I ran the "sudo bibleanalyzer" command again in the terminal.
3) BA launched, creating the necessary indexes and stuffs.
4) BA launched normally there after
5) Tested BA again using my son's account. Launched as aspected!
6) Not sure if I could delete the extra "/root/Documents/BibleAnalyzer" folder? If I do, would I need to re-create it in the future when installing more Modules in the future?

Glory to God!!
Just to document my experience and Hope this help someone :).

MyWereld
Posts: 34
Joined: Tue Feb 15, 2011 7:42 pm

Re: Bible Analyzer fails to load

Post by MyWereld »

I get the following error with 4.8, and all previous fixes did not work this time around:

Code: Select all

/home/user App dir
/root/Documents/BibleAnalyzer home user folder
/opt/bibleanalyzer all users
/root/Documents/BibleAnalyzer docs modules folder
/root/.config/bibleanalyzer user
/opt/bibleanalyzer/modules/bible/asv.bib needs new word list
Traceback (most recent call last):
  File "/opt/bibleanalyzer/ba-run.py", line 6, in <module>
    app = analyzer4.MyApp()
  File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8631, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/opt/bibleanalyzer/bibleanalyzer-4.8.zip/analyzer4.py", line 6918, in OnInit
  File "/opt/bibleanalyzer/bibleanalyzer-4.8.zip/analyzer4.py", line 6922, in ShowMain
  File "/opt/bibleanalyzer/bibleanalyzer-4.8.zip/analyzer4.py", line 84, in __init__
  File "/opt/bibleanalyzer/bibleanalyzer-4.8.zip/analyzer4.py", line 821, in LoadModules
  File "/opt/bibleanalyzer/bibleanalyzer-4.8.zip/utility.py", line 257, in GetWdList
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Press Enter to close terminal
^ This is while running it as sudo. Get the exact same error when trying to run as normal user.

jeffneedle
Posts: 30
Joined: Fri Apr 29, 2011 1:20 am

Re: Bible Analyzer fails to load

Post by jeffneedle »

Followed all the instructions. Here's the output from terminal. Running as sudo:

************ Starting Bible Analyzer *************
/usr/bin App dir
/home/jeff/Documents/BibleAnalyzer home user folder
/opt/bibleanalyzer all users
/home/jeff/Documents/BibleAnalyzer docs modules folder
/home/jeff/.config/bibleanalyzer user
Traceback (most recent call last):
File "/opt/bibleanalyzer/ba-run.py", line 5, in <module>
import analyzer4
File "/opt/bibleanalyzer/bibleanalyzer-4.8.zip/analyzer4.py", line 38, in <module>
File "/opt/bibleanalyzer/bibleanalyzer-4.8.zip/imgViewer.py", line 10, in <module>
ImportError: No module named PIL

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

Re: Bible Analyzer fails to load

Post by Tim »

I may have forgotten to put PIL in the dependencies list.

Try installing PIL and see if it will start. It might be called python-PIL or something. I'm away from the office at the moment and can't check.
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)

MyWereld
Posts: 34
Joined: Tue Feb 15, 2011 7:42 pm

Re: Bible Analyzer fails to load

Post by MyWereld »

And any idea on the error I posted?

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

Re: Bible Analyzer fails to load

Post by Tim »

The report says it can find a Pyhton file,
"/usr/lib/python2.7/subprocess.py"

Subprocess.py is a Python system file that is a part of Python itself. It is not a part of Bible Analyzer. Why it is missing I have no idea.

Maybe you can reinstall Python 2.7 and get it back.
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)

MyWereld
Posts: 34
Joined: Tue Feb 15, 2011 7:42 pm

Re: Bible Analyzer fails to load

Post by MyWereld »

Code: Select all

$ locate subprocess.py
/usr/lib/python2.7/subprocess.py
/usr/lib/python2.7/subprocess.pyc
/usr/lib/python2.7/subprocess.pyo
/usr/lib/python2.7/test/test_subprocess.py
/usr/lib/python2.7/test/test_subprocess.pyc
/usr/lib/python2.7/test/test_subprocess.pyo
It is definitely installed, will reinstall python2 just to make sure.

Post Reply