{"action":"created","issue":{"url":"https://api.github.com/repos/fgimian/easysnmp/issues/38","repository_url":"https://api.github.com/repos/fgimian/easysnmp","labels_url":"https://api.github.com/repos/fgimian/easysnmp/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/fgimian/easysnmp/issues/38/comments","events_url":"https://api.github.com/repos/fgimian/easysnmp/issues/38/events","html_url":"https://github.com/fgimian/easysnmp/issues/38","id":134977960,"number":38,"title":"undefined symbol: netsnmp_transport_config_compare -  error","user":{"login":"bijenkins","id":8092180,"avatar_url":"https://avatars.githubusercontent.com/u/8092180?v=3","gravatar_id":"","url":"https://api.github.com/users/bijenkins","html_url":"https://github.com/bijenkins","followers_url":"https://api.github.com/users/bijenkins/followers","following_url":"https://api.github.com/users/bijenkins/following{/other_user}","gists_url":"https://api.github.com/users/bijenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/bijenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bijenkins/subscriptions","organizations_url":"https://api.github.com/users/bijenkins/orgs","repos_url":"https://api.github.com/users/bijenkins/repos","events_url":"https://api.github.com/users/bijenkins/events{/privacy}","received_events_url":"https://api.github.com/users/bijenkins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-19T21:22:57Z","updated_at":"2016-04-07T14:55:59Z","closed_at":"2016-03-09T12:30:21Z","body":"\r\nPython 2.7.10\r\nRHEL 6.7\r\nGCC\r\n\r\nLooks to a issue with the way the interface.c file is compiled to interace.so... Any ideas here?\r\n\r\nfrom CLI:\r\n\r\n```\r\nPython 2.7.10 (default, Jul 21 2015, 10:07:01) \r\n[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> \r\n>>> from easysnmp import Session\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/JKHY/bijenkins/.pyenv/versions/because-the-internet/lib/python2.7/site-packages/easysnmp/__init__.py\", line 1, in <module>\r\n    from .easy import (  # noqa\r\n  File \"/home/JKHY/bijenkins/.pyenv/versions/because-the-internet/lib/python2.7/site-packages/easysnmp/easy.py\", line 3, in <module>\r\n    from .session import Session\r\n  File \"/home/JKHY/bijenkins/.pyenv/versions/because-the-internet/lib/python2.7/site-packages/easysnmp/session.py\", line 8, in <module>\r\n    from . import interface\r\nImportError: /home/JKHY/bijenkins/.pyenv/versions/because-the-internet/lib/python2.7/site-packages/easysnmp/interface.so: undefined symbol: netsnmp_transport_config_compare\r\n>>> \r\n```\r\n\r\nFrom python:\r\n\r\n```\r\n(because-the-internet)[bijenkins@bmograbadev ~]$ pip install easysnmp\r\nCollecting easysnmp\r\nInstalling collected packages: easysnmp\r\nSuccessfully installed easysnmp-0.2.4\r\n(because-the-internet)[bijenkins@bmograbadev ~]$ \r\n(because-the-internet)[bijenkins@bmograbadev ~]$ \r\n(because-the-internet)[bijenkins@bmograbadev ~]$ \r\n(because-the-internet)[bijenkins@bmograbadev ~]$ python easysnmptest.py\r\nTraceback (most recent call last):\r\n  File \"easysnmptest.py\", line 1, in <module>\r\n    from easysnmp import Session\r\n  File \"/home/JKHY/bijenkins/.pyenv/versions/because-the-internet/lib/python2.7/site-packages/easysnmp/__init__.py\", line 1, in <module>\r\n    from .easy import (  # noqa\r\n  File \"/home/JKHY/bijenkins/.pyenv/versions/because-the-internet/lib/python2.7/site-packages/easysnmp/easy.py\", line 3, in <module>\r\n    from .session import Session\r\n  File \"/home/JKHY/bijenkins/.pyenv/versions/because-the-internet/lib/python2.7/site-packages/easysnmp/session.py\", line 8, in <module>\r\n    from . import interface\r\nImportError: /home/JKHY/bijenkins/.pyenv/versions/because-the-internet/lib/python2.7/site-packages/easysnmp/interface.so: undefined symbol: netsnmp_transport_config_compare\r\n```"},"comment":{"url":"https://api.github.com/repos/fgimian/easysnmp/issues/comments/206941074","html_url":"https://github.com/fgimian/easysnmp/issues/38#issuecomment-206941074","issue_url":"https://api.github.com/repos/fgimian/easysnmp/issues/38","id":206941074,"user":{"login":"kamakazikamikaze","id":8862823,"avatar_url":"https://avatars.githubusercontent.com/u/8862823?v=3","gravatar_id":"","url":"https://api.github.com/users/kamakazikamikaze","html_url":"https://github.com/kamakazikamikaze","followers_url":"https://api.github.com/users/kamakazikamikaze/followers","following_url":"https://api.github.com/users/kamakazikamikaze/following{/other_user}","gists_url":"https://api.github.com/users/kamakazikamikaze/gists{/gist_id}","starred_url":"https://api.github.com/users/kamakazikamikaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamakazikamikaze/subscriptions","organizations_url":"https://api.github.com/users/kamakazikamikaze/orgs","repos_url":"https://api.github.com/users/kamakazikamikaze/repos","events_url":"https://api.github.com/users/kamakazikamikaze/events{/privacy}","received_events_url":"https://api.github.com/users/kamakazikamikaze/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T14:55:59Z","updated_at":"2016-04-07T14:55:59Z","body":"I hate to dig up old threads but I'm also having this issue on OS X. Please bear with me, this post is going to be all over the place. I'm not 100% certain but I think `virtualenv` and Python 2.7.10 may be part of the issue. Note that I'm using OS X 10.11.4. I am *not* having this issue in Ubuntu 14.10. \r\n\r\nWithin the `virtualenv` I could install the `easysnmp` package without error but couldn't import it in my script, seeing the same error printed out as @bijenkins. iPython also displayed the error when trying to import the global package, however upgrading from 2.7.10 to 2.7.11 resolved the issue. The global Python 2.7.11 interpreter seems to have no issue loading the package and running it.\r\n\r\nSince OS X does not have `ldd` I ran `otool -L` instead (as suggested [here](https://discussions.apple.com/thread/309193?start=0&tstart=0)) first on the globally installed package which gives the output:\r\n\r\n    kentcoble$ otool -L /Users/kentcoble/.python-eggs/easysnmp-0.2.4-py2.7-macosx-10.10-intel.egg-tmp/easysnmp/interface.so\r\n    /Users/kentcoble/.python-eggs/easysnmp-0.2.4-py2.7-macosx-10.10-intel.egg-tmp/easysnmp/interface.so:\r\n    \t/opt/local/lib/libnetsnmp.30.dylib (compatibility version 31.0.0, current version 31.3.0)\r\n    \t/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n    \t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)\r\n\r\nI ran the command again but this time on the Virtualenv instance:\r\n\r\n    (snmpbench) kentcoble$ otool -L ~/Envs/snmpbench/lib/python2.7/site-packages/easysnmp/interface.so \r\n    /Users/kentcoble/Envs/snmpbench/lib/python2.7/site-packages/easysnmp/interface.so:\r\n\t    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)\r\n\t    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)\r\n\t    /usr/local/lib/gcc/4.9/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\r\nThe `virtualenv` seems to link to the older libraries which may be the root of the issue.\r\n\r\n(I noticed that while Net-SNMP 5.7.* is required, it looks like support for 5.6.2.1 was added for OS X. I went ahead anyways and installed 5.7.3 via `brew` and linked it to the system. Reinstalling `easysnmp` in the `virtualenv` did not change anything.)"}}