pyside-rcc"dyld:库未加载:..." [英] pyside-rcc "dyld: Library not loaded:..."

查看:295
本文介绍了pyside-rcc"dyld:库未加载:..."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是python和Qt新秀,在运行pyside-rcc(和pyrcc4)时遇到一些问题.问题不是链接到可执行文件,而是一个库问题.我不是Unix向导,可能也无济于事:)

当我运行$ pyside-rcc时,出现以下错误

dyld: Library not loaded: @rpath/lib/QtCore.framework/Versions/4/QtCore
  Referenced from: /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/pyside-rcc
  Reason: image not found
Trace/BPT trap: 5

对于$ pyrcc4,错误相似但不完全相同:

dyld: Library not loaded: @rpath/lib/QtXml.framework/Versions/4/QtXml
  Referenced from: /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/pyrcc4
  Reason: image not found
Trace/BPT trap: 5

  • 我正在运行Mac OS X 10.9

  • 我已经安装了以下概念的机盖(v.1.5.1) 软件包:Qt 4.8.5-10,PySide 1.2.2,PyQt 4.11.0-1

  • 我还安装了Qt 5.4.0随附的Qt Creator(3.3.0)

要在整个系统范围内激活Canopy python软件包,请在mt .bash_profile

中添加以下行

VIRTUAL_ENV_DISABLE_PROMPT=1 source /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/activate

我发现很多帖子都出现dyld: Library not loaded...错误,但是我找不到通往Qt框架的正确路径,因此,我陷入了困境……拥有Enthought Canopy的人是否有同样的问题?

在此先感谢您,感谢您的帮助.

解决方案

已解决!我在这里找到了类似的问题: http://qt-project.org/forums/viewthread/9024

库(通过Canopy安装时)在/Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/lib

显然,它们应该位于/Library/Frameworks中,将它们复制到这里后就可以了...

I'm a python and Qt rookie and I have some problems running pyside-rcc (and pyrcc4). The problem is not the link to the executable but a library problem it seems. That I'm not a unix wizard, probably doesn't help either:)

When I run $ pyside-rcc i get the following error

dyld: Library not loaded: @rpath/lib/QtCore.framework/Versions/4/QtCore
  Referenced from: /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/pyside-rcc
  Reason: image not found
Trace/BPT trap: 5

For $ pyrcc4 the error is similar but not exactly the same:

dyld: Library not loaded: @rpath/lib/QtXml.framework/Versions/4/QtXml
  Referenced from: /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/pyrcc4
  Reason: image not found
Trace/BPT trap: 5

  • I'm running Mac OS X 10.9

  • I have Enthought Canopy (v.1.5.1) installed with the following packages: Qt 4.8.5-10, PySide 1.2.2, PyQt 4.11.0-1

  • I have also installed Qt Creator (3.3.0) which came with Qt 5.4.0

To activate the Canopy python packages system wide I have the following line in mt .bash_profile

VIRTUAL_ENV_DISABLE_PROMPT=1 source /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/activate

I have found a lot of posts with dyld: Library not loaded... errors but I can't find the right path to the Qt framework and thus, I'm stuck... Does anyone with Enthought Canopy have the same problem?

Thank you in advance, I appreciate any help.

解决方案

Solved! I found a similar question here: http://qt-project.org/forums/viewthread/9024

The libraries (when installed through Canopy) is in /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/lib

Apparently they should be in /Library/Frameworks After copying them here it works...

这篇关于pyside-rcc"dyld:库未加载:..."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆