ally-py server not working
  • i am trying to install ally-py to create a simple app , i cloned it from github to my windows 7 machine , then i run the "build.bat" and after that i tried to run the ally-py server through the command line using ">>python application.py" , but when i did this , the server not run and the following errors appears :

    C:\Ally-Py-master\distribution>python application.py
    --------------------------------------------------------------------------------
    ----------------------------------------------------------------------
    A setup or configuration error occurred while deploying, try to rebuild the appl
    ication properties by running the the application with "-dump" option
    Traceback (most recent call last):
      File "build\bdist.win32\egg\ally\container\_impl\_support.py", line 99, in fol
    lowWiring
        try: setattr(value, wentity.name, entityFor(wentity.type, wentity.name))
      File "build\bdist.win32\egg\ally\container\support.py", line 324, in entityFor

        raise SetupError('There is no entity setup function having a return type of
    class or subclass %s' % clazz)
    ally.container.error.SetupError: There is no entity setup function having a retu
    rn type of class or subclass <class 'acl.core.impl.processor.resource_node_assoc
    iate.StructureAssociate'>

    During handling of the above exception, another exception occurred:

    ...... 
  • 6 Comments sorted by
  • Traceback (most recent call last):
      File "build\bdist.win32\egg\ally\container\_impl\_support.py", line 99, in fol
    lowWiring
        try: setattr(value, wentity.name, entityFor(wentity.type, wentity.name))
      File "build\bdist.win32\egg\ally\container\support.py", line 347, in entityFor

        try: return assembly.processForName(entities[0])
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 324, in __cal
    l__
        for listener, _auto in self._listenersBefore: listener()
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 213, in __cal
    l__
        for listener, _auto in self._listenersAfter: listener()
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 211, in __cal
    l__
        ret = self.call()
      File "build\bdist.win32\egg\__plugin__\captcha\patch_ally_core.py", line 34, i
    n updateAssemblyCaptchaGatewaysForResources
        assemblyCaptchaGateways().add(iterateResourcePermissions(), gatewaysFromPerm
    issions())
      File "build\bdist.win32\egg\ally\container\_impl\_setup.py", line 122, in __ca
    ll__
        return Assembly.process(self.name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 90, in pr
    ocess
        return ass.processForName(name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 326, in __cal
    l__
        if followUp: followUp()
      File "build\bdist.win32\egg\ally\container\_impl\_support.py", line 101, in fo
    llowWiring
        (wentity.name, locationStack(value.__class__)))
    ally.container.error.SetupError: Cannot solve wiring 'structureAssociate' at:
      File "C:\Ally-Py-master\distribution\plugins\support_acl-1.0.dev-py3.2.egg\acl
    \core\impl\processor\resource_node_associate.py", line 290


  • During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "build\bdist.win32\egg\__deploy__\ally\deploy.py", line 71, in deploy
        context.processStart()
      File "build\bdist.win32\egg\ally\container\context.py", line 96, in processSta
    rt
        for call in calls: assembly.processForName(call.name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 211, in __cal
    l__
        ret = self.call()
      File "build\bdist.win32\egg\__setup__\ally_plugin\deploy_plugin.py", line 91,
    in deploy
        try: context.processStart()
      File "build\bdist.win32\egg\ally\container\context.py", line 96, in processSta
    rt
        for call in calls: assembly.processForName(call.name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 211, in __cal
    l__
        ret = self.call()
      File "build\bdist.win32\egg\ally\container\support.py", line 214, in loadAll
        if name.startswith(prefix) and isinstance(call, CallEntity) and call.isOf(cl
    azz): Assembly.process(name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 90, in pr
    ocess
        return ass.processForName(name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 326, in __cal
    l__
        if followUp: followUp()
      File "build\bdist.win32\egg\ally\container\_impl\_support.py", line 101, in fo
    llowWiring
        (wentity.name, locationStack(value.__class__)))
    ally.container.error.SetupError: Cannot solve wiring 'assemblyCaptchaGateways' a
    t:
      File "C:\Ally-Py-master\distribution\plugins\captcha-1.0.dev-py3.2.egg\gateway
    \captcha\impl\gateway.py", line 38
    --------------------------------------------------------------------------------
    ----------------------------------------------------------------------
    ================================================== Application started in 18.49
    seconds

    C:\Ally-Py-master\distribution>
  • The properties files are not saved on git repository.
    You have to create the application properties files by running the the application with "-dump" option.
  • i did that before , and i did it again too , see the results below :


    C:\Ally-Py-master\distribution>python application.py -dump
    Failed to fetch a value for configuration '__setup__.ally_gateway.processor.gate
    way_uri': There is no gateway URI provided
    Failed to fetch a value for configuration '__setup__.ally_gateway.processor.gate
    way_authorized_uri': There is no authorized gateway URI provided
    Failed to fetch a value for configuration '__setup__.ally_gateway.processor.exte
    rnal_host': No external host provided
    Failed to fetch a value for configuration '__setup__.ally_gateway_recaptcha.proc
    essor.gateway_captcha_uri': There is no gateway URI provided
    Created "application.properties" configuration file
    Created "plugins.properties" configuration file
    ================================================== Application started in 9.80 s
    econds

    C:\Ally-Py-master\distribution>python application.py
    --------------------------------------------------------------------------------
    ----------------------------------------------------------------------
    A setup or configuration error occurred while deploying, try to rebuild the appl
    ication properties by running the the application with "-dump" option
    Traceback (most recent call last):
      File "build\bdist.win32\egg\ally\container\_impl\_support.py", line 99, in fol
    lowWiring
        try: setattr(value, wentity.name, entityFor(wentity.type, wentity.name))
      File "build\bdist.win32\egg\ally\container\support.py", line 324, in entityFor

        raise SetupError('There is no entity setup function having a return type of
    class or subclass %s' % clazz)
    ally.container.error.SetupError: There is no entity setup function having a retu
    rn type of class or subclass <class 'acl.core.impl.processor.resource_node_assoc
    iate.StructureAssociate'>

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "build\bdist.win32\egg\ally\container\_impl\_support.py", line 99, in fol
    lowWiring
        try: setattr(value, wentity.name, entityFor(wentity.type, wentity.name))
      File "build\bdist.win32\egg\ally\container\support.py", line 347, in entityFor

        try: return assembly.processForName(entities[0])
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 324, in __cal
    l__
        for listener, _auto in self._listenersBefore: listener()
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 213, in __cal
    l__
        for listener, _auto in self._listenersAfter: listener()
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 211, in __cal
    l__
        ret = self.call()
      File "build\bdist.win32\egg\__plugin__\captcha\patch_ally_core.py", line 34, i
    n updateAssemblyCaptchaGatewaysForResources
        assemblyCaptchaGateways().add(iterateResourcePermissions(), gatewaysFromPerm
    issions())
      File "build\bdist.win32\egg\ally\container\_impl\_setup.py", line 122, in __ca
    ll__
        return Assembly.process(self.name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 90, in pr
    ocess
        return ass.processForName(name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 326, in __cal
    l__
        if followUp: followUp()
      File "build\bdist.win32\egg\ally\container\_impl\_support.py", line 101, in fo
    llowWiring
        (wentity.name, locationStack(value.__class__)))
    ally.container.error.SetupError: Cannot solve wiring 'structureAssociate' at:
      File "C:\Ally-Py-master\distribution\plugins\support_acl-1.0.dev-py3.2.egg\acl
    \core\impl\processor\resource_node_associate.py", line 290

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "build\bdist.win32\egg\__deploy__\ally\deploy.py", line 71, in deploy
        context.processStart()

  •   File "build\bdist.win32\egg\ally\container\context.py", line 96, in processSta
    rt
        for call in calls: assembly.processForName(call.name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 211, in __cal
    l__
        ret = self.call()
      File "build\bdist.win32\egg\__setup__\ally_plugin\deploy_plugin.py", line 91,
    in deploy
        try: context.processStart()
      File "build\bdist.win32\egg\ally\container\context.py", line 96, in processSta
    rt
        for call in calls: assembly.processForName(call.name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 211, in __cal
    l__
        ret = self.call()
      File "build\bdist.win32\egg\ally\container\support.py", line 214, in loadAll
        if name.startswith(prefix) and isinstance(call, CallEntity) and call.isOf(cl
    azz): Assembly.process(name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 90, in pr
    ocess
        return ass.processForName(name)
      File "build\bdist.win32\egg\ally\container\_impl\_assembly.py", line 183, in p
    rocessForName
        try: value = self.fetchForName(name)()
      File "build\bdist.win32\egg\ally\container\_impl\_call.py", line 326, in __cal
    l__
        if followUp: followUp()
      File "build\bdist.win32\egg\ally\container\_impl\_support.py", line 101, in fo
    llowWiring
        (wentity.name, locationStack(value.__class__)))
    ally.container.error.SetupError: Cannot solve wiring 'assemblyCaptchaGateways' a
    t:
      File "C:\Ally-Py-master\distribution\plugins\captcha-1.0.dev-py3.2.egg\gateway
    \captcha\impl\gateway.py", line 38
    --------------------------------------------------------------------------------
    ----------------------------------------------------------------------
    ================================================== Application started in 9.99 s
    econds

    C:\Ally-Py-master\distribution>
  • any Idea ?