Ticket #12322: omero-shell.txt

File omero-shell.txt, 22.0 KB (added by spli, 5 years ago)

Windows 7 bin\omero shell

Line 
1---------------------------------------------------------------------------
2TypeError                              Python 2.7.6: c:\Python27\python.exe
3                                                   Mon May 26 07:47:25 2014
4A problem occured executing Python code.  Here is the sequence of function
5calls leading up to the error, with the most recent (innermost) call last.
6
7C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\bin\omero in <module>()
8    110         downloaded a distribution, please provide which link you
9    111         used.
10    112         """ % ie
11    113         print "*"*80
12    114         print """
13    115         Debugging Info:
14    116         --------------
15    117         CWD=%s
16    118         VERSION=%s
17    119         OMERO_HOME=%s
18    120         PYTHONPATH=%s
19    121         """ % (os.getcwd(), sys.version.replace("\n"," "), omero_home, sys.path)
20    122         sys.exit(2)
21    123
22    124     logging.basicConfig(level=logging.WARN)
23--> 125     rv = omero.cli.argv()
24        global rv = undefined
25        global omero.cli.argv = <function argv at 0x0000000003F43278>
26    126     sys.exit(rv)
27    127 except KeyboardInterrupt, ki:
28    128     print "Cancelled"
29    129     sys.exit(1)
30    130
31    131
32    132
33    133
34    134
35    135
36    136
37    137
38    138
39    139
40    140
41
42C:\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'])
43   1227         cli = CLI(prog = original_executable.split("-")[0])
44   1228
45   1229         parser = Parser(add_help = False)
46   1230         #parser.add_argument("-d", "--debug", help="Use 'help debug' for more information", default = SUPPRESS)
47   1231         parser.add_argument("--path", help="Add file or directory to plugin list. Supports globs.", action = "append")
48   1232         ns, args = parser.parse_known_args(args)
49   1233         if getattr(ns, "path"):
50   1234             for p in ns.path:
51   1235                 for g in glob.glob(p):
52   1236                     cli._plugin_paths.append(g)
53   1237
54   1238         # For argparse dispatch, this cannot be done lazily
55   1239         cli.loadplugins()
56   1240
57   1241         if len(args) > 1:
58-> 1242             cli.invoke(args[1:])
59   1243             return cli.rv
60   1244         else:
61   1245             cli.invokeloop()
62   1246             return cli.rv
63   1247     finally:
64   1248         if old_ice_config:
65   1249             os.putenv("ICE_CONFIG", old_ice_config)
66   1250
67   1251 #####################################################
68   1252 #
69   1253 # Specific argument types
70   1254
71   1255 class ExperimenterGroupArg(object):
72   1256
73   1257     def __init__(self, arg):
74
75C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.pyc in invoke(self=<omero.cli.CLI instance>, line=['shell'], strict=False, previous_args=None)
76    776         self._stack = []                    #: List of commands being processed
77    777         self._client = None                 #: Single client for all activities
78    778         self._plugin_paths = [OMEROCLI / "plugins"] #: Paths to be loaded; initially official plugins
79    779         self._pluginsLoaded = CLI.PluginsLoaded()
80    780
81    781     def assertRC(self):
82    782         if self.rv != 0:
83    783             raise NonZeroReturnCode(self.rv, "assert failed")
84    784
85    785     def invoke(self, line, strict = False, previous_args = None):
86    786         """
87    787         Copied from cmd.py
88    788         """
89    789         try:
90    790             line = self.precmd(line)
91--> 791             stop = self.onecmd(line, previous_args)
92    792             stop = self.postcmd(stop, line)
93    793             if strict:
94    794                 self.assertRC()
95    795         finally:
96    796             if len(self._stack) == 0:
97    797                 self.close()
98    798             else:
99    799                 self.dbg("Delaying close for stack: %s" % len(self._stack), level = 2)
100    800
101    801     def invokeloop(self):
102    802         # First we add a few special commands to the loop
103    803         class PWD(BaseControl):
104    804             def __call__(self, args):
105    805                     self.ctx.out(os.getcwd())
106    806         class LS(BaseControl):
107
108C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.pyc in onecmd(self=<omero.cli.CLI instance>, line=['shell'], previous_args=None)
109    845         self.selfintro = ""
110    846
111    847     def onecmd(self, line, previous_args = None):
112    848         """
113    849         Single command logic. Overrides the cmd.Cmd logic
114    850         by calling execute. Also handles various exception
115    851         conditions.
116    852         """
117    853         try:
118    854             # Starting a new command. Reset the return value to 0
119    855             # If err or die are called, set rv non-0 value
120    856             self.rv = 0
121    857             try:
122    858                 self._stack.insert(0, line)
123    859                 self.dbg("Stack+: %s" % len(self._stack), level=2)
124--> 860                 self.execute(line, previous_args)
125    861                 return True
126    862             finally:
127    863                 self._stack.pop(0)
128    864                 self.dbg("Stack-: %s" % len(self._stack), level=2)
129    865         except SystemExit, exc: # Thrown by argparse
130    866             self.dbg("SystemExit raised\n%s" % traceback.format_exc())
131    867             self.rv = exc.code
132    868             return False
133    869         #
134    870         # This was perhaps only needed previously
135    871         # Omitting for the moment with the new
136    872         # argparse refactoring
137    873         #
138    874         #except AttributeError, ae:
139    875         #    self.err("Possible error in plugin:")
140
141C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.pyc in execute(self=<omero.cli.CLI instance>, line=['shell'], previous_args=None)
142    925         old_debug = self.isdebug
143    926         if "debug" in debug_opts:
144    927             self.isdebug = 1
145    928             debug_opts.remove("debug")
146    929         elif "0" in debug_opts:
147    930             self.isdebug = 0
148    931             debug_opts.remove("0")
149    932
150    933         for x in range(1, 9):
151    934             if str(x) in debug_opts:
152    935                 self.isdebug = x
153    936                 debug_opts.remove(str(x))
154    937
155    938         try:
156    939             if len(debug_opts) == 0:
157--> 940                 args.func(args)
158    941             elif len(debug_opts) > 1:
159    942                 self.die(9, "Conflicting debug options: %s" % ", ".join(debug_opts))
160    943             elif "t" in debug_opts or "trace" in debug_opts:
161    944                 import trace
162    945                 tracer = trace.Trace()
163    946                 tracer.runfunc(args.func, args)
164    947             elif "p" in debug_opts or "profile" in debug_opts:
165    948                 import hotshot
166    949                 from hotshot import stats
167    950                 prof = hotshot.Profile("hotshot_edi_stats")
168    951                 rv = prof.runcall( lambda: args.func(args) )
169    952                 prof.close()
170    953                 s = stats.load("hotshot_edi_stats")
171    954                 s.sort_stats("time").print_stats()
172    955             else:
173
174C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\plugins\basics.py in __call__(self=<ShellControl object>, args=Namespace(arg=[], create=False, func=<bound meth...OMERO.server', server=None, sudo=None, user=None))
175     74         if check.isUpgradeNeeded():
176     75             self.ctx.out("")
177     76
178     77         ns = {}
179     78         if args.login:
180     79             import omero
181     80             client = self.ctx.conn(args)
182     81             ns = {"client": client, "omero": omero}
183     82
184     83         try:
185     84             # IPython 0.11 (see #7112)
186     85             from IPython import embed
187     86             embed(user_ns=ns)
188     87         except ImportError:
189     88             from IPython.Shell import IPShellEmbed
190---> 89             ipshell = IPShellEmbed(args.arg)
191        ipshell = undefined
192        IPShellEmbed = <class IPython.Shell.IPShellEmbed at 0x0000000005FE3888>
193        args.arg = []
194     90             ipshell(local_ns=ns)
195     91
196     92
197     93 class HelpControl(BaseControl):
198     94     """
199     95     Defined here since the background loading might be too
200     96     slow to have all help available
201     97     """
202     98
203     99     def _configure(self, parser):
204    100         self.__parser__ = parser  # For formatting later
205    101         parser.set_defaults(func=self.__call__)
206    102         parser.add_argument(
207    103             "--all", action="store_true", help="Print help for all topics")
208    104         parser.add_argument(
209
210C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\Shell.pyc in __init__(self=<IPython.Shell.IPShellEmbed instance>, argv=[], banner='', exit_msg=None, rc_override=None, user_ns=None)
211    154         self.set_dummy_mode(0)
212    155
213    156         # sys.displayhook is a global, we need to save the user's original
214    157         # Don't rely on __displayhook__, as the user may have changed that.
215    158         self.sys_displayhook_ori = sys.displayhook
216    159
217    160         # save readline completer status
218    161         try:
219    162             #print 'Save completer',sys.ipcompleter  # dbg
220    163             self.sys_ipcompleter_ori = sys.ipcompleter
221    164         except:
222    165             pass # not nested with IPython
223    166         
224    167         self.IP = make_IPython(argv,rc_override=rc_override,
225    168                                embedded=True,
226--> 169                                user_ns=user_ns)
227        global code_queueR = undefined
228        global t = undefined
229        global _killt = undefined
230        global gett = undefined
231        global callableRS = undefined
232        global Rj = undefined
233        global worker_ident = undefined
234        global R = undefined
235        global namet = undefined
236        global usageR = undefined
237        global banner2Rk = undefined
238        global kwRj = undefined
239        global sM = undefined
240        global C = undefined
241        global OMERO.server = undefined
242        global rc1 = undefined
243        global bbbc7 = undefined
244        global ice35 = undefined
245        global b309 = undefined
246        global lib = undefined
247        global fallback = undefined
248        global IPython = <module 'IPython' from 'C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\__init__.pyc'>
249        global Shell.pyR = undefined
250        global c = undefined
251        global s = undefined
252        global input = undefined
253        global singlec = undefined
254        global r = undefined
255        global a = undefined
256        global S = undefined
257        global j = undefined
258        global Sy = undefined
259        global Wn = undefined
260        global f = undefined
261        global k = undefined
262        global SX = undefined
263        global d = undefined
264        global rq = undefined
265        global St = undefined
266        global GHd = undefined
267        global _ = undefined
268        global n = undefined
269        global Compile = undefined
270        global run = undefined
271        global some = undefined
272        global source = undefined
273        global the = undefined
274        global interpreter.Modified = undefined
275        global version = undefined
276        global of = undefined
277        global code.py = undefined
278        global runsource = undefined
279        global to = undefined
280        global handle = undefined
281        global threading = <module 'threading' from 'c:\Python27\lib\threading.pyc'>
282        global issues.See = undefined
283        global original = undefined
284        global full = undefined
285        global docstring = undefined
286        global details.s = undefined
287        global Warning = undefined
288        global Timeout = undefined
289        global mainloop = undefined
290        global thread = <module 'thread' (built-in)>
291        global exceededs = undefined
292        global switching = undefined
293        global nonthreaded = undefined
294        global mode = undefined
295        global until = undefined
296        global wakes = undefined
297        global up = undefined
298        global again = undefined
299        global N = undefined
300        global Ra = undefined
301        global Rn = undefined
302        global R5 = undefined
303        global compilet = undefined
304        global OverflowErrort = undefined
305        global SyntaxErrorRO = undefined
306        global showsyntaxerrorR = undefined
307        global Rq = undefined
308        global threadt = undefined
309        global get_identR = undefined
310        global runcodet = undefined
311        global threadingt = undefined
312        global EventRm = undefined
313        global putt = undefined
314        global waitRk = undefined
315        global isSet = undefined
316        global sourcet = undefined
317        global filenamet = undefined
318        global symbolt = undefined
319        global codet = undefined
320        global completed_evt = undefined
321        global received_ev = undefined
322        global Shell.pyt = undefined
323        global s2 = undefined
324        global sl = undefined
325        global rk = undefined
326        global I = undefined
327        global x = undefined
328        global D = undefined
329        global q = undefined
330        global Wt = undefined
331        global IJ = undefined
332        global Xd = undefined
333        global y = undefined
334    170
335    171         ip = ipapi.IPApi(self.IP)
336    172         ip.expose_magic("kill_embedded",kill_embedded)
337    173
338    174         # copy our own displayhook also
339    175         self.sys_displayhook_embed = sys.displayhook
340    176         # and leave the system's display hook clean
341    177         sys.displayhook = self.sys_displayhook_ori
342    178         # don't use the ipython crash handler so that user exceptions aren't
343    179         # trapped
344    180         sys.excepthook = ultraTB.FormattedTB(color_scheme = self.IP.rc.colors,
345    181                                              mode = self.IP.rc.xmode,
346    182                                              call_pdb = self.IP.rc.pdb)
347    183         self.restore_system_completer()
348    184
349
350C:\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=<class 'IPython.iplib.InteractiveShell'>, embedded=True, **kw={})
351    506     # tweaks. Basically options which affect other options. I guess this
352    507     # should just be written so that options are fully orthogonal and we
353    508     # wouldn't worry about this stuff!
354    509
355    510     if IP_rc.classic:
356    511         IP_rc.quick = 1
357    512         IP_rc.cache_size = 0
358    513         IP_rc.pprint = 0
359    514         IP_rc.prompt_in1 = '>>> '
360    515         IP_rc.prompt_in2 = '... '
361    516         IP_rc.prompt_out = ''
362    517         IP_rc.separate_in = IP_rc.separate_out = IP_rc.separate_out2 = '0'
363    518         IP_rc.colors = 'NoColor'
364    519         IP_rc.xmode = 'Plain'
365    520
366--> 521     IP.pre_config_initialization()
367    522     # configure readline
368    523
369    524     # update exception handlers with rc file status
370    525     otrap.trap_out()  # I don't want these messages ever.
371    526     IP.magic_xmode(IP_rc.xmode)
372    527     otrap.release_out()
373    528
374    529     # activate logging if requested and not reloading a log
375    530     if IP_rc.logplay:
376    531         IP.magic_logstart(IP_rc.logplay + ' append')
377    532     elif  IP_rc.logfile:
378    533         IP.magic_logstart(IP_rc.logfile)
379    534     elif IP_rc.log:
380    535         IP.magic_logstart()
381    536
382
383C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\iplib.pyc in pre_config_initialization(self=<IPython.iplib.InteractiveShell object>)
384    820                           self.user_ns,  # globals
385    821                           # Skip our own frame in searching for locals:
386    822                           sys._getframe(depth+1).f_locals # locals
387    823                           ))
388    824
389    825     def pre_config_initialization(self):
390    826         """Pre-configuration init method
391    827
392    828         This is called before the configuration files are processed to
393    829         prepare the services the config files might need.
394    830         
395    831         self.rc already has reasonable default values at this point.
396    832         """
397    833         rc = self.rc
398    834         try:
399--> 835             self.db = pickleshare.PickleShareDB(rc.ipythondir + "/db")
400        global Optional = undefined
401        global inputs = undefined
402    836         except exceptions.UnicodeDecodeError:
403    837             print "Your ipythondir can't be decoded to unicode!"
404    838             print "Please set HOME environment variable to something that"
405    839             print r"only has ASCII characters, e.g. c:\home"
406    840             print "Now it is",rc.ipythondir
407    841             sys.exit()
408    842         self.shadowhist = IPython.history.ShadowHist(self.db)
409    843
410    844     def post_config_initialization(self):
411    845         """Post configuration init method
412    846
413    847         This is called after the configuration files have been processed to
414    848         'finalize' the initialization."""
415    849
416    850         rc = self.rc
417
418C:\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')
419     38 import cPickle as pickle
420     39 import UserDict
421     40 import warnings
422     41 import glob
423     42
424     43 def gethashfile(key):
425     44     return ("%02x" % abs(hash(key) % 256))[-2:]
426     45
427     46 _sentinel = object()
428     47
429     48 class PickleShareDB(UserDict.DictMixin):
430     49     """ The main 'connection' object for PickleShare database """
431     50     def __init__(self,root):
432     51         """ Return a db object that will manage the specied directory"""
433     52         self.root = Path(root).expanduser().abspath()
434---> 53         if not self.root.isdir():
435     54             self.root.makedirs()
436     55         # cache has { 'key' : (obj, orig_mod_time) }
437     56         self.cache = {}
438     57         
439     58
440     59     def __getitem__(self,key):
441     60         """ db['key'] reading """
442     61         fil = self.root / key
443     62         try:
444     63             mtime = (fil.stat()[stat.ST_MTIME])
445     64         except OSError:
446     65             raise KeyError(key)
447     66
448     67         if fil in self.cache and mtime == self.cache[fil][1]:
449     68             return self.cache[fil][0]
450
451TypeError: _isdir() takes exactly 1 argument (0 given)
452
453**********************************************************************
454
455Oops, IPython crashed. We do our best to make it stable, but...
456
457A crash report was automatically generated with the following information:
458  - A verbatim copy of the crash traceback.
459  - A copy of your input history during this session.
460  - Data on your current IPython configuration.
461
462It was left in the file named:
463        'C:\Users\vagrant\_ipython\IPython_crash_report.txt'
464If you can email this file to the developers, the information in it will help
465them in understanding and correcting the problem.
466
467You can mail it to: Fernando Perez at fperez.net@gmail.com
468with the subject 'IPython Crash Report'.
469
470If you want to do it now, the following command will work (under Unix):
471mail -s 'IPython Crash Report' fperez.net@gmail.com < C:\Users\vagrant\_ipython\IPython_crash_report.txt
472
473To ensure accurate tracking of this issue, please file a report about it at:
474https://bugs.launchpad.net/ipython/+filebug
475
476Error in sys.excepthook:
477Traceback (most recent call last):
478  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\CrashHandler.py", line 157, in __call__
479    report.write(self.make_report(traceback))
480  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\CrashHandler.py", line 215, in make_report
481    rpt_add('BZR revision   : %s \n\n' % Release.revision)
482AttributeError: 'module' object has no attribute 'revision'
483
484Original exception was:
485Traceback (most recent call last):
486  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\bin\\omero", line 125, in <module>
487    rv = omero.cli.argv()
488  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.py", line 1242, in argv
489    cli.invoke(args[1:])
490  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.py", line 791, in invoke
491    stop = self.onecmd(line, previous_args)
492  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.py", line 860, in onecmd
493    self.execute(line, previous_args)
494  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\cli.py", line 940, in execute
495    args.func(args)
496  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\python\omero\plugins\basics.py", line 89, in __call__
497    ipshell = IPShellEmbed(args.arg)
498  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\Shell.py", line 169, in __init__
499    user_ns=user_ns)
500  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\ipmaker.py", line 521, in make_IPython
501    IP.pre_config_initialization()
502  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\iplib.py", line 835, in pre_config_initialization
503    self.db = pickleshare.PickleShareDB(rc.ipythondir + "/db")
504  File "C:\OMERO.server-5.0.2-rc1-73-71bbbc7-ice35-b309\lib\fallback\IPython\Extensions\pickleshare.py", line 53, in __init__
505    if not self.root.isdir():
506TypeError: _isdir() takes exactly 1 argument (0 given)

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.70655 sec.)

We're Hiring!