t2mune / mrtparse

MRT format data parser
Apache License 2.0
135 stars 39 forks source link

AttributeError: 'Reader' object has no attribute 'mrt' #34

Open aweher opened 2 months ago

aweher commented 2 months ago

System Desc

$ lsb_release -a
LSB Version:    core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:   jammy

$ python -V
Python 3.10.12
$ pip3 freeze | grep mrt
mrtparse==2.2.0

Error reported

$ mrt2exabgp -P latest-bview.gz 
#!/usr/bin/env python

import sys
import time

msgs = [
Traceback (most recent call last):
  File "/usr/bin/mrt2exabgp", line 498, in <module>
    main()
  File "/usr/bin/mrt2exabgp", line 495, in main
    conv_format(args, flags, d)
  File "/usr/bin/mrt2exabgp", line 192, in conv_format
    m = m.mrt
        ^^^^^
AttributeError: 'Reader' object has no attribute 'mrt'
t2mune commented 2 months ago

It appears that you are using a script for an older version. Could you please download the following script and try again? https://github.com/t2mune/mrtparse/blob/master/examples/mrt2exabgp.py

t2mune commented 2 months ago

Did it work?