How to ignore warning messages ?

425 views
Skip to first unread message

hamma...@gmail.com

unread,
Oct 4, 2021, 1:46:35 PM10/4/21
to Junos Python EZ
These are the warnings i get when i run a simple pyez script, how do i ignore these ?

/usr/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:39: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
  m.add_string(self.Q_C.public_numbers().encode_point())
/usr/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:96: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
  self.curve, Q_S_bytes
/usr/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:111: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
  hm.add_string(self.Q_C.public_numbers().encode_point())

Nitin Kumar

unread,
Oct 5, 2021, 3:12:34 AM10/5/21
to hamma...@gmail.com, Junos Python EZ

What’s the paramiko version you are using

 

pip list | grep paramiko

 

Thanks

Nitin Kr

 

From: <junos-p...@googlegroups.com> on behalf of "hamma...@gmail.com" <hamma...@gmail.com>
Date: Monday, 4 October 2021 at 11:16 PM
To: Junos Python EZ <junos-p...@googlegroups.com>
Subject: How to ignore warning messages ?

 

[External Email. Be cautious of content]

 

--
You received this message because you are subscribed to the Google Groups "Junos Python EZ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/1252777c-702a-488c-b94f-0628d7392cfan%40googlegroups.com.


Juniper Business Use Only

hamma...@gmail.com

unread,
Oct 18, 2021, 12:17:35 PM10/18/21
to Junos Python EZ
Thanks Nitin, That is the issue, getting it fixed .Appriciate it.
Reply all
Reply to author
Forward
0 new messages