On 27.08.2014 [13:36:20 -0700], Nishanth Aravamudan wrote:
The commit not only re-ordered the imports, but also changed how the
cobbler are performed.
This results in my test rig, when I try to navigate to a /cblr/svc/op
URL:
mod_wsgi (pid=23529): Exception occurred processing WSGI script
'/var/www/cobbler/svc/services.py'.
Traceback (most recent call last):
File "/var/www/cobbler/svc/services.py", line 41, in application
from cobbler.services import CobblerSvc
File "/usr/lib/python2.7/site-packages/cobbler/services.py", line 28, in
<module>
import config
File "/usr/lib/python2.7/site-packages/cobbler/config.py", line 47, in
<module>
import serializer
File "/usr/lib/python2.7/site-packages/cobbler/serializer.py", line 30, in
<module>
import api as cobbler_api
File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 30, in
<module>
from cobbler import config
ImportError: cannot import name config
I guess this is actually because of a import-loop? services.py already
imported config, and we are doing it again in api?
Thanks,
Nish