简体   繁体   English

错误:导入bbpy软件包时找不到Qtcore模块

[英]Error:Qtcore module not found from while importing bbpy package

I am trying to get an example application running with blackberry-py. 我正在尝试使用blackberry-py运行示例应用程序。 I adhered to the instructions at link: http://hg.microcode.ca/blackberry-py/wiki/Home , however when trying the "import bbpy" statement I received the following error: import Error: No module named Qtcore. 我遵守链接上的说明: http ://hg.microcode.ca/blackberry-py/wiki/Home,但是在尝试“导入bbpy”语句时,收到以下错误:import错误:没有名为Qtcore的模块。

Print screen of Trace : http://imgur.com/csRJ4 Trace的打印屏幕: http : //imgur.com/csRJ4

Any help would be much appreciated. 任何帮助将非常感激。 Thanks 谢谢

Your version of PySide does not have a module QtCore . 您的PySide版本没有模块QtCore Also note that it's trying to import Qt from there, not qt so it makes sense that import qt will give an error. 另请注意,它尝试从此处导入Qt ,而不是qt因此import qt会产生错误是有意义的。

Are you sure you installed compatible versions of PySide and bbpy ? 您确定安装了兼容版本的PySidebbpy吗? Check the versions and lookup if they're indeed compatible. 检查版本并查找它们是否确实兼容。

It turns out those packages are not for PC but for playbook. 事实证明,这些软件包不是用于PC的,而是用于剧本的。 Solution is to download PyQt or QT Thanks to @peter9477 and timeless for the help on #bbx-python on freenode.net. 解决方案是下载PyQt或QT,这要感谢@ peter9477,并且在freenode.net上永恒的#bbx-python帮助中。 If you're interested in the BBPy project check it out here : http://blackberry-py.microcode.ca/ and here: http://hg.microcode.ca/blackberry-py/wiki/Home . 如果您对BBPy项目感兴趣,请在以下位置进行检查: http ://blackberry-py.microcode.ca/和此处: http ://hg.microcode.ca/blackberry-py/wiki/Home。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM