easysnmp ImportError: cannot import name Session - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: easysnmp ImportError: cannot import name Session (/thread-7292.html) |
easysnmp ImportError: cannot import name Session - anna - Jan-03-2018 Hi Package:- easysnmp0.2.5 Error:- ImportError: cannot import name Session Python version: 2.7.5 Python 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from easysnmp import Session please provide workaround to resolve this issue.
RE: easysnmp ImportError: cannot import name Session - buran - Jan-03-2018 your script is named easysnmp.py, thus overshadowing the real easysnmp module, i.e. it try to import Session from your file. Rename your file to something different. RE: easysnmp ImportError: cannot import name Session - anna - Jan-03-2018 Thanks, Buran... its working now.. |