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

Compiling Mac app doesn't work #6

Open
phette23 opened this issue Dec 6, 2019 · 0 comments
Open

Compiling Mac app doesn't work #6

phette23 opened this issue Dec 6, 2019 · 0 comments

Comments

@phette23
Copy link

phette23 commented Dec 6, 2019

There are multiple problems with compiling the Mac app. Following the readme instructions and running package-mac/ebi-package.command:

  • python setup.py py2app --iconfile ebibig.icns --plist Info.plist fails because neither of the referenced files (ebibig.icns, Info.plist) exist under package-mac nor source
  • the app that's compiled is 32-bit & thus doesn't run on Catalina
  • I get hdiutil: internet-enable: verb not recognized, I suspect this step is unnecessary
  • I always get "mv: cannot stat 'dist/ebi.app/Contents/MacOS/ebi.command': No such file or directory" and "hdiutil: create failed - Resource busy" but if you run these package commands manually one-by-one after doing py2app they succeed, so I'm not sure what's going on there

I tried the most basic set of fixes I could think of: remove the --iconfile & --plist flags, remove the arch property from the OPTIONS dict in setup.py (I also tried using 'arch': 'x86_64'), delete the internet-enable command. The result successfully creates dist/ebi.app and dist/ebi.dmg but the app cannot be opened. I see errors like

"spawn_via_launchd() failed, errno=111 label=org.pythonmac.unspecified.ebi.7300 path=/Applications/ebi.app/Contents/MacOS/ebi flags=1"
"Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 "The file “PlugIns” couldn’t be opened because there is no such file." UserInfo={NSURL=PlugIns/ -- file:///Applications/ebi.app/Contents/, NSFilePath=/Applications/ebi.app/Contents/PlugIns, NSUnderlyingError=0x7f899a645dc0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}"

in Console.app.

Environment:

¿ python --version && pip list
Python 2.7.17
Package     Version
----------- -----------
altgraph    0.16.1
macholib    1.11
modulegraph 0.17
numpy       1.16.5
Pillow      6.2.1
pip         19.3.1
py2app      0.19
setuptools  42.0.2
six         1.13.0
wheel       0.33.6
wxPython    4.0.7.post2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant