Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplementedError: Decoding is not yet implemented on <class 'puresnmp.x690.types.BitString'> #83

Open
exhuma opened this issue Jun 23, 2020 · 0 comments

Comments

@exhuma
Copy link
Owner

exhuma commented Jun 23, 2020

This issue was reported in #81

DEBUG:puresnmp.transport:Sending packet to 10.1.5.20:161 (attempt 1/3)
30 3b 02 01 01 04 10 46  61 6c 6c 73 6e 65 74 57   0;.....FallsnetW
69 72 65 6c 65 73 73 a5  24 02 04 5e f1 24 58 02   ireless.$..^.$X.
01 00 02 01 28 30 16 30  14 06 10 2b 06 01 04 01   ....(0.0...+....
f5 0c 01 01 0b 01 01 03  81 e6 60 05 00            ..........`..
DEBUG:puresnmp.transport:Received packet:
30 82 06 6b 02 01 01 04  10 46 61 6c 6c 73 6e 65   0..k.....Fallsne
74 57 69 72 65 6c 65 73  73 a2 82 06 52 02 04 5e   tWireless...R..^
f1 24 58 02 01 00 02 01  00 30 82 06 42 30 1a 06   .$X......0..B0..
10 2b 06 01 04 01 f5 0c  01 01 0b 01 01 03 81 e6   .+..............
63 04 06 b8 69 f4 4d eb  fd 30 1a 06 10 2b 06 01   c...i.M..0...+..
04 01 f5 0c 01 01 0b 01  01 03 81 e6 6c 04 06 64   ............l..d
d1 54 4c ca b7 30 1a 06  10 2b 06 01 04 01 f5 0c   .TL..0...+......
01 01 0b 01 01 03 81 e6  71 04 06 64 d1 54 bf 59   ........q..d.T.Y
99 30 1a 06 10 2b 06 01  04 01 f5 0c 01 01 0b 01   .0...+..........
01 03 81 e6 78 04 06 64  d1 54 bd 96 15 30 1a 06   ....x..d.T...0..
10 2b 06 01 04 01 f5 0c  01 01 0b 01 01 03 81 e6   .+..............
7b 04 06 64 d1 54 b8 a9  0b 30 1a 06 10 2b 06 01   {..d.T...0...+..
04 01 f5 0c 01 01 0b 01  01 03 81 e7 03 04 06 64   ...............d
d1 54 07 80 76 30 1a 06  10 2b 06 01 04 01 f5 0c   .T..v0...+......
01 01 0b 01 01 03 81 e7  08 04 06 74 4d 28 ad 0d   ...........tM(..
20 30 1a 06 10 2b 06 01  04 01 f5 0c 01 01 0b 01    0...+..........
01 03 81 e7 09 04 06 b8  69 f4 4d ef ed 30 1a 06   ........i.M..0..
10 2b 06 01 04 01 f5 0c  01 01 0b 01 01 03 81 e7   .+..............
18 04 06 cc 2d e0 49 9b  fd 30 1a 06 10 2b 06 01   ....-.I..0...+..
04 01 f5 0c 01 01 0b 01  01 03 81 e7 1d 04 06 64   ...............d
d1 54 bd 96 08 30 1a 06  10 2b 06 01 04 01 f5 0c   .T...0...+......
01 01 0b 01 01 03 81 e7  23 04 06 64 d1 54 3c b5   ........#..d.T<.
95 30 1a 06 10 2b 06 01  04 01 f5 0c 01 01 0b 01   .0...+..........
01 03 81 e7 27 04 06 74  4d 28 c4 64 e0 30 24 06   ....'..tM(.d.0$.
10 2b 06 01 04 01 f5 0c  01 01 0b 01 01 04 81 df   .+..............
41 04 10 36 2e 34 36 2e  36 20 28 74 65 73 74 69   A..6.46.6 (testi
6e 67 29 30 23 06 10 2b  06 01 04 01 f5 0c 01 01   ng)0#..+........
0b 01 01 04 81 e4 44 04  0f 36 2e 34 35 2e 33 20   ......D..6.45.3 
28 73 74 61 62 6c 65 29  30 21 06 10 2b 06 01 04   (stable)0!..+...
01 f5 0c 01 01 0b 01 01  04 81 e4 45 04 0d 36 2e   ...........E..6.
34 36 20 28 73 74 61 62  6c 65 29 30 23 06 10 2b   46 (stable)0#..+
06 01 04 01 f5 0c 01 01  0b 01 01 04 81 e4 46 04   ..............F.
0f 36 2e 34 32 2e 31 20  28 73 74 61 62 6c 65 29   .6.42.1 (stable)
30 23 06 10 2b 06 01 04  01 f5 0c 01 01 0b 01 01   0#..+...........
04 81 e4 47 04 0f 36 2e  34 32 2e 36 20 28 73 74   ...G..6.42.6 (st
61 62 6c 65 29 30 23 06  10 2b 06 01 04 01 f5 0c   able)0#..+......
01 01 0b 01 01 04 81 e4  49 04 0f 36 2e 34 36 2e   ........I..6.46.
33 20 28 73 74 61 62 6c  65 29 30 23 06 10 2b 06   3 (stable)0#..+.
01 04 01 f5 0c 01 01 0b  01 01 04 81 e4 4a 04 0f   .............J..
36 2e 34 32 2e 36 20 28  73 74 61 62 6c 65 29 30   6.42.6 (stable)0
23 06 10 2b 06 01 04 01  f5 0c 01 01 0b 01 01 04   #..+............
81 e4 4b 04 0f 36 2e 34  35 2e 33 20 28 73 74 61   ..K..6.45.3 (sta
62 6c 65 29 30 23 06 10  2b 06 01 04 01 f5 0c 01   ble)0#..+.......
01 0b 01 01 04 81 e4 4c  04 0f 36 2e 34 32 2e 36   .......L..6.42.6
20 28 73 74 61 62 6c 65  29 30 23 06 10 2b 06 01    (stable)0#..+..
04 01 f5 0c 01 01 0b 01  01 04 81 e4 4d 04 0f 36   ............M..6
2e 34 32 2e 36 20 28 73  74 61 62 6c 65 29 30 82   .42.6 (stable)0.
01 0d 06 10 2b 06 01 04  01 f5 0c 01 01 0b 01 01   ....+...........
04 81 e4 4e 04 81 f8 43  69 73 63 6f 20 49 4f 53   ...N...Cisco IOS
20 53 6f 66 74 77 61 72  65 2c 20 31 38 34 31 20    Software, 1841 
53 6f 66 74 77 61 72 65  20 28 43 31 38 34 31 2d   Software (C1841-
41 44 56 49 50 53 45 52  56 49 43 45 53 4b 39 2d   ADVIPSERVICESK9-
4d 29 2c 20 56 65 72 73  69 6f 6e 20 31 35 2e 31   M), Version 15.1
28 34 29 4d 31 30 2c 20  52 45 4c 45 41 53 45 20   (4)M10, RELEASE 
53 4f 46 54 57 41 52 45  20 28 66 63 32 29 0a 54   SOFTWARE (fc2).T
65 63 68 6e 69 63 61 6c  20 53 75 70 70 6f 72 74   echnical Support
3a 20 68 74 74 70 3a 2f  2f 77 77 77 2e 63 69 73   : http://www.cis
63 6f 2e 63 6f 6d 2f 74  65 63 68 73 75 70 70 6f   co.com/techsuppo
72 74 0a 43 6f 70 79 72  69 67 68 74 20 28 63 29   rt.Copyright (c)
20 31 39 38 36 2d 32 30  31 35 20 62 79 20 43 69    1986-2015 by Ci
73 63 6f 20 53 79 73 74  65 6d 73 2c 20 49 6e 63   sco Systems, Inc
2e 0a 43 6f 6d 70 69 6c  65 64 20 54 75 65 20 32   ..Compiled Tue 2
34 2d 4d 61 72 2d 31 35  20 30 38 3a 33 36 20 62   4-Mar-15 08:36 b
79 20 70 72 6f 64 5f 72  65 6c 5f 74 65 61 30 23   y prod_rel_tea0#
06 10 2b 06 01 04 01 f5  0c 01 01 0b 01 01 04 81   ..+.............
e4 4f 04 0f 36 2e 34 32  2e 31 20 28 73 74 61 62   .O..6.42.1 (stab
6c 65 29 30 23 06 10 2b  06 01 04 01 f5 0c 01 01   le)0#..+........
0b 01 01 04 81 e4 50 04  0f 36 2e 34 32 2e 31 20   ......P..6.42.1 
28 73 74 61 62 6c 65 29  30 23 06 10 2b 06 01 04   (stable)0#..+...
01 f5 0c 01 01 0b 01 01  04 81 e4 51 04 0f 36 2e   ...........Q..6.
33 37 2e 35 20 28 62 75  67 66 69 78 29 30 23 06   37.5 (bugfix)0#.
10 2b 06 01 04 01 f5 0c  01 01 0b 01 01 04 81 e4   .+..............
52 04 0f 36 2e 34 32 2e  31 20 28 73 74 61 62 6c   R..6.42.1 (stabl
65 29 30 23 06 10 2b 06  01 04 01 f5 0c 01 01 0b   e)0#..+.........
01 01 04 81 e4 53 04 0f  36 2e 34 32 2e 36 20 28   .....S..6.42.6 (
73 74 61 62 6c 65 29 30  23 06 10 2b 06 01 04 01   stable)0#..+....
f5 0c 01 01 0b 01 01 04  81 e4 54 04 0f 36 2e 34   ..........T..6.4
32 2e 31 20 28 73 74 61  62 6c 65 29 30 23 06 10   2.1 (stable)0#..
2b 06 01 04 01 f5 0c 01  01 0b 01 01 04 81 e4 55   +..............U
04 0f 36 2e 34 32 2e 31  20 28 73 74 61 62 6c 65   ..6.42.1 (stable
29 30 23 06 10 2b 06 01  04 01 f5 0c 01 01 0b 01   )0#..+..........
01 04 81 e4 56 04 0f 36  2e 34 32 2e 31 20 28 73   ....V..6.42.1 (s
74 61 62 6c 65 29 30 23  06 10 2b 06 01 04 01 f5   table)0#..+.....
0c 01 01 0b 01 01 04 81  e4 57 04 0f 36 2e 34 32   .........W..6.42
2e 37 20 28 73 74 61 62  6c 65 29 30 23 06 10 2b   .7 (stable)0#..+
06 01 04 01 f5 0c 01 01  0b 01 01 04 81 e4 58 04   ..............X.
0f 36 2e 34 33 2e 38 20  28 73 74 61 62 6c 65 29   .6.43.8 (stable)
30 23 06 10 2b 06 01 04  01 f5 0c 01 01 0b 01 01   0#..+...........
04 81 e4 5a 04 0f 36 2e  34 32 2e 37 20 28 73 74   ...Z..6.42.7 (st
61 62 6c 65 29 30 23 06  10 2b 06 01 04 01 f5 0c   able)0#..+......
01 01 0b 01 01 04 81 e4  5b 04 0f 36 2e 34 35 2e   ........[..6.45.
37 20 28 73 74 61 62 6c  65 29 30 23 06 10 2b 06   7 (stable)0#..+.
01 04 01 f5 0c 01 01 0b  01 01 04 81 e4 5c 04 0f   .............\..
36 2e 34 32 2e 37 20 28  73 74 61 62 6c 65 29 30   6.42.7 (stable)0
23 06 10 2b 06 01 04 01  f5 0c 01 01 0b 01 01 04   #..+............
81 e4 5d 04 0f 36 2e 34  32 2e 31 20 28 73 74 61   ..]..6.42.1 (sta
62 6c 65 29 30 21 06 10  2b 06 01 04 01 f5 0c 01   ble)0!..+.......
01 0b 01 01 04 81 e4 5e  04 0d 36 2e 34 36 20 28   .......^..6.46 (
73 74 61 62 6c 65 29 30  21 06 10 2b 06 01 04 01   stable)0!..+....
f5 0c 01 01 0b 01 01 04  81 e4 5f 04 0d 36 2e 34   .........._..6.4
31 20 28 73 74 61 62 6c  65 29 30 23 06 10 2b 06   1 (stable)0#..+.
01 04 01 f5 0c 01 01 0b  01 01 04 81 e4 60 04 0f   .............`..
36 2e 34 31 2e 33 20 28  73 74 61 62 6c 65 29      6.41.3 (stable)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/puresnmp/api/pythonic.py", line 258, in bulkwalk
    for oid, value in result:
  File "/usr/local/lib/python3.7/site-packages/puresnmp/api/pythonic.py", line 186, in multiwalk
    for oid, value in raw_output:
  File "/usr/local/lib/python3.7/site-packages/puresnmp/api/raw.py", line 253, in multiwalk
    ip, community, next_fetches_str, port, timeout)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/api/raw.py", line 482, in fetcher
    port=port, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/api/raw.py", line 432, in bulkget
    Sequence.from_bytes(response)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 169, in from_bytes
    return cls.decode(data)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 382, in decode
    value, data = pop_tlv(data)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 117, in pop_tlv
    value = cls.from_bytes(chunk)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 169, in from_bytes
    return cls.decode(data)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/pdu.py", line 286, in decode
    return super(GetResponse, cls).decode(data)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/pdu.py", line 149, in decode
    pop_tlv(data)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 117, in pop_tlv
    value = cls.from_bytes(chunk)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 169, in from_bytes
    return cls.decode(data)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 382, in decode
    value, data = pop_tlv(data)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 117, in pop_tlv
    value = cls.from_bytes(chunk)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 169, in from_bytes
    return cls.decode(data)
  File "/usr/local/lib/python3.7/site-packages/puresnmp/x690/types.py", line 181, in decode
    'Decoding is not yet implemented on %s' % cls)
NotImplementedError: Decoding is not yet implemented on <class 'puresnmp.x690.types.BitString'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant