Results of 1 - 10 of about 24 for ModuleNotFoundError (0.010 sec.)
- 5. インポートシステム — Python 3.14.8 ドキュメント 13794
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 5. インポートシステム テーマ 自動 ライト ダーク | 5. インポートシステム ¶ ある 1 つの module にある Python コードから他のモジュールを イ
...を検索し、見付かった場合、モジュールオブジェクトを作成し、初期化します [ 1 ] 。その名前のモジュールが見付からなかった場合、 ModuleNotFoundError が送出されます。 Python には、インポート機構が実行されたときに名前からモジュールを検索する様々な戦略が実装されています。こ...に foo を、次に foo.bar 、そして最後に foo.bar.baz をインポートしようとします。中間のいずれかのインポートに失敗した場合は、 ModuleNotFoundError が送出されます。 5.3.1. モジュールキャッシュ ¶ インポート検索で最初に調べる場所は sys.modules です。このマッピングは、中間...探され、存在した場合は、対応する値がインポートされるべきモジュールであり、この処理は完了します。しかし値が None だった場合、 ModuleNotFoundError が送出されます。モジュール名が見付からなかった場合は、 Python はモジュールの検索を続けます。 sys.modules は書き込み可能です... - https://man.mtool.work/python/3.14/reference/import.html
- 5. インポートシステム — Python 3.14.8 ドキュメント 12760
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 5. インポートシステム テーマ 自動 ライト ダーク | 5. インポートシステム ¶ ある 1 つの module にある Python コードから他のモジュールを イ
...を検索し、見付かった場合、モジュールオブジェクトを作成し、初期化します [ 1 ] 。その名前のモジュールが見付からなかった場合、 ModuleNotFoundError が送出されます。 Python には、インポート機構が実行されたときに名前からモジュールを検索する様々な戦略が実装されています。こ...に foo を、次に foo.bar 、そして最後に foo.bar.baz をインポートしようとします。中間のいずれかのインポートに失敗した場合は、 ModuleNotFoundError が送出されます。 5.3.1. モジュールキャッシュ ¶ インポート検索で最初に調べる場所は sys.modules です。このマッピングは、中間...探され、存在した場合は、対応する値がインポートされるべきモジュールであり、この処理は完了します。しかし値が None だった場合、 ModuleNotFoundError が送出されます。モジュール名が見付からなかった場合は、 Python はモジュールの検索を続けます。 sys.modules は書き込み可能です... - https://man.mtool.work/python/3.14/reference/import.html
- 例外処理 — Python 3.14.8 ドキュメント 9190
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 例外処理 テーマ 自動 ライト ダーク | 例外処理 ¶ この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになりま
...に属します: Stable ABI . LookupError PyObject * PyExc_MemoryError ¶ 次に属します: Stable ABI . MemoryError PyObject * PyExc_ModuleNotFoundError ¶ 次に属します: Stable ABI (バージョン 3.6 より). ModuleNotFoundError PyObject * PyExc_NameError ¶ 次に属します: Stable AB...り導入されました。 Added in version 3.5: PyExc_StopAsyncIteration および PyExc_RecursionError 。 Added in version 3.6: PyExc_ModuleNotFoundError . Added in version 3.11: PyExc_BaseExceptionGroup . OSError aliases ¶ The following are a compatibility aliases to PyExc_O... - https://man.mtool.work/python/3.14/c-api/exceptions.html
- 例外処理 — Python 3.14.8 ドキュメント 9190
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 例外処理 テーマ 自動 ライト ダーク | 例外処理 ¶ この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになりま
...に属します: Stable ABI . LookupError PyObject * PyExc_MemoryError ¶ 次に属します: Stable ABI . MemoryError PyObject * PyExc_ModuleNotFoundError ¶ 次に属します: Stable ABI (バージョン 3.6 より). ModuleNotFoundError PyObject * PyExc_NameError ¶ 次に属します: Stable AB...り導入されました。 Added in version 3.5: PyExc_StopAsyncIteration および PyExc_RecursionError 。 Added in version 3.6: PyExc_ModuleNotFoundError . Added in version 3.11: PyExc_BaseExceptionGroup . OSError aliases ¶ The following are a compatibility aliases to PyExc_O... - https://man.mtool.work/python/3.14/c-api/exceptions.html
- importlib --- import の実装 — Python 3.14.8 ドキュメント 8673
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » importlib --- import の実装 テーマ 自動 ライト ダーク | importlib --- import の実装 ¶ Added in version 3.1
...スの場合でも同じです。 Added in version 3.4. バージョン 3.7 で変更: リロードされたモジュールの ModuleSpec が欠けていたときは ModuleNotFoundError が送出されます。 警告 This function is not thread-safe. Calling it from multiple threads can result in unexpected behavior...ます。 name and package work the same as for importlib.import_module() . Added in version 3.4. バージョン 3.7 で変更: Raises ModuleNotFoundError instead of AttributeError if package is in fact not a package (i.e. lacks a __path__ attribute). importlib.util. module_fr...find_spec ( absolute_name , path ) if spec is not None : break else : msg = f 'No module named { absolute_name !r} ' raise ModuleNotFoundError ( msg , name = absolute_name ) module = importlib . util . module_from_spec ( spec ) sys . modules [ absolute_name ] = mod... - https://man.mtool.work/python/3.14/library/importlib.html
- What's New In Python 3.6 — Python 3.14.8 ドキュメント 8673
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.6 テーマ 自動 ライト ダーク | What's New In Python 3.6 ¶ エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yur
...times]" (see traceback for an example). (Contributed by Emanuel Barry in bpo-26823 .) Import now raises the new exception ModuleNotFoundError (subclass of ImportError ) when it cannot find a module. Code that currently checks for ImportError (in try-except) will s...by right-clicking the button. (Contributed by Tal Einat in bpo-1529353 .) importlib ¶ Import now raises the new exception ModuleNotFoundError (subclass of ImportError ) when it cannot find a module. Code that current checks for ImportError (in try-except) will sti...ling to do so will result in a DeprecationWarning in Python 3.6 and a RuntimeError in Python 3.8. With the introduction of ModuleNotFoundError , import system consumers may start expecting import system replacements to raise that more specific exception when approp... - https://man.mtool.work/python/3.14/whatsnew/3.6.html
- importlib --- import の実装 — Python 3.14.8 ドキュメント 8673
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » importlib --- import の実装 テーマ 自動 ライト ダーク | importlib --- import の実装 ¶ Added in version 3.1
...スの場合でも同じです。 Added in version 3.4. バージョン 3.7 で変更: リロードされたモジュールの ModuleSpec が欠けていたときは ModuleNotFoundError が送出されます。 警告 This function is not thread-safe. Calling it from multiple threads can result in unexpected behavior...ます。 name and package work the same as for importlib.import_module() . Added in version 3.4. バージョン 3.7 で変更: Raises ModuleNotFoundError instead of AttributeError if package is in fact not a package (i.e. lacks a __path__ attribute). importlib.util. module_fr...find_spec ( absolute_name , path ) if spec is not None : break else : msg = f 'No module named { absolute_name !r} ' raise ModuleNotFoundError ( msg , name = absolute_name ) module = importlib . util . module_from_spec ( spec ) sys . modules [ absolute_name ] = mod... - https://man.mtool.work/python/3.14/library/importlib.html
- What's New In Python 3.6 — Python 3.14.8 ドキュメント 8673
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.6 テーマ 自動 ライト ダーク | What's New In Python 3.6 ¶ エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yur
...times]" (see traceback for an example). (Contributed by Emanuel Barry in bpo-26823 .) Import now raises the new exception ModuleNotFoundError (subclass of ImportError ) when it cannot find a module. Code that currently checks for ImportError (in try-except) will s...by right-clicking the button. (Contributed by Tal Einat in bpo-1529353 .) importlib ¶ Import now raises the new exception ModuleNotFoundError (subclass of ImportError ) when it cannot find a module. Code that current checks for ImportError (in try-except) will sti...ling to do so will result in a DeprecationWarning in Python 3.6 and a RuntimeError in Python 3.8. With the introduction of ModuleNotFoundError , import system consumers may start expecting import system replacements to raise that more specific exception when approp... - https://man.mtool.work/python/3.14/whatsnew/3.6.html
- 組み込み例外 — Python 3.14.8 ドキュメント 8156
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み例外 テーマ 自動 ライト ダーク | 組み込み例外 ¶ Python において、すべての例外は BaseException から派生したクラスのインスタン
...の名前。 path ¶ 例外を引き起こしたファイルのパス。 バージョン 3.3 で変更: name および path 属性が追加されました。 exception ModuleNotFoundError ¶ ImportError のサブクラスで、 import 文でモジュールが見つからない場合に送出されます。また、 sys.modules に None が含まれる...sertionError ├── AttributeError ├── BufferError ├── EOFError ├── ExceptionGroup [BaseExceptionGroup] ├── ImportError │ └── ModuleNotFoundError ├── LookupError │ ├── IndexError │ └── KeyError ├── MemoryError ├── NameError │ └── UnboundLocalError ├── OSError │ ├── Bl... - https://man.mtool.work/python/3.14/builtins/exceptions.html
- sys.monitoring --- 実行イベントモニタリング — Python 3.14.8 ドキュメント 8156
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » sys.monitoring --- 実行イベントモニタリング テーマ 自動 ライト ダーク | sys.monitoring --- 実行イベント
...ys.monitoring is a namespace within the sys module, not an independent module, and import sys.monitoring would fail with a ModuleNotFoundError . Instead, simply import sys and then use sys.monitoring . この名前空間は、イベントモニタリングの有効化と制御に必要な関数と... - https://man.mtool.work/python/3.14/library/sys.monitoring.html