when i run a simple code like that :
from jnpr.junos import Devicefrom jnpr.junos.op.routes import RouteTable
dev = Device(host='xxxx', user='demo', password='demo123', gather_facts=False)dev.open()
tbl = RouteTable(dev)tbl.get()#tbl.get('10.13.10.0/23', protocol='static')print tblfor item in tbl:print 'protocol:', item.protocolprint 'age:', item.ageprint 'via:', item.viaprint
it keeps getting this error : (AttributeError: 'Console' object has no attribute '_use_filter') in this file (\jnpr\junos\factory\table.py) as i didnt change anything inside the library.
it also didnt read the yaml file while importing (from jnpr.junos.op.routes import RouteTable)
Junos-eznc version :2.3.1
Jinja2 version :3.0.0a1
The script works fine, I've checked on:
Jinja2 2.10.1junos-eznc 2.2.1
Try deleting some of this packages using "pip uninstall <pkg_name>" and re-install if that resolves. If the YAML wasn't read, it's to do with versioning or you're missing one of the packages above. Please keep us posted with your resolution.
Hope this helps.
If this solves your problem, please mark this post as "Accepted Solution."Kudos are always appreciated :).
After installing your versions :-
the script starts to work ,
but is there a global problem with these versions ?
There's an issue with installation of PyEZ dependencies with 3.8, perhaps because it's too new. You can use Python 3.4 for now, thats working too.