Re: [Boa Constr] Installing boa system-wide
Status: Beta
Brought to you by:
riaan
From: Hans-Peter J. <hp...@ur...> - 2002-03-15 10:46:46
|
On Friday, 15. March 2002 07:10, Arcady Genkin wrote: > Hello: > > What's the preferred way to install an executable /usr/bin/boa? I was > surprised when I didn't find it in the distribution. Anyhow, I tried > unpacking the sources into /usr/lib/python-2.2/site-modules/boa, and > then writing a small Python wrapper, but when I "import boa.Boa", I > get the following: > > ,---- > > | Starting Boa Constructor v0.1.0-alpha > | importing wxPython > | setting user preferences > | Traceback (most recent call last): > | File "<stdin>", line 1, in ? > | File "/usr/lib/python2.2/site-packages/boa/Boa.py", line 123, in ? > | import Preferences, About, Utils > | File "/usr/lib/python2.2/site-packages/boa/Preferences.py", line 50, in > | ? shutil.copy2(os.path.join(pyPath, prefsFile), file) > | File "/usr/lib/python2.2/shutil.py", line 73, in copy2 > | copyfile(src, dst) > | File "/usr/lib/python2.2/shutil.py", line 28, in copyfile > | fsrc = open(src, 'rb') > | IOError: [Errno 2] No such file or directory: > | '/home/antipode/prefs.rc.py' > > `---- > > The README.txt file says that > > ,---- > > | If you have an environmental variable set named HOME and the directory > | it points to contains a directory named '.boa' all preferences and config > | files will be copied to and used from this directory. > > `---- > > But that doesn't seem to be working, since I definitely have HOME > defined, and I even created ~/.boa manually. :( Any pointers? > > Many thanks, First try starting boa directly from were you've installed it: cd /usr/lib/python-2.2/site-modules/boa python ./Boa.py When this is working, I would create a script in /usr/local/bin: #!/bin/sh cd /usr/lib/python-2.2/site-modules/boa exec python ./Boa.py make it executable, and you're done, don't you? Boa.py and Help.py cannot be executed directly, as long as they contain windos line breaks... Cheers, Hans-Peter |