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

How to install easysnmp with net-snmp installed in /opt/netsnmp #183

Open
vnalla opened this issue Jan 4, 2023 · 1 comment
Open

How to install easysnmp with net-snmp installed in /opt/netsnmp #183

vnalla opened this issue Jan 4, 2023 · 1 comment
Labels

Comments

@vnalla
Copy link

vnalla commented Jan 4, 2023

What's on your mind?
I have installed net-snmp 5.9.3 in /opt/netsnmp directory and trying to install easysnmp like shown below:

python3 setup.py --basedir=/opt/netsnmp/bin.

it fails with the following error
Traceback (most recent call last):
File "/opt/app/vntest/easysnmp-0.2.6/setup.py", line 33, in
libs_cmd = base_cmd.format('--build-lib-dirs {0}'.format(basedir))
KeyError: '/opt/netsnmp/bin'

@vnalla vnalla added the question label Jan 4, 2023
@antonc42
Copy link

I'm not an expert at this, so I could be wrong here.

I ran into this issue as well. I had to change a few lines in setup.py. See this patch.
easysnmp-setup.txt

Also, it seems that "--basedir" is supposed to be a build directory for net-snmp, not an install directory.

Also, don't forget to include the install command:

python3 setup.py install --basedir=/path/to/build/dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants