F5Networks / f5-common-python

Python SDK for configuration and monitoring of F5® BIG-IP® devices via the iControl® REST API.
https://f5-sdk.readthedocs.org
Apache License 2.0
262 stars 134 forks source link

importing modules fails with junos-eznc v2.3.0 installed #1544

Closed jmcgill298 closed 4 years ago

jmcgill298 commented 4 years ago

Importing the f5 package works, but trying to install the bigip and submodules raises an ImportError. This is from python3.6.8:

>>> import f5
>>> import f5.bigip
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../lib/python3.6/site-packages/f5/bigip/__init__.py", line 40, in <module>
    from f5.bigip.tm.net import Net
  File ".../lib/python3.6/site-packages/f5/bigip/tm/__init__.py", line 27, in <module>
    from f5.bigip.tm.net import Net
  File ".../lib/python3.6/site-packages/f5/bigip/tm/net/__init__.py", line 31, in <module>
    from f5.bigip.tm.net.arp import Arps
ImportError: cannot import name 'Arps'
(ans28) >pip list | grep f5
f5-icontrol-rest      1.3.13   
f5-sdk                3.0.21  
jmcgill298 commented 4 years ago

issue is with junos-eznc adding to sys.meta_path I raised an issue there, but will let you all decide if you want to leave this issue up as a known issue, or go ahead and close this one. https://github.com/Juniper/py-junos-eznc/issues/973

vnitinv commented 4 years ago

Fixed via Juniper/py-junos-eznc#977