Ok.
I've installed pyinstaller and run it on the python script. I then made the change to the spec file but I'm getting a new error now:
C:\Users\netcomm\Documents\TerryTestPython>pyinstaller snmpTester.spec
122 INFO: PyInstaller: 3.3.1
123 INFO: Python: 3.6.4
126 INFO: Platform: Windows-10-10.0.14393-SP0
130 INFO: UPX is not available.
130 INFO: Removing temporary files and cleaning cache in C:\Users\netcomm\AppData\Roaming\pyinstaller
Traceback (most recent call last):
File "C:\Python\Python36-32\Scripts\pyinstaller-script.py", line 11, in <module>
load_entry_point('PyInstaller==3.3.1', 'console_scripts', 'pyinstaller')()
File "c:\python\python36-32\lib\site-packages\PyInstaller\__main__.py", line 94, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\python\python36-32\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 791, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build
exec(text, spec_namespace)
File "<string>", line 28
SyntaxError: positional argument follows keyword argument
C:\Users\netcomm\Documents\TerryTestPython>
Here is the current spec file (I have tried using both / and \\ for the path names and both give the same error above:
Do you have any other ideas?
Thanks.
I've installed pyinstaller and run it on the python script. I then made the change to the spec file but I'm getting a new error now:
C:\Users\netcomm\Documents\TerryTestPython>pyinstaller snmpTester.spec
122 INFO: PyInstaller: 3.3.1
123 INFO: Python: 3.6.4
126 INFO: Platform: Windows-10-10.0.14393-SP0
130 INFO: UPX is not available.
130 INFO: Removing temporary files and cleaning cache in C:\Users\netcomm\AppData\Roaming\pyinstaller
Traceback (most recent call last):
File "C:\Python\Python36-32\Scripts\pyinstaller-script.py", line 11, in <module>
load_entry_point('PyInstaller==3.3.1', 'console_scripts', 'pyinstaller')()
File "c:\python\python36-32\lib\site-packages\PyInstaller\__main__.py", line 94, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\python\python36-32\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 791, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build
exec(text, spec_namespace)
File "<string>", line 28
SyntaxError: positional argument follows keyword argument
C:\Users\netcomm\Documents\TerryTestPython>
Here is the current spec file (I have tried using both / and \\ for the path names and both give the same error above:
# -*- mode: python -*- block_cipher = None hiddenimports = ['pysnmp.smi.exval','pysnmp.cache'] a = Analysis(['snmpTester.py'], pathex=['C:/Users/netcomm/Documents/TerryTestPython'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher) x = Tree('C:/Python/Python36-32/Lib/site-packages/pysnmp/smi/mibs',prefix='pysnmp/smi/mibs',excludes='.py') pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, a.scripts, exclude_binaries=True, name='snmpTester', debug=False, strip=False, upx=True, x, console=True ) coll = COLLECT(exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=True, name='snmpTester')Not sure where I go from here.
Do you have any other ideas?
Thanks.