Just started playing with 2.0.1 and it seems the _CIDR function is missing from utils.py? Took a look in there, and the _IP function exists but not _CIDR .. Copy and pasting the function out of the 2.0.0 branch fixes it, but I'm gonna assume it's missing for a reason ;-)
Starting cobbler daemon: cannot import name _CIDR Traceback (most recent call last): File "/usr/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 121, in __init__ module_loader.load_modules() File "/usr/lib/python2.4/site-packages/cobbler/module_loader.py", line 64, in load_modules blip = __import__("modules.%s" % ( modname), globals(), locals(), [modname]) File "/usr/lib/python2.4/site-packages/cobbler/modules/cli_network.py", line 31, in ? from utils import _, _IP, _CIDR ImportError: cannot import name _CIDR
Glenn E. Bailey III, Operational Support Services gbailey@terremark.com 972-827-4292
terremark worldwide 222 W Las Colinas Blvd Ste 350E Irving, TX 75039
----- Original Message ----
From: Glenn Bailey gbailey@terremark.com To: cobbler development list cobbler-devel@lists.fedorahosted.org Sent: Tuesday, October 6, 2009 11:40:58 PM Subject: _CIDR function missing in 2.0.1?
Just started playing with 2.0.1 and it seems the _CIDR function is missing from utils.py? Took a look in there, and the _IP function exists but not _CIDR .. Copy and pasting the function out of the 2.0.0 branch fixes it, but I'm gonna assume it's missing for a reason ;-)
commit 430e01e89a3c0d6a504888946f73c52120486875 Author: Devan Goodwin dgoodwin@rm-rf.ca Date: Wed Sep 30 15:08:34 2009 -0300
Drop the _CIDR object, unused outside of obsolete subdir.
cobbler/utils.py | 13 ------------- 1 files changed, 0 insertions(+), 13 deletions(-)
Just started playing with 2.0.1 and it seems the _CIDR function is missing from utils.py? Took a look in there, and the _IP function exists but not _CIDR .. Copy and pasting the function out of the 2.0.0 branch fixes it, but I'm gonna assume it's missing for a reason ;-)
Starting cobbler daemon: cannot import name _CIDR Traceback (most recent call last): File "/usr/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 121, in __init__ module_loader.load_modules() File "/usr/lib/python2.4/site-packages/cobbler/module_loader.py", line 64, in load_modules blip = __import__("modules.%s" % ( modname), globals(), locals(), [modname]) File "/usr/lib/python2.4/site- packages/cobbler/modules/cli_network.py", line 31, in ? from utils import _, _IP, _CIDR ImportError: cannot import name _CIDR
The cli_* modules are obsolete and leftovers from a development release install. You need to remove /usr/lib/python2.4/site-packages/cobbler/modules/cli_*
Regards, Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
On 10/07/2009 01:33 AM, Vreman, Peter wrote:
Just started playing with 2.0.1 and it seems the _CIDR function is missing from utils.py? Took a look in there, and the _IP function exists but not _CIDR .. Copy and pasting the function out of the 2.0.0 branch fixes it, but I'm gonna assume it's missing for a reason ;-)
Starting cobbler daemon: cannot import name _CIDR Traceback (most recent call last): File "/usr/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 121, in __init__ module_loader.load_modules() File "/usr/lib/python2.4/site-packages/cobbler/module_loader.py", line 64, in load_modules blip = __import__("modules.%s" % ( modname), globals(), locals(), [modname]) File "/usr/lib/python2.4/site- packages/cobbler/modules/cli_network.py", line 31, in ? from utils import _, _IP, _CIDR ImportError: cannot import name _CIDR
The cli_* modules are obsolete and leftovers from a development release install. You need to remove /usr/lib/python2.4/site-packages/cobbler/modules/cli_*
The RPM should have taken care of that.
I'm guessing maybe he didn't install from the RPM?
RPMs are your friends :)
--Michael
Regards, Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
cobbler-devel mailing list cobbler-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler-devel
The cli_* modules are obsolete and leftovers from a development release install. You need to remove /usr/lib/python2.4/site-packages/cobbler/modules/cli_*
The RPM should have taken care of that.
I'm guessing maybe he didn't install from the RPM?
RPMs are your friends :)
correct, I pulled via git on my dev box .. ;-)
cobbler-devel@lists.fedorahosted.org