Open curunoir opened 2 years ago
After some work i have found that this approach is getting better results but still don't work
setup(
console=['snmpsim/commands/cmd2rec.py'],
packages= setuptools.find_packages(),
include_package_data=True,
)
Which gaves me this output
process terminated: No module SNMP-FRAMEWORK-MIB loaded at <pysnmp.smi.builder.MibBuilder object at 0x00000173C47D68E0>Traceback (most
recent call last):; File "cmd2rec.py", line 740, in
The lacking No module __SNMP-FRAMEWORK-MIB looks like to be a folder from pysnmp which is not included into the library.zip.
Hello guys,
first thanks for the work !
I have the need to embed this package and particularly the snmp-record-command into a portable Windows executable so I have digged into py2exe and did some tests. I also noticed in the setup.py file some references of py2exe so I guess that what I want is doable.
I have managed to do some things with this py2exe setup.py:
and in snmp-record-command.py
And this is working if I'm using the executable done
snmp-record-command.exe --agent-udpv4-endpoint=24.x.x.x --...
But my approach is not good because the subprocess.call(['snmpsim-record-commands'] + sys.argv) needs to have python + snmpsim already installed in the system which is not what I really wand because I need the executable to be standalone.
The problem is I don't understand how I could make. Can someone here points me to the good direction ? Thanks