N95電話のPyS60バージョン2.0でscriptextをインポートしようとすると、scriptextという名前のモジュールがないというインポートエラーが発生します。
どうすれば問題が何であるかを理解できますか?
N95電話のPyS60バージョン2.0でscriptextをインポートしようとすると、scriptextという名前のモジュールがないというインポートエラーが発生します。
どうすれば問題が何であるかを理解できますか?
差出人:http : //pys60.garage.maemo.org/doc/s60/scriptext.html
注:このサービスは、「S60第3版FP2以降」から利用できます。
N95は第3版の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.