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

include qt_menu.nib file in MacOS app bundle #4116

Closed
stevengj opened this issue Aug 20, 2013 · 7 comments
Closed

include qt_menu.nib file in MacOS app bundle #4116

stevengj opened this issue Aug 20, 2013 · 7 comments
Labels
system:mac Affects only macOS

Comments

@stevengj
Copy link
Member

I have been trying to get PyPlot working with Anaconda's Python distribution, and am running into

Qt internal error: qt_menu.nib could not be loaded. The .nib file should be placed in QtGui.framework/Versions/Current/Resources/  or in the resources directory of your application bundle.

I've been searching, and so far I can't find any clean way to work around this other than to copy the qt_menu.nib directory into the Resources directory of the application bundle.

It's incredibly annoying, but I wonder if it would be okay to just ship this in the Julia MacOS download? It's only 16kB, and this seems like it may affect any Qt-based libraries.

@Keno
Copy link
Member

Keno commented Aug 20, 2013

Is this a Qt bug or a problem with the Anaconda distribution?

@stevengj
Copy link
Member Author

It looks like this is a bug in Anaconda. Should try to figure something else out.

@ihnorton
Copy link
Member

@stevengj are you sure IPython is running with the python inside of anaconda's python.app? (http://stackoverflow.com/questions/17824693/pyqtgraph-with-anaconda-python-on-mac-gives-nib-error)

@stevengj
Copy link
Member Author

@ihnorton, the problem is that we are running from within the julia executable, linking libpython as a shared library, not from a python executable. So, the fact that Anaconda has a python.app with the appropriate Resources/qt_menu.nib directory is utterly useless.

We need to have Qt properly installed as a framework with the QtGui.framework/Versions/Current/Resources directory set up correctly.

@stevengj
Copy link
Member Author

I've posted a query on the Anaconda mailing list about this.

@ihnorton
Copy link
Member

Here's another possible stopgap: run julia as a symlink from within the anaconda directory.

(PWD == ~/julia)
# ./julia
julia> using PyPlot
julia> plot(1:10)
[crashes]

# ln -s /Applications/anaconda/python.app/Contents/MacOS/julia ~/julia/julia
# /Applications/anaconda/python.app/Contents/MacOS/julia
julia> using PyPlot
julia> plot(1:10)
[plot is displayed properly]

@stevengj
Copy link
Member Author

That's a great (albeit evil) hack, thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:mac Affects only macOS
Projects
None yet
Development

No branches or pull requests

3 participants