Pyqtgraph with anaconda python on MAC gives nib error

淺唱寂寞╮ 提交于 2019-12-07 14:31:09

问题


I'm trying to use the pyqtgraph with anaconda python on Mac os

Python 2.7.5 |Anaconda 1.6.1 (x86_64)| (default, Jun 28 2013, 22:20:13) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin

I installed pyqtgraph with pip install pyqtgraph, which seemed to work fine. However, if I run any command from the library I get this error:

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 found this SO thread, which seems to be related to C++ app. In my case I have no application.app folder so I'm a bit lost.


回答1:


The solution is to use python.app (or the equivalent pythonw) to run the program, instead of just python. If pyqtgraph installed any commands, you'll need to edit them so that their shebang line calls #!/path/to/anaconda/bin/python.app/Contents/MacOS/python.



来源:https://stackoverflow.com/questions/17824693/pyqtgraph-with-anaconda-python-on-mac-gives-nib-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!