Jul-26-2019, 09:33 PM
(Feb-19-2018, 03:25 AM)nacho Wrote: Thanks. Ok so I'm getting closer. That now appears to work ok on the snmpTester.py script I took from my main app.
However I get a different error when I try pyinstaller on the main app so I think there is maybe another error now (perhaps not related to snmp?):
C:\Users\netcomm\Documents\TerryTestPython>pyinstaller --clean testerButton.spec
129 INFO: PyInstaller: 3.3.1
129 INFO: Python: 3.6.4
132 INFO: Platform: Windows-10-10.0.14393-SP0
138 INFO: UPX is not available.
139 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 10
SyntaxError: keyword argument repeated
Something to do with "main.py" I'm guessing.
Any ideas?
Thanks
>>> SCRATCH THAT. I made an error and inadvertantly pasted the path into the spec file twice. I have fixed that and it's WORKING!
Thanks heaps for your help today. I really appreciate it.
Hi.
Do I need to do anything else to "close" this thread? or mark it as "Answered"?
I have this exact same problem with pyinstaller.
I followed all of these instructions very closely, build is successful, but when I run the build I'm getting the following error:
[13565] Error loading Python lib '/tmp/_MEI3f3yDW/libpython2.7.so.1.0': dlopen: /tmp/_MEI3f3yDW/libpython2.7.so.1.0: cannot open shared object file: No such file or directory
Did you get this at all? What could it be?