无法在 N95 上的 PyS60 2.0 中导入 scriptext 模块

发布于 2024-09-07 06:03:43 字数 98 浏览 2 评论 0原文

当我尝试在 N95 手机上的 PyS60 2.0 版上导入 scriptext 时,出现导入错误,提示没有名为 scriptext 的模块。

我怎样才能找出问题所在?

When I try and import scriptext on PyS60 version 2.0 on my N95 phone, I get an import error saying that there is no module named scriptext.

How can I work out what the problem is?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

油焖大侠 2024-09-14 06:03:43

从:
http://pys60.garage.maemo.org/doc/s60/scriptext.html

注意:该服务可从
“S60 第三版 FP2 及更高版本”。

N95 是第三版 FP1 设备。

您可以通过将导入放入 try.. except 块中,根据此模块的可用性在运行时调整您的应用程序:

try:
    import scriptext
except ImportError:
    # Module could not be imported, tell the user to update to a newer device
    # or continue without it if having scriptext is not crucial to your app.

From:
http://pys60.garage.maemo.org/doc/s60/scriptext.html

Note: The service is available from
'S60 third edition FP2 and later'.

N95 is a 3rd edition FP1 device.

You can adapt your app at runtime according to the availability of this module by putting the import in a try..except block:

try:
    import scriptext
except ImportError:
    # Module could not be imported, tell the user to update to a newer device
    # or continue without it if having scriptext is not crucial to your app.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文