Forum Discussion
jlintz_44382
Nimbostratus
Sep 08, 2009pyControl issue
Hi I'm running pyControl on python 2.6.2. I'm trying to just instantiate a pyControl object but running into the following...
b = pc.BIGIP(hostname='bigip',username='foo',password='bar',wsdl_files=['GlobalLB.Pool'])
Loading WSDL: GlobalLB.Pool.wsdl
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (28, 0))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/jlintz/ in ()
/usr/local/lib/python2.6/dist-packages/pyControl-1.3.0_beta-py2.5.egg/pycontrol/pyControl.pyc in __init__(self, hostname, port, protocol, username, password, wsdl_files, tracefile)
193 self.url="""%s://%s""" % (protocol,hostname)
194
--> 195 self._buildServices()
196
197
/usr/local/lib/python2.6/dist-packages/pyControl-1.3.0_beta-py2.5.egg/pycontrol/pyControl.pyc in _buildServices(self)
221 w = os.path.basename(w)
222 attribute_name = w.replace('.wsdl','').replace('.','_')
--> 223 setattr(self,attribute_name,Service(name=w, bigip=self, tracefile=self.tracefile))
224
225 else:
/usr/local/lib/python2.6/dist-packages/pyControl-1.3.0_beta-py2.5.egg/pycontrol/pyControl.pyc in __init__(self, name, bigip, cache_dir, bigip_cache_dir_stubs, tracefile)
85 auth = (ZSI.auth.AUTH.httpbasic, self.bigip.username,self.bigip.password),
86 tracefile = self.tracefile,
---> 87 cachedir = self.bigip_cache_dir_stubs,
88 )
89
TypeError: __init__() got an unexpected keyword argument 'auth'
Anyone have any ideas?
- L4L7_53191
Nimbostratus
That's an odd error. It looks to me like you may have a bad egg install, believe it or not. Try blowing the egg away, pulling down a new one and re-installing it.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects