Expose your service via multiple webservice protocols with ease.

Ladon not working on Windows

Reported by jsgaarde on 2011-07-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ladon
High
Unassigned

Bug Description

Starting a Ladon server on Windows fails with the following exception:

C:\ladontest>c:\Python27\python.exe c:\Python27\Scripts\ladon2.7ctl serve testservice
Options: {'verbose': False, 'port': None}
Modules: testservice
Traceback (most recent call last):
  File "c:\Python27\Scripts\ladon2.7ctl", line 5, in <module>
    pkg_resources.run_script('ladon==0.5.1', 'ladon2.7ctl')
  File "c:\Python27\lib\site-packages\pkg_resources.py", line 489, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "c:\Python27\lib\site-packages\pkg_resources.py", line 1207, in run_script
    execfile(script_filename, namespace, namespace)
  File "c:\python27\lib\site-packages\ladon-0.5.1-py2.7.egg\EGG-INFO\scripts\ladon2.7ctl", line 91, in <module>
    exec("%s(*args,**kwargs)" % cmd.replace('-','_'))
  File "<string>", line 1, in <module>
  File "c:\python27\lib\site-packages\ladon-0.5.1-py2.7.egg\EGG-INFO\scripts\ladon2.7ctl", line 68, in serve
    from ladon.server.wsgi import LadonWSGIApplication
  File "c:\Python27\lib\site-packages\ladon-0.5.1-py2.7.egg\ladon\server\wsgi.py", line 1, in <module>
    import ladon.server.wsgi_application as wsgi_application
  File "c:\Python27\lib\site-packages\ladon-0.5.1-py2.7.egg\ladon\server\wsgi_application.py", line 3, in <module>
    from ladon.ladonizer.collection import global_service_collection
  File "c:\Python27\lib\site-packages\ladon-0.5.1-py2.7.egg\ladon\ladonizer\__init__.py", line 1, in <module>
    import ladon.ladonizer.decorator
  File "c:\Python27\lib\site-packages\ladon-0.5.1-py2.7.egg\ladon\ladonizer\decorator.py", line 12, in <module>
    from ladon.ladonizer.collection import global_service_collection
  File "c:\Python27\lib\site-packages\ladon-0.5.1-py2.7.egg\ladon\ladonizer\collection.py", line 4, in <module>
    import ladon.interfaces as interfaces
  File "c:\Python27\lib\site-packages\ladon-0.5.1-py2.7.egg\ladon\interfaces\__init__.py", line 72, in <module>
    import ladon.interfaces.jsonwsp
  File "c:\Python27\lib\site-packages\ladon-0.5.1-py2.7.egg\ladon\interfaces\jsonwsp.py", line 6, in <module>
    import json,sys,syslog
ImportError: No module named syslog

/ Jakob

jsgaarde (jakob-simon-gaarde) wrote :

This bug was due to an import of syslog which had been used earlier for debugging the LadonWSGIApplication class. The problem is fixed on trunk and Ladon works on Windows again. The fix will be in the upcomming version 0.6.1.

/ Jakob Simon-Gaarde

Changed in ladon:
status: New → Fix Committed
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers