Closed mindw closed 7 years ago
I get this on macos after pip install f5-sdk:
>>> import f5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "f5.py", line 1, in <module>
from f5.bigip import bigip
ImportError: No module named bigip
pip show -v f5-sdk
Name: f5-sdk
Version: 2.3.1
Summary: F5 Networks Python SDK
Home-page: https://github.com/F5Networks/f5-common-python
Author: F5 Networks
Author-email: f5_common_python@f5.com
License: Apache License, Version 2.0
Location: /Users/rickard.rosen/Library/Python/2.7/lib/python/site-packages
Requires: f5-icontrol-rest, six, f5-icontrol-rest, six
Metadata-Version: 2.0
Installer: pip
Classifiers:
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Intended Audience :: System Administrators
Entry-points:
[pytest11]
f5sdk_fixtures = f5sdk_plugins.fixtures
Please do not use bigip, as this fixture is deprecated. Correct way should be:
from f5.bigip import ManagementRoot
This is what I'm seeing:
Traceback (most recent call last):
File "f5.py", line 1, in <module>
from f5.bigip import ManagementRoot
File "/Users/rickard.rosen/Documents/github/consul-handler/f5.py", line 1, in <module>
from f5.bigip import ManagementRoot
ImportError: No module named bigip
@mindw @rickardrosen @quasarj is this still an issue?
Yep. Why wont it? there were no new releases.
@mindw can you elaborate more on your particular setup? I want to repro and fix
@mindw I was able to repro this for Python3. I've submitted a fix which appears to fix it in the environments I have. I think it will satisfy your env too.
@rickardrosen @quasarj I believe this issue is now fixed in devel
This is still an issue for me. I used `pip install f5-sdk'. I can see the package which is installed in my site-packages directory.
And I get this: ImportError: No module named bigip when I try to run this: from f5.bigip import ManagementRoot
@jaymmodi open a new issue and provide details of your working environment please.
f5-sdk 2.3.1: