bluenoise wrote:What should I look for to fix this? I have EvoCam providing the image as needed to the folder described.
Did you stop and restart the Indigo Server so that the Python source files would get recompiled?
Regards,
Matt
bluenoise wrote:What should I look for to fix this? I have EvoCam providing the image as needed to the folder described.
support wrote:bluenoise wrote:What should I look for to fix this? I have EvoCam providing the image as needed to the folder described.
Did you stop and restart the Indigo Server so that the Python source files would get recompiled?
Regards,
Matt
def cameras(self):
# Make sure the plug-in template folder path is correct.
# In this example the plug-in folder must be named "sample."
tmpl = self._GetPluginTemplate('sample/templates/cameras.html')
tmpl.requestFromPrism = self._IsRequestFromPrism()
return tmpl.RenderTemplate()
cameras.exposed = True
def cameras(self):
tmpl = self._GetAndLockPluginTemplate('sample/templates/cameras.html')
try:
tmpl.requestFromPrism = self._IsRequestFromPrism()
return tmpl.RenderTemplate()
finally:
tmpl.ReleaseLock();
cameras.exposed = True
from cherrypy import _cputil
#filter $indigoCheetahFilter
WebServer undefined page requested "http://<myserverwebaddress>:8176/sample/cameras" from 75.0.188.198
/Library/Application\ Support/Perceptive\ Automation/Indigo\ 2/IndigoWebServer/devhelpers/indigowebstart
support wrote:Start the IndigoWebServer using the Terminal:
- Code: Select all
/Library/Application\ Support/Perceptive\ Automation/Indigo\ 2/IndigoWebServer/devhelpers/indigowebstart
Copy/paste the results seen in the Terminal into a forum post for me.
Note that indigowebstart command always starts the web server on the default port (8176). You can edit that shell command to use a different port number for starting it if need be.
Regards,
Matt
Mac-Mini:~ MBF$ /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2/IndigoWebServer/devhelpers/indigowebstart
/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/devhelpers/indigowebstart: line 38: indigowebstop: command not found
Starting IndigoWebServer
Mac-Mini:~ MBF$ [05/Oct/2008:08:37:14] INDIGO_LOG
[05/Oct/2008:08:37:14] INDIGO_LOG processing plugin folder /sample
[05/Oct/2008:08:37:14] INDIGO_LOG - filename: reqhandler.py
[05/Oct/2008:08:37:14] INDIGO_LOG Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/indigopy/indigoplugin.py", line 121, in LoadWebPlugins
plugin_parent = __import__(modulenameForImport, globals(), locals(), [filename_base])
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/plugins/sample/reqhandler.py", line 23, in <module>
from cherrypy import _cputil
ImportError: cannot import name _cputil
[05/Oct/2008:08:37:14] INDIGO_LOG - enabling static file access to path /sample/images on mounted app _root_
[05/Oct/2008:08:37:14] INDIGO_LOG - enabling static file access to path /sample/static on mounted app _root_
[05/Oct/2008:08:37:14] INDIGO_LOG
[05/Oct/2008:08:37:14] INDIGO_LOG processing plugin folder /sample/images
[05/Oct/2008:08:37:14] INDIGO_LOG
[05/Oct/2008:08:37:14] INDIGO_LOG processing plugin folder /sample/reqhandler.app
[05/Oct/2008:08:37:14] INDIGO_LOG
[05/Oct/2008:08:37:14] INDIGO_LOG processing plugin folder /sample/reqhandler.app/Contents
[05/Oct/2008:08:37:14] INDIGO_LOG
[05/Oct/2008:08:37:14] INDIGO_LOG processing plugin folder /sample/reqhandler.app/Contents/MacOS
[05/Oct/2008:08:37:14] INDIGO_LOG
[05/Oct/2008:08:37:14] INDIGO_LOG processing plugin folder /sample/reqhandler.app/Contents/Resources
[05/Oct/2008:08:37:14] INDIGO_LOG - filename: __argvemulator_reqhandler.py
[05/Oct/2008:08:37:14] INDIGO_LOG Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/indigopy/indigoplugin.py", line 121, in LoadWebPlugins
plugin_parent = __import__(modulenameForImport, globals(), locals(), [filename_base])
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/plugins/sample/reqhandler.py", line 23, in <module>
from cherrypy import _cputil
ImportError: cannot import name _cputil
[05/Oct/2008:08:37:14] INDIGO_LOG - filename: reqhandler.py
[05/Oct/2008:08:37:14] INDIGO_LOG Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/indigopy/indigoplugin.py", line 121, in LoadWebPlugins
plugin_parent = __import__(modulenameForImport, globals(), locals(), [filename_base])
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/plugins/sample/reqhandler.py", line 23, in <module>
from cherrypy import _cputil
ImportError: cannot import name _cputil
[05/Oct/2008:08:37:14] INDIGO_LOG
[05/Oct/2008:08:37:14] INDIGO_LOG processing plugin folder /sample/static
[05/Oct/2008:08:37:14] INDIGO_LOG
[05/Oct/2008:08:37:14] INDIGO_LOG processing plugin folder /sample/templates
[05/Oct/2008:08:37:14] ENGINE Bus STARTING
CherryPy Checker:
'/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/indigoflash' (root + dir) is not an existing filesystem path.
section: [/indigoflash]
root: '/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer'
dir: 'indigoflash'
[05/Oct/2008:08:37:15] INDIGO_LOG connecting to Indigo server
[05/Oct/2008:08:37:15] INDIGO_LOG Authen: user name green
[05/Oct/2008:08:37:15] INDIGO_LOG Authen: indigoHash xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[05/Oct/2008:08:37:15] INDIGO_LOG Authen: webHash xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[05/Oct/2008:08:37:15] INDIGO_LOG started on port 8176 -- digest authentication enabled
[05/Oct/2008:08:37:15] INDIGO_LOG enabled browser access to plugin path "plugins/sample/images"
[05/Oct/2008:08:37:15] INDIGO_LOG enabled browser access to plugin path "plugins/sample/static"
[05/Oct/2008:08:37:15] ENGINE Started monitor thread '_TimeoutMonitor'.
[05/Oct/2008:08:37:20] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy>>
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/_cpserver.py", line 89, in start
ServerAdapter.start(self)
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/servers.py", line 53, in start
wait_for_free_port(*self.bind_addr)
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/servers.py", line 209, in wait_for_free_port
raise IOError("Port %r not free on %r" % (port, host))
IOError: Port 8176 not free on '0.0.0.0'
[05/Oct/2008:08:37:20] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/wspbus.py", line 180, in start
self.publish('start')
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/_cpserver.py", line 89, in start
ServerAdapter.start(self)
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/servers.py", line 53, in start
wait_for_free_port(*self.bind_addr)
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/servers.py", line 209, in wait_for_free_port
raise IOError("Port %r not free on %r" % (port, host))
IOError: Port 8176 not free on '0.0.0.0'
[05/Oct/2008:08:37:20] ENGINE Bus STOPPING
[05/Oct/2008:08:37:20] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8176)) already shut down
[05/Oct/2008:08:37:20] INDIGO_LOG disconnecting from Indigo server
[05/Oct/2008:08:37:20] ENGINE Stopped thread '_TimeoutMonitor'.
[05/Oct/2008:08:37:20] ENGINE Bus STOPPED
[05/Oct/2008:08:37:20] ENGINE Bus EXITING
[05/Oct/2008:08:37:20] ENGINE Bus EXITED
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/IndigoWebServer.py", line 272, in <module>
cherrypy.engine.start()
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/wspbus.py", line 180, in start
self.publish('start')
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/_cpserver.py", line 89, in start
ServerAdapter.start(self)
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/servers.py", line 53, in start
wait_for_free_port(*self.bind_addr)
File "/Library/Application Support/Perceptive Automation/Indigo 2/IndigoWebServer/cherrypy/process/servers.py", line 209, in wait_for_free_port
raise IOError("Port %r not free on %r" % (port, host))
IOError: Port 8176 not free on '0.0.0.0'
Mac-Mini:~ MBF$
from cherrypy import _cputil
def ShowOnControlPageList():
return True # if True, then above name/description is shown on the Control Page list index
def ShowOnControlPageList():
return False # if True, then above name/description is shown on the Control Page list index
This shouldn't cause any problems, correct?
support wrote:To have it not show up in the Control Page index page, just change this line inside...
Users browsing this forum: No registered users and 2 guests