
Desde un directorio que ya no existe:

sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
lsh: 0: getcwd() failed: No such file or directory
sTraceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 756, in <module>
    sys.exit(chdir_decorator())
  File "/usr/lib/go2/go2.py", line 684, in chdir_decorator
    target = os.path.abspath(params)
  File "/usr/lib/python2.7/posixpath.py", line 347, in abspath
    cwd = os.getcwd()
OSError: [Errno 2] No such file or directory


At press ENTER without matches:

Searching.   Traceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 1090, in <module>
    sys.exit(Go2().main())
  File "/usr/lib/go2/go2.py", line 908, in main
    self.reactor.run()
  File "/usr/lib/go2/go2.py", line 742, in run
    raise self.exception
IndexError: list index out of range

-------------------------------------------------------

$ cd repos  # repos existe
Traceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 942, in <module>
    sys.exit(chdir_decorator())
  File "/usr/lib/go2/go2.py", line 872, in chdir_decorator
    save_in_history(target)
  File "/usr/lib/go2/go2.py", line 284, in save_in_history
    PathFileStore(GO2HISTORY).insert_and_save(path)
  File "/usr/lib/go2/go2.py", line 217, in init_
    self.load()
  File "/usr/lib/go2/go2.py", line 223, in load
    self._load_file_lines(fd)
  File "/usr/lib/go2/go2.py", line 242, in _load_file_lines
    self.data[decode(path)] = int(visits)
  File "/usr/lib/go2/go2.py", line 230, in decode
    return path.strip().decode('utf8')
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf1 in position 64:

-------------------------------------------------------

$ cd not/existing/path


-------------------------------------------------------

$ go2 c++

-------------------------------------------------------

not/existing/path$ cd ..
Traceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 1075, in <module>
    sys.exit(chdir_decorator())
  File "/usr/lib/go2/go2.py", line 988, in chdir_decorator
    target = os.path.abspath(params)
  File "/usr/lib/python2.7/posixpath.py", line 345, in abspath
    cwd = os.getcwdu()
OSError: [Errno 2] No such file or directory

-------------------------------------------------------

$ cd /usr/share/texmf-texlive/tex/latex/arco/arco-listings.sty
Traceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 1058, in <module>
      sys.exit(create_directory_wizzard(target.args[0]))
        File "/usr/lib/go2/go2.py", line 934, in
create_directory_wizzard
    print "go2: '%s' does not exist.\n(c)ancel, (s)earch or (m)ake?
(C/s/m):" % target,
UnboundLocalError: local variable 'target' referenced before assignment

$ cd ../...
Traceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 1058, in <module>
    sys.exit(create_directory_wizzard(target.args[0]))
  File "/usr/lib/go2/go2.py", line 934, in create_directory_wizzard
    print "go2: '%s' does not exist.\n(c)ancel, (s)earch or (m)ake? (C/s/m):" % target,
UnboundLocalError: local variable 'target' referenced before assignment

$ cd /usr/share/texmf-texlive/tex/latex/arco/arco-listings.sty
Traceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 1058, in <module>
      sys.exit(create_directory_wizzard(target.args[0]))
        File "/usr/lib/go2/go2.py", line 934, in
create_directory_wizzard
    print "go2: '%s' does not exist.\n(c)ancel, (s)earch or (m)ake?
(C/s/m):" % target,
UnboundLocalError: local variable 'target' referenced before assignment

$ cd ../...
Traceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 1058, in <module>
    sys.exit(create_directory_wizzard(target.args[0]))
  File "/usr/lib/go2/go2.py", line 934, in create_directory_wizzard
    print "go2: '%s' does not exist.\n(c)ancel, (s)earch or (m)ake? (C/s/m):" % target,
UnboundLocalError: local variable 'target' referenced before assignment


--

$ cd ../some
Traceback (most recent call last):
  File "/usr/lib/go2/go2.py", line 1100, in <module>
    sys.exit(create_directory_wizzard(target.args[0]))
  File "/usr/lib/go2/go2.py", line 972, in create_directory_wizzard
    print "go2: '%s' does not exist.\n(c)ancel, (s)earch or (m)ake? (C/s/m):" % target,
UnboundLocalError: local variable 'target' referenced before assignment
