I am installing imgseekweb
according the instructions. I installed or had my hoster install imgSeekWeb.py
, iswImage/images
folder,
iswImage/thumbnai
l folder, Python Imaging Library (PIL), PyQT, imgSeek, imgSeekCmd (updated), and imgSeekWeb-0.0.1_2.
I was able to successfully create the database by running
imgSeekCmd add -b ~/data/img-db.iqd -r -d ~/public_html/iswImage/images
from my command line. My problem is that according to the instructions pointing my browser to my site http://godskingsandheroes.info/~socrtwo/cgi-bin/imgSeekWeb.py should give me some results. Instead it just prints out the text of the script in Firefox. If I remove ~socrtwo
, I get a 500 error. I did set http://godskingsandheroes.info/~socrtwo/cgi-bin/imgSeekWeb.py
to 755 (CHMOD) with my hoster's file manager. However this did not seem to help.
In the instructions there are references to putting the lines in bashrc
:
export PYTHONPATH=/usr/local/imgSeek/imgSeek-0.8.5/lib/python2.3/site-packages:$PYTHONPATH
export PATH=/usr/local/imgSeek/imgSeek-0.8.5/bin:$PATH
export PYTHONPATH=/usr/local/imgSeekWeb/lib/python2.3/site-packages:$PYTHONPATH
I'm betting this is the problem. I did run those lines from the command window with no obvious result. How would putting those lines in my bashrc
script change the behaviour of a web browser? Should it not just change the behavior of the bash command line tool?
When I run [~/public_html/cgi-bin]# python imgSeekWeb.py
from my Jail Shell command Window I get this error:
Traceback (most recent call last):
File "imgSeekWeb.py", line 6, in ?
from iswLib.IswSearch import *
ImportError: No module named iswLib.IswSearch
It appears not to be able to look in the Imgseeweb
folder for iswLib.IswSearch
. The file is there. I even change the name of the parent folder from imgSeekWeb-0.0.1_2
to imgSeekWeb-0.0.1
, however this did not seem to help.
Here are my configurations of the imgseekweb.py
as they stand now:
configUserParams = {
"DBname" : "~/data/img-db.iqd",
"HTMLThumbnailsURL" : "http://godskingsandheroes.info/~socrtwo/iswImage/thumbnails",
"IswThumbnailsDir" : "~/public_html/iswImage/thumbnails",
"HTMLImageURL" : "http://godskingsandheroes.info/~socrtwo/iswImage/images",
"IswImageDir" : "~/public_html/iswImage/images",
"TmpImageDir" : "~/tmp"
}
All the folders exist. If I change "~"
to "/home2/socrtwo/"
which is what the full path appears to be from feedback from creating the .iqd database, it doers not help. Also removing ~socrtwo
doesn't help in the http path in the configuration section.
Thanks for the help.