Zim

search doesn't work

Bug #1002102 reported by ngsupb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Invalid
Undecided
Unassigned

Bug Description

The search option (Shift+Ctrl+F)doesn't search.
I have Zim 0.56 on Ubuntu 12.04

I didn't import anything just created a few test pages and tried to search something within those pages.
Also I tried to search from command line but it returns the same error all the time.
When I run zim --search Notes "test" or just zim I get this error:

Traceback (most recent call last):
  File "/usr/bin/zim", line 66, in <module>
    zim.main(argv)
  File "/usr/lib/pymodules/python2.7/zim/__init__.py", line 404, in main
    default = _get_default_or_only_notebook()
  File "/usr/lib/pymodules/python2.7/zim/__init__.py", line 234, in _get_default_or_only_notebook
    notebooks = get_notebook_list()
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 426, in get_notebook_list
    return config_file('notebooks.list', klass=NotebookInfoList)
  File "/usr/lib/pymodules/python2.7/zim/config.py", line 239, in config_file
    return klass(file, default=default)
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 205, in __init__
    self.read()
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 223, in read
    self.parse(lines)
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 283, in parse
    info = NotebookInfo(**section)
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 139, in __init__
    self.icon = File(icon).uri
  File "/usr/lib/pymodules/python2.7/zim/fs.py", line 1232, in __init__
    FilePath.__init__(self, path)
  File "/usr/lib/pymodules/python2.7/zim/fs.py", line 517, in __init__
    self._set_path(path) # overloaded in WindowsPath
  File "/usr/lib/pymodules/python2.7/zim/fs.py", line 546, in _set_path
    self.encodedpath = os.path.abspath(encode(path))
  File "/usr/lib/python2.7/posixpath.py", line 347, in abspath
    cwd = os.getcwd()
OSError: [Errno 2] No such file or directory
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 68, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
OSError: [Errno 2] No such file or directory

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/zim", line 66, in <module>
    zim.main(argv)
  File "/usr/lib/pymodules/python2.7/zim/__init__.py", line 404, in main
    default = _get_default_or_only_notebook()
  File "/usr/lib/pymodules/python2.7/zim/__init__.py", line 234, in _get_default_or_only_notebook
    notebooks = get_notebook_list()
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 426, in get_notebook_list
    return config_file('notebooks.list', klass=NotebookInfoList)
  File "/usr/lib/pymodules/python2.7/zim/config.py", line 239, in config_file
    return klass(file, default=default)
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 205, in __init__
    self.read()
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 223, in read
    self.parse(lines)
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 283, in parse
    info = NotebookInfo(**section)
  File "/usr/lib/pymodules/python2.7/zim/notebook.py", line 139, in __init__
    self.icon = File(icon).uri
  File "/usr/lib/pymodules/python2.7/zim/fs.py", line 1232, in __init__
    FilePath.__init__(self, path)
  File "/usr/lib/pymodules/python2.7/zim/fs.py", line 517, in __init__
    self._set_path(path) # overloaded in WindowsPath
  File "/usr/lib/pymodules/python2.7/zim/fs.py", line 546, in _set_path
    self.encodedpath = os.path.abspath(encode(path))
  File "/usr/lib/python2.7/posixpath.py", line 347, in abspath
    cwd = os.getcwd()
OSError: [Errno 2] No such file or directory

Revision history for this message
ngsupb (ngsupb) wrote :

sorry, the command line works fine. I figured out that I should put a path to the notes, that is why I got that error.

Searching from gui returns nothing still and I get any error there.

Revision history for this message
ngsupb (ngsupb) wrote :

sorry plz close this. The search window was so small and the search result box was closed. I maximized the box and found results of the search.

Changed in zim:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.