Skip to content

Instantly share code, notes, and snippets.

@oostendo
Created May 4, 2012 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oostendo/2594968 to your computer and use it in GitHub Desktop.
Save oostendo/2594968 to your computer and use it in GitHub Desktop.
errors starting seer
uck:SimpleSeer oostendo$ simpleseer default.cfg
INFO:SimpleSeer.broker:Init pubsub broker with ,
Process Process-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/process.py", line 231, in _bootstrap
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "/Users/oostendo/dev/SimpleSeer/scripts/simpleseer", line 41, in pubsub_broker
Session().sub_uri)
File "/Users/oostendo/dev/SimpleSeer/SimpleSeer/broker.py", line 15, in __init__
self.sub.bind(pub_uri)
File "socket.pyx", line 447, in zmq.core.socket.Socket.bind (zmq/core/socket.c:4312)
ZMQError: Invalid argument
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/Users/oostendo/dev/SimpleSeer/SimpleSeer/Web.py", line 50, in data_gen
cm = realtime.ChannelManager(context)
File "/Users/oostendo/dev/SimpleSeer/SimpleSeer/realtime.py", line 24, in __init__
self.pub_sock.connect(self.config.pub_uri)
File "socket.pyx", line 475, in zmq.core.socket.Socket.connect (zmq/core/socket.c:4508)
ZMQError: Invalid argument
<Greenlet at 0x105c5a910: data_gen> failed with ZMQError
Exception in thread Thread-4:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 477, in run
self.__target(*self.__args, **self.__kwargs)
File "/Users/oostendo/dev/SimpleSeer/SimpleSeer/SimpleSeer.py", line 309, in run
self.inspect()
File "/Users/oostendo/dev/SimpleSeer/SimpleSeer/SimpleSeer.py", line 243, in inspect
results = inspection.execute(frame.image)
File "/Users/oostendo/dev/SimpleSeer/SimpleSeer/models/Inspection.py", line 79, in execute
featureset = method_ref(image)
File "/Users/oostendo/dev/SimpleSeer/SimpleSeer/plugins/motion/__init__.py", line 35, in motion
SS = SimpleSeer.SimpleSeer()
TypeError: 'module' object is not callable
+----------------------------------------------------+
SimpleCV [interactive shell] - http://simplecv.org
+----------------------------------------------------+
Commands:
"exit()" or press "Ctrl+ D" to exit the shell
"clear" to clear the shell screen
"tutorial" to begin the SimpleCV interactive tutorial
"cheatsheet" gives a cheatsheet of all the shell functions
"example" gives a list of examples you can run
Usage:
dot complete works to show library
for example: Image().save("/tmp/test.jpg") will dot complete
just by touching TAB after typing Image().
API Documentation:
"help function_name" will give in depth documentation of API
example: help Image
Editor:
"editor" will run the SimpleCV code editor in a browser
example:help Image or ?Image
will give the in-depth information about that class
"?function_name" will give the quick API documentation
example:?Image.save
will give help on the image save function
SimpleCV:1> ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (205, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (105, 0))
---------------------------------------------------------------------------
ZMQError Traceback (most recent call last)
/Users/oostendo/dev/SimpleSeer/scripts/simpleseer in <module>()
5 del require
6 __file__ = '/Users/oostendo/dev/SimpleSeer/scripts/simpleseer'
----> 7 execfile(__file__)
global SimpleSeer.Session = undefined
global Session = <class SimpleSeer.Session.Session at 0x101c10230>
/Users/oostendo/dev/SimpleSeer/scripts/simpleseer in <module>()
63
64 if __name__ == '__main__':
---> 65 main()
global main = <function main at 0x105735848>
66
/Users/oostendo/dev/SimpleSeer/scripts/simpleseer in main()
14 Process(target=web_server).start()
15
---> 16 compute_server()
global compute_server = <function compute_server at 0x105735e60>
17
18 def compute_server():
/Users/oostendo/dev/SimpleSeer/scripts/simpleseer in compute_server()
24 SeerService(seer).start()
25 # SeerKernel must run in main thread
---> 26 SeerKernel(seer).run()
SeerKernel = <class 'SimpleSeer.Shell.SeerKernel'>
seer.run = <bound method SimpleSeer.run of <SimpleSeer.SimpleSeer.SimpleSeer object at 0x105bf4110>>
27
28 def web_server():
/Users/oostendo/dev/SimpleSeer/SimpleSeer/Shell.pyc in run(self=<SimpleSeer.Shell.SeerKernel object at 0x118209110>)
34 app = IPKernelApp.instance()
35 app.connection_file='seer.json'
---> 36 app.initialize()
37 app.shell.user_ns.update(
38 seer=self.seer,
/Library/Python/2.6/site-packages/IPython/zmq/ipkernel.pyc in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object at 0x118203fd0>, argv=None)
/Library/Python/2.6/site-packages/IPython/config/application.pyc in catch_config_error(method=<function initialize at 0x1059aede8>, app=<IPython.zmq.ipkernel.IPKernelApp object at 0x118203fd0>, *args=(None,), **kwargs={})
82 """
83 try:
---> 84 return method(app, *args, **kwargs)
85 except (TraitError, ArgumentError) as e:
86 app.print_description()
/Library/Python/2.6/site-packages/IPython/zmq/ipkernel.pyc in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object at 0x118203fd0>, argv=None)
573 @catch_config_error
574 def initialize(self, argv=None):
--> 575 super(IPKernelApp, self).initialize(argv)
576 self.init_shell()
577 self.init_extensions()
/Library/Python/2.6/site-packages/IPython/zmq/kernelapp.pyc in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object at 0x118203fd0>, argv=None)
/Library/Python/2.6/site-packages/IPython/config/application.pyc in catch_config_error(method=<function initialize at 0x105788848>, app=<IPython.zmq.ipkernel.IPKernelApp object at 0x118203fd0>, *args=(None,), **kwargs={})
82 """
83 try:
---> 84 return method(app, *args, **kwargs)
85 except (TraitError, ArgumentError) as e:
86 app.print_description()
/Library/Python/2.6/site-packages/IPython/zmq/kernelapp.pyc in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object at 0x118203fd0>, argv=None)
283 self.init_session()
284 self.init_poller()
--> 285 self.init_sockets()
286 # writing connection file must be *after* init_sockets
287 self.write_connection_file()
/Library/Python/2.6/site-packages/IPython/zmq/kernelapp.pyc in init_sockets(self=<IPython.zmq.ipkernel.IPKernelApp object at 0x118203fd0>)
207
208 self.shell_socket = context.socket(zmq.ROUTER)
--> 209 self.shell_port = self._bind_socket(self.shell_socket, self.shell_port)
210 self.log.debug("shell ROUTER Channel on port: %i"%self.shell_port)
211
/Library/Python/2.6/site-packages/IPython/zmq/kernelapp.pyc in _bind_socket(self=<IPython.zmq.ipkernel.IPKernelApp object at 0x118203fd0>, s=<zmq.core.socket.Socket object at 0x118215d70>, port=52818)
155 port = s.bind_to_random_port(iface)
156 else:
--> 157 s.bind(iface + ':%i'%port)
158 return port
159
/Library/Python/2.6/site-packages/zmq/core/socket.so in zmq.core.socket.Socket.bind (zmq/core/socket.c:4312)()
ZMQError: Address already in use
SimpleCV:1> quit()Process Process-2:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/process.py", line 231, in _bootstrap
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "/Users/oostendo/dev/SimpleSeer/scripts/simpleseer", line 33, in web_server
web.run_gevent_server()
File "/Users/oostendo/dev/SimpleSeer/SimpleSeer/Web.py", line 59, in run_gevent_server
server.serve_forever()
File "/Library/Python/2.6/site-packages/gevent/baseserver.py", line 190, in serve_forever
self._stopped_event.wait()
File "/Library/Python/2.6/site-packages/gevent/event.py", line 74, in wait
result = get_hub().switch()
File "/Library/Python/2.6/site-packages/gevent/hub.py", line 164, in switch
return greenlet.switch(self)
KeyboardInterrupt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment