Re: Mac Pyinstaller error with accessible_output2
Re: Mac Pyinstaller error with accessible_output2 Hi, I had trouble with ao2 on windows, I do not have a mac, but I offer this, in the hopes it may help. I added accessible-output2 to the hidden imports list in my .spec file. hiddenimports=['accessible_output2'], URL: https://forum.audiogames.net/post/519535/#p519535 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Mac Pyinstaller error with accessible_output2
2020-04-13
Thread
AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Mac Pyinstaller error with accessible_output2 I have looked into this error a bit more, and my biggest confusion is why pyinstaller has a problem at all with DLLs that I am not providing at all in the binaries array. I have tried completely stripping out my reference to the dlls, and just passing an empty array, and it is still trying to load the dlls for some reason, and throwing an error. On Windows, it creates the executable if you dont' provide the dlls, the executable just doesn't work. That is the behavior I would expect since I don't believe python performs a lookup on a file for a peace of code that has not executed yet that is not an import, such as a text file that is being read from and does not exist. Perhaps I am just not understanding something about how python on a Mac loads dll files. I always thought that dll files were windows specific libraries though. URL: https://forum.audiogames.net/post/519116/#p519116 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Mac Pyinstaller error with accessible_output2
2020-04-12
Thread
AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Mac Pyinstaller error with accessible_output2 Thanks for the response. I actually did see that post you mentioned on pyinstaller. That was just about the only thing I could find that was even close to this error. I would rather not switch compilers if I can avoid it. I have my build scrips written for pyinstaller.Thanks,Timothy Breitenfeldt URL: https://forum.audiogames.net/post/518849/#p518849 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Mac Pyinstaller error with accessible_output2
Re: Mac Pyinstaller error with accessible_output2 Hmm, there's a [ticket] for Pyinstaller that suggests the spec files aren't written in a way thats compatible to run on macOS, something about the Binaries argument that needs to be modified to keep from passing irrelevant files, though in what way they don't say, but there is a thread [here] talking about a similar issue. A different python compiler you can try for MacOS is [Py2app], which is functionally similar to py2exe. It seems it runs into the same errors though, but people worek around it by downgrading some of their library dependancies. URL: https://forum.audiogames.net/post/518774/#p518774 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Mac Pyinstaller error with accessible_output2
2020-04-11
Thread
AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Mac Pyinstaller error with accessible_output2 Hi, so I have been working on making a application cross platform for Windows and Mac. I have everything working on Windows and Mac now, except when I went to go package program up using pyinstaller on Mac, I am getting an error that I have never seen before. I am using python 3.7.6 using accessible_output2. On windows I am able to create the executable just fine adding the dlls as binaries to pyinstaller and packaging it up as a single file (one file). When I tried to run this same code to build my executable on Mac, I am getting an error.The stack trace is below:Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/pyinstaller", line 8, in sys.exit(run()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/__main__.py", line 114, in run run_build(pyi_config, spec_file, **vars(args)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/__main__.py", line 65, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 734, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 681, in build exec(code, spec_namespace) File "src/mtg.spec", line 25, in noarchive=False) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 244, in __init__ self.__postinit__() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/building/datastruct.py", line 160, in __postinit__ self.assemble() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 470, in assemble redirects=self.binding_redirects)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py", line 230, in Dependencies for lib, npth in selectImports(pth, xtrapath): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py", line 501, in selectImports dlls = getImports(pth) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py", line 742, in getImports return _getImports_macholib(pth) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py", line 625, in _getImports_macholib m = MachO(pth) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/macholib/MachO.py", line 118, in __init__ self.load(fp) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/macholib/MachO.py", line 133, in load self.load_header(fh, 0, size) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/macholib/MachO.py", line 167, in load_header raise ValueError("Unknown Mach-O header: 0x%08x in %r" % (header, fh))ValueError: Unknown Mach-O header: 0x4d5a9000 in <_io.BufferedReader name='/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/accessible_output2/lib/nvdaControllerClient64.dll'>It seems to be trying to find the dlls which I added to the binaries as I mentioned, so I tried just not building with the dlls at all since they are not important for Mac anyways, but I got the same error.the spec file look like this:# -*- mode: python ; coding: utf-8 -*-import osimport platformblock_cipher = Nonebinaries = []if platform.system() == "Windows": binaries = [(os.path.join('accessible_output2', 'lib', 'nvdaControllerClient32.dll'), '.'), (os.path.join('accessible_output2', 'lib', 'nvdaControllerClient64.dll'), '.'), (os.path.join('accessible_output2', 'lib', 'dolapi.dll'), '.'), (os.path.join('accessible_output2', 'lib', 'PCTKUSR.dll'), '.'), (os.path.join('accessible_output2', 'lib', 'PCTKUSR64.dll'), '.'), (os.path.join('accessible_output2', 'lib', 'SAAPI32.dll'), '.')]a = Analysis(['mtg.py'], pathex=[SPECPATH], binaries= binaries, datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False)pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)exe =