#36 Full Text Search Fails

closed-accepted
nobody
None
5
2003-07-12
2003-06-26
No

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)

Discussion

  • Jonathan Smith

    Jonathan Smith - 2003-07-11

    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]

     
  • Jonathan Smith

    Jonathan Smith - 2003-07-11

    Logged In: YES
    user_id=645989

    BTW: The title search works. It is only the full text search
    that fails.

     
  • Jürgen Hermann

    Jürgen Hermann - 2003-07-12
    • status: open --> open-accepted
     
  • Jürgen Hermann

    Jürgen Hermann - 2003-07-12

    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.

     
  • Jonathan Smith

    Jonathan Smith - 2003-07-12

    Logged In: YES
    user_id=645989

    Yes, thank-you.

     
  • Jonathan Smith

    Jonathan Smith - 2003-07-12
    • status: open-accepted --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks