Forum Discussion
Getting module 'signal' has no attribute 'SIGALRM' error from f5-sdk on Windows
Hi,
I am trying to use python sdk for F5 from here https://github.com/F5Networks/f5-common-python. I am on Windows. I am running Python 3 (tried python 3.3.5 and python 3.5.4). I am getting the following error when I run this (some information masked):
from import ManagementRoot
mgmt = ManagementRoot("...", "...", "...")
File "...\lib\site-packages\f5\bigip__init__.py", line 150, in init self.post_configuration_setup()
File "...\lib\site-packages\f5\bigip__init__.py", line 111, in post_configuration_setup self._get_tmos_version()
File "...\lib\site-packages\f5\bigip__init__.py", line 117, in _get_tmos_version signal.signal(signal.SIGALRM, timeout_handler)
AttributeError: module 'signal' has no attribute 'SIGALRM'
Pip shows it installed version 3.0.8 of f5-sdk.
How can I run this from python?
Thanks.
Looks like the issue is getting fixed in version 3.0.9. From https://github.com/F5Networks/f5-common-python/issues/1362
https://github.com/F5Networks/f5-common-python/issues/1349
- Joel_BretonNimbostratus
Hi Nasim,
I had the same issue with the F5-SDK version 3.0.8.
I fixed the issue by uninstalling the latest version and installing a known working version.
pip uninstall f5-sdk
Install older version of the SDK
pip install -Iv f5-sdk==2.3.3
Hope this helps
- Nasim_67664Nimbostratus
Looks like the issue is getting fixed in version 3.0.9. From https://github.com/F5Networks/f5-common-python/issues/1362
https://github.com/F5Networks/f5-common-python/issues/1349
Recent Discussions
Related Content
* 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