[Moin-devel] [ moin-Bugs-761464 ] Full Text Search Fails
SourceForge.net
noreply at sourceforge.net
Sat Jul 12 01:49:15 EDT 2003
Bugs item #761464, was opened at 2003-06-26 23:36
Message generated for change (Comment added) made by jhermann
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=761464&group_id=8482
Category: None
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Jonathan Smith (jcwinnie)
Assigned to: Nobody/Anonymous (nobody)
Summary: Full Text Search Fails
Initial Comment:
IOError: [Errno 21] Is a directory Python 2.2.2
/usr/bin/python
A problem occurred while running a Python script. Here
is the sequence of function calls leading up to the
error, with the most recent (innermost) call first. The
exception attributes are:
__doc__ = 'I/O operation failed.'
__getitem__ = <bound method IOError.__getitem__
of <exceptions.IOError instance at 0x828f564>>
__init__ = <bound method IOError.__init__ of
<exceptions.IOError instance at 0x828f564>>
__module__ = 'exceptions'
__str__ = <bound method IOError.__str__ of
<exceptions.IOError instance at 0x828f564>>
args = (21, 'Is a directory')
errno = 21
filename = None
strerror = 'Is a directory'
/usr/lib/python2.2/site-packages/MoinMoin/Page.py in
get_raw_body(self=<MoinMoin.Page.Page instance>)
136 self.set_raw_body(file.read())
137 finally:
138 file.close()
file = <closed file
'/var/www/html/Moin/data/text/RCS', mode 'rb'>, global
close = undefined
139
140 return self._raw_body
/usr/lib/python2.2/site-packages/MoinMoin/wikiutil.py
in searchPages(needle='Python', **kw={'case': 0,
'context': 40, 'literal': 0})
362 all_pages = getPageList(config.text_dir)
363 for page_name in all_pages:
364 body = Page(page_name).get_raw_body()
body =
"'''Contents'''\n[[TableOfContents]]\n\nHello Wo...d
Hello World HelloWorld\n\n=== HelloWorld ===\n", Page =
<class MoinMoin.Page.Page>, page_name = 'RCS', global
get_raw_body = undefined
365 if context:
366 pos = 0
/usr/lib/python2.2/site-packages/MoinMoin/wikiaction.py
in do_fullsearch(pagename='FindPage',
request=<MoinMoin.request.Request instance>,
fieldname='value')
67 pagecount, hits = wikiutil.searchPages(needle,
68 literal=request.form.has_key('literal'),
69 context=context, case=case)
context = 40, case = 0
70
71 # print the result
/usr/lib/python2.2/site-packages/MoinMoin/cgimain.py in
run(properties={})
199 else:
200 try:
201 cgitb.handler()
cgitb = <module 'MoinMoin.support.cgitb' from
'/usr/lib/python2.2/site-packages/MoinMoin/support/cgitb.py'>,
handler = <function do_fullsearch>
202 except:
203 cgi.print_exception(*saved_exc)
----------------------------------------------------------------------
>Comment By: Jürgen Hermann (jhermann)
Date: 2003-07-12 10:48
Message:
Logged In: YES
user_id=39128
You have a directory NOT starting with a dot in your text
directory, and you're not supposed to.
errno 21 should possibly be treated accordingly, anyway.
----------------------------------------------------------------------
Comment By: Jonathan Smith (jcwinnie)
Date: 2003-07-12 01:41
Message:
Logged In: YES
user_id=645989
BTW: The title search works. It is only the full text search
that fails.
----------------------------------------------------------------------
Comment By: Jonathan Smith (jcwinnie)
Date: 2003-07-11 16:35
Message:
Logged In: YES
user_id=645989
IOError: [Errno 21] Is a directory
Please include this information in your bug reports!:
Python 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC 3.2.2 20030222
(Red Hat Linux 3.2.2-4)] - /usr/bin/python
Linux Amalaki 2.4.20-18.9 #1 Thu May 29 06:54:41 EDT 2003 i686
MoinMoin Release 1.1 [Revision 1.173]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=761464&group_id=8482
More information about the Moin-devel
mailing list