--------------------------------------------------------------------------- TypeError Python 2.7.6: c:\Python27\python.exe Mon May 26 07:47:25 2014 A problem occured executing Python code. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call last. C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\bin\omero in () 110 downloaded a distribution, please provide which link you 111 used. 112 """ % ie 113 print "*"*80 114 print """ 115 Debugging Info: 116 -------------- 117 CWD=%s 118 VERSION=%s 119 OMERO_HOME=%s 120 PYTHONPATH=%s 121 """ % (os.getcwd(), sys.version.replace("\n"," "), omero_home, sys.path) 122 sys.exit(2) 123 124 logging.basicConfig(level=logging.WARN) --> 125 rv = omero.cli.argv() global rv = undefined global omero.cli.argv = 126 sys.exit(rv) 127 except KeyboardInterrupt, ki: 128 print "Cancelled" 129 sys.exit(1) 130 131 132 133 134 135 136 137 138 139 140 C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.pyc in argv(args=[r'C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\bin\\omero', 'shell']) 1227 cli = CLI(prog = original_executable.split("-")[0]) 1228 1229 parser = Parser(add_help = False) 1230 #parser.add_argument("-d", "--debug", help="Use 'help debug' for more information", default = SUPPRESS) 1231 parser.add_argument("--path", help="Add file or directory to plugin list. Supports globs.", action = "append") 1232 ns, args = parser.parse_known_args(args) 1233 if getattr(ns, "path"): 1234 for p in ns.path: 1235 for g in glob.glob(p): 1236 cli._plugin_paths.append(g) 1237 1238 # For argparse dispatch, this cannot be done lazily 1239 cli.loadplugins() 1240 1241 if len(args) > 1: -> 1242 cli.invoke(args[1:]) 1243 return cli.rv 1244 else: 1245 cli.invokeloop() 1246 return cli.rv 1247 finally: 1248 if old_ice_config: 1249 os.putenv("ICE_CONFIG", old_ice_config) 1250 1251 ##################################################### 1252 # 1253 # Specific argument types 1254 1255 class ExperimenterGroupArg(object): 1256 1257 def __init__(self, arg): C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.pyc in invoke(self=, line=['shell'], strict=False, previous_args=None) 776 self._stack = [] #: List of commands being processed 777 self._client = None #: Single client for all activities 778 self._plugin_paths = [OMEROCLI / "plugins"] #: Paths to be loaded; initially official plugins 779 self._pluginsLoaded = CLI.PluginsLoaded() 780 781 def assertRC(self): 782 if self.rv != 0: 783 raise NonZeroReturnCode(self.rv, "assert failed") 784 785 def invoke(self, line, strict = False, previous_args = None): 786 """ 787 Copied from cmd.py 788 """ 789 try: 790 line = self.precmd(line) --> 791 stop = self.onecmd(line, previous_args) 792 stop = self.postcmd(stop, line) 793 if strict: 794 self.assertRC() 795 finally: 796 if len(self._stack) == 0: 797 self.close() 798 else: 799 self.dbg("Delaying close for stack: %s" % len(self._stack), level = 2) 800 801 def invokeloop(self): 802 # First we add a few special commands to the loop 803 class PWD(BaseControl): 804 def __call__(self, args): 805 self.ctx.out(os.getcwd()) 806 class LS(BaseControl): C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.pyc in onecmd(self=, line=['shell'], previous_args=None) 845 self.selfintro = "" 846 847 def onecmd(self, line, previous_args = None): 848 """ 849 Single command logic. Overrides the cmd.Cmd logic 850 by calling execute. Also handles various exception 851 conditions. 852 """ 853 try: 854 # Starting a new command. Reset the return value to 0 855 # If err or die are called, set rv non-0 value 856 self.rv = 0 857 try: 858 self._stack.insert(0, line) 859 self.dbg("Stack+: %s" % len(self._stack), level=2) --> 860 self.execute(line, previous_args) 861 return True 862 finally: 863 self._stack.pop(0) 864 self.dbg("Stack-: %s" % len(self._stack), level=2) 865 except SystemExit, exc: # Thrown by argparse 866 self.dbg("SystemExit raised\n%s" % traceback.format_exc()) 867 self.rv = exc.code 868 return False 869 # 870 # This was perhaps only needed previously 871 # Omitting for the moment with the new 872 # argparse refactoring 873 # 874 #except AttributeError, ae: 875 # self.err("Possible error in plugin:") C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.pyc in execute(self=, line=['shell'], previous_args=None) 925 old_debug = self.isdebug 926 if "debug" in debug_opts: 927 self.isdebug = 1 928 debug_opts.remove("debug") 929 elif "0" in debug_opts: 930 self.isdebug = 0 931 debug_opts.remove("0") 932 933 for x in range(1, 9): 934 if str(x) in debug_opts: 935 self.isdebug = x 936 debug_opts.remove(str(x)) 937 938 try: 939 if len(debug_opts) == 0: --> 940 args.func(args) 941 elif len(debug_opts) > 1: 942 self.die(9, "Conflicting debug options: %s" % ", ".join(debug_opts)) 943 elif "t" in debug_opts or "trace" in debug_opts: 944 import trace 945 tracer = trace.Trace() 946 tracer.runfunc(args.func, args) 947 elif "p" in debug_opts or "profile" in debug_opts: 948 import hotshot 949 from hotshot import stats 950 prof = hotshot.Profile("hotshot_edi_stats") 951 rv = prof.runcall( lambda: args.func(args) ) 952 prof.close() 953 s = stats.load("hotshot_edi_stats") 954 s.sort_stats("time").print_stats() 955 else: C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\plugins\basics.py in __call__(self=, args=Namespace(arg=[], create=False, func= 89 ipshell = IPShellEmbed(args.arg) ipshell = undefined IPShellEmbed = args.arg = [] 90 ipshell(local_ns=ns) 91 92 93 class HelpControl(BaseControl): 94 """ 95 Defined here since the background loading might be too 96 slow to have all help available 97 """ 98 99 def _configure(self, parser): 100 self.__parser__ = parser # For formatting later 101 parser.set_defaults(func=self.__call__) 102 parser.add_argument( 103 "--all", action="store_true", help="Print help for all topics") 104 parser.add_argument( C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\Shell.pyc in __init__(self=, argv=[], banner='', exit_msg=None, rc_override=None, user_ns=None) 154 self.set_dummy_mode(0) 155 156 # sys.displayhook is a global, we need to save the user's original 157 # Don't rely on __displayhook__, as the user may have changed that. 158 self.sys_displayhook_ori = sys.displayhook 159 160 # save readline completer status 161 try: 162 #print 'Save completer',sys.ipcompleter # dbg 163 self.sys_ipcompleter_ori = sys.ipcompleter 164 except: 165 pass # not nested with IPython 166 167 self.IP = make_IPython(argv,rc_override=rc_override, 168 embedded=True, --> 169 user_ns=user_ns) global code_queueR = undefined global t = undefined global _killt = undefined global gett = undefined global callableRS = undefined global Rj = undefined global worker_ident = undefined global R = undefined global namet = undefined global usageR = undefined global banner2Rk = undefined global kwRj = undefined global sM = undefined global C = undefined global OMERO.server = undefined global rc1 = undefined global bbbc7 = undefined global ice35 = undefined global b309 = undefined global lib = undefined global fallback = undefined global IPython = global Shell.pyR = undefined global c = undefined global s = undefined global input = undefined global singlec = undefined global r = undefined global a = undefined global S = undefined global j = undefined global Sy = undefined global Wn = undefined global f = undefined global k = undefined global SX = undefined global d = undefined global rq = undefined global St = undefined global GHd = undefined global _ = undefined global n = undefined global Compile = undefined global run = undefined global some = undefined global source = undefined global the = undefined global interpreter.Modified = undefined global version = undefined global of = undefined global code.py = undefined global runsource = undefined global to = undefined global handle = undefined global threading = global issues.See = undefined global original = undefined global full = undefined global docstring = undefined global details.s = undefined global Warning = undefined global Timeout = undefined global mainloop = undefined global thread = global exceededs = undefined global switching = undefined global nonthreaded = undefined global mode = undefined global until = undefined global wakes = undefined global up = undefined global again = undefined global N = undefined global Ra = undefined global Rn = undefined global R5 = undefined global compilet = undefined global OverflowErrort = undefined global SyntaxErrorRO = undefined global showsyntaxerrorR = undefined global Rq = undefined global threadt = undefined global get_identR = undefined global runcodet = undefined global threadingt = undefined global EventRm = undefined global putt = undefined global waitRk = undefined global isSet = undefined global sourcet = undefined global filenamet = undefined global symbolt = undefined global codet = undefined global completed_evt = undefined global received_ev = undefined global Shell.pyt = undefined global s2 = undefined global sl = undefined global rk = undefined global I = undefined global x = undefined global D = undefined global q = undefined global Wt = undefined global IJ = undefined global Xd = undefined global y = undefined 170 171 ip = ipapi.IPApi(self.IP) 172 ip.expose_magic("kill_embedded",kill_embedded) 173 174 # copy our own displayhook also 175 self.sys_displayhook_embed = sys.displayhook 176 # and leave the system's display hook clean 177 sys.displayhook = self.sys_displayhook_ori 178 # don't use the ipython crash handler so that user exceptions aren't 179 # trapped 180 sys.excepthook = ultraTB.FormattedTB(color_scheme = self.IP.rc.colors, 181 mode = self.IP.rc.xmode, 182 call_pdb = self.IP.rc.pdb) 183 self.restore_system_completer() 184 C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\ipmaker.pyc in make_IPython(argv=[], user_ns=None, user_global_ns=None, debug=1, rc_override=None, shell_class=, embedded=True, **kw={}) 506 # tweaks. Basically options which affect other options. I guess this 507 # should just be written so that options are fully orthogonal and we 508 # wouldn't worry about this stuff! 509 510 if IP_rc.classic: 511 IP_rc.quick = 1 512 IP_rc.cache_size = 0 513 IP_rc.pprint = 0 514 IP_rc.prompt_in1 = '>>> ' 515 IP_rc.prompt_in2 = '... ' 516 IP_rc.prompt_out = '' 517 IP_rc.separate_in = IP_rc.separate_out = IP_rc.separate_out2 = '0' 518 IP_rc.colors = 'NoColor' 519 IP_rc.xmode = 'Plain' 520 --> 521 IP.pre_config_initialization() 522 # configure readline 523 524 # update exception handlers with rc file status 525 otrap.trap_out() # I don't want these messages ever. 526 IP.magic_xmode(IP_rc.xmode) 527 otrap.release_out() 528 529 # activate logging if requested and not reloading a log 530 if IP_rc.logplay: 531 IP.magic_logstart(IP_rc.logplay + ' append') 532 elif IP_rc.logfile: 533 IP.magic_logstart(IP_rc.logfile) 534 elif IP_rc.log: 535 IP.magic_logstart() 536 C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\iplib.pyc in pre_config_initialization(self=) 820 self.user_ns, # globals 821 # Skip our own frame in searching for locals: 822 sys._getframe(depth+1).f_locals # locals 823 )) 824 825 def pre_config_initialization(self): 826 """Pre-configuration init method 827 828 This is called before the configuration files are processed to 829 prepare the services the config files might need. 830 831 self.rc already has reasonable default values at this point. 832 """ 833 rc = self.rc 834 try: --> 835 self.db = pickleshare.PickleShareDB(rc.ipythondir + "/db") global Optional = undefined global inputs = undefined 836 except exceptions.UnicodeDecodeError: 837 print "Your ipythondir can't be decoded to unicode!" 838 print "Please set HOME environment variable to something that" 839 print r"only has ASCII characters, e.g. c:\home" 840 print "Now it is",rc.ipythondir 841 sys.exit() 842 self.shadowhist = IPython.history.ShadowHist(self.db) 843 844 def post_config_initialization(self): 845 """Post configuration init method 846 847 This is called after the configuration files have been processed to 848 'finalize' the initialization.""" 849 850 rc = self.rc C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\Extensions\pickleshare.pyc in __init__(self=PickleShareDB('C:\Users\vagrant\_ipython\db'), root=u'C:\\Users\\vagrant\\_ipython/db') 38 import cPickle as pickle 39 import UserDict 40 import warnings 41 import glob 42 43 def gethashfile(key): 44 return ("%02x" % abs(hash(key) % 256))[-2:] 45 46 _sentinel = object() 47 48 class PickleShareDB(UserDict.DictMixin): 49 """ The main 'connection' object for PickleShare database """ 50 def __init__(self,root): 51 """ Return a db object that will manage the specied directory""" 52 self.root = Path(root).expanduser().abspath() ---> 53 if not self.root.isdir(): 54 self.root.makedirs() 55 # cache has { 'key' : (obj, orig_mod_time) } 56 self.cache = {} 57 58 59 def __getitem__(self,key): 60 """ db['key'] reading """ 61 fil = self.root / key 62 try: 63 mtime = (fil.stat()[stat.ST_MTIME]) 64 except OSError: 65 raise KeyError(key) 66 67 if fil in self.cache and mtime == self.cache[fil][1]: 68 return self.cache[fil][0] TypeError: _isdir() takes exactly 1 argument (0 given) ********************************************************************** Oops, IPython crashed. We do our best to make it stable, but... A crash report was automatically generated with the following information: - A verbatim copy of the crash traceback. - A copy of your input history during this session. - Data on your current IPython configuration. It was left in the file named: 'C:\Users\vagrant\_ipython\IPython_crash_report.txt' If you can email this file to the developers, the information in it will help them in understanding and correcting the problem. You can mail it to: Fernando Perez at fperez.net@gmail.com with the subject 'IPython Crash Report'. If you want to do it now, the following command will work (under Unix): mail -s 'IPython Crash Report' fperez.net@gmail.com < C:\Users\vagrant\_ipython\IPython_crash_report.txt To ensure accurate tracking of this issue, please file a report about it at: https://bugs.launchpad.net/ipython/+filebug Error in sys.excepthook: Traceback (most recent call last): File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\CrashHandler.py", line 157, in __call__ report.write(self.make_report(traceback)) File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\CrashHandler.py", line 215, in make_report rpt_add('BZR revision : %s \n\n' % Release.revision) AttributeError: 'module' object has no attribute 'revision' Original exception was: Traceback (most recent call last): File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\bin\\omero", line 125, in rv = omero.cli.argv() File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.py", line 1242, in argv cli.invoke(args[1:]) File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.py", line 791, in invoke stop = self.onecmd(line, previous_args) File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.py", line 860, in onecmd self.execute(line, previous_args) File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.py", line 940, in execute args.func(args) File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\plugins\basics.py", line 89, in __call__ ipshell = IPShellEmbed(args.arg) File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\Shell.py", line 169, in __init__ user_ns=user_ns) File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\ipmaker.py", line 521, in make_IPython IP.pre_config_initialization() File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\iplib.py", line 835, in pre_config_initialization self.db = pickleshare.PickleShareDB(rc.ipythondir + "/db") File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\Extensions\pickleshare.py", line 53, in __init__ if not self.root.isdir(): TypeError: _isdir() takes exactly 1 argument (0 given)