We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
お世話になります。
p2_run_everything.ipynbのうち、 run('p2ch11.prepcache.LunaPrepCacheApp')を実行すると、以下のエラーがでます。 どのように解決できますでしょうか? よろしくお願いいたします。
ModuleNotFoundError Traceback (most recent call last) in () ----> 1 run('p2ch11.prepcache.LunaPrepCacheApp')
4 frames in run(app, *argv) 4 log.info("Running: {}({!r}).main()".format(app, argv)) 5 ----> 6 app_cls = importstr(*app.rsplit('.', 1)) # <2> 7 app_cls(argv).main() 8
/content/drive/MyDrive/Colab Notebooks/Pytorch CT Lung Cancer/deep-learning-with-pytorch-ja-main/util/util.py in importstr(module_str, from_) 44 module_str, from_ = module_str.rsplit(':') 45 ---> 46 module = import(module_str) 47 for sub_str in module_str.split('.')[1:]: 48 module = getattr(module, sub_str)
/content/drive/MyDrive/Colab Notebooks/Pytorch CT Lung Cancer/deep-learning-with-pytorch-ja-main/p2ch11/prepcache.py in () 10 11 from util.util import enumerateWithEstimate ---> 12 from .dsets import LunaDataset 13 from util.logconf import logging 14 from .model import LunaModel
/content/drive/MyDrive/Colab Notebooks/Pytorch CT Lung Cancer/deep-learning-with-pytorch-ja-main/p2ch11/dsets.py in () 15 from torch.utils.data import Dataset 16 ---> 17 from util.disk import getCache 18 from util.util import XyzTuple, xyz2irc 19 from util.logconf import logging
/content/drive/MyDrive/Colab Notebooks/Pytorch CT Lung Cancer/deep-learning-with-pytorch-ja-main/util/disk.py in () 5 from io import BytesIO 6 from diskcache.core import MODE_BINARY ----> 7 from util.cassandra.cqltypes import BytesType 8 9
ModuleNotFoundError: No module named 'util.cassandra'
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
The text was updated successfully, but these errors were encountered:
146790g 様
ご質問ありがとうございます。
こちらのエラーですが、必要なパッケージがインストールされていないことが原因です。 以下のコマンドで該当エラーが解消されるか試していただけないでしょうか。
!pip install SimpleITK !pip install diskcache !pip install cassandra-driver
Google Colabの場合、インストールされたパッケージは一定時間が経過すると消えてしまいます。
そのため、本書で使用するパッケージのうちColabにプリインストールされていないものにつきましては、追加でインストールしていただく必要があります。
お手数をおかけしますが、どうぞよろしくお願い致します。
Sorry, something went wrong.
No branches or pull requests
お世話になります。
p2_run_everything.ipynbのうち、
run('p2ch11.prepcache.LunaPrepCacheApp')を実行すると、以下のエラーがでます。
どのように解決できますでしょうか?
よろしくお願いいたします。
ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 run('p2ch11.prepcache.LunaPrepCacheApp')
4 frames
in run(app, *argv)
4 log.info("Running: {}({!r}).main()".format(app, argv))
5
----> 6 app_cls = importstr(*app.rsplit('.', 1)) # <2>
7 app_cls(argv).main()
8
/content/drive/MyDrive/Colab Notebooks/Pytorch CT Lung Cancer/deep-learning-with-pytorch-ja-main/util/util.py in importstr(module_str, from_)
44 module_str, from_ = module_str.rsplit(':')
45
---> 46 module = import(module_str)
47 for sub_str in module_str.split('.')[1:]:
48 module = getattr(module, sub_str)
/content/drive/MyDrive/Colab Notebooks/Pytorch CT Lung Cancer/deep-learning-with-pytorch-ja-main/p2ch11/prepcache.py in ()
10
11 from util.util import enumerateWithEstimate
---> 12 from .dsets import LunaDataset
13 from util.logconf import logging
14 from .model import LunaModel
/content/drive/MyDrive/Colab Notebooks/Pytorch CT Lung Cancer/deep-learning-with-pytorch-ja-main/p2ch11/dsets.py in ()
15 from torch.utils.data import Dataset
16
---> 17 from util.disk import getCache
18 from util.util import XyzTuple, xyz2irc
19 from util.logconf import logging
/content/drive/MyDrive/Colab Notebooks/Pytorch CT Lung Cancer/deep-learning-with-pytorch-ja-main/util/disk.py in ()
5 from io import BytesIO
6 from diskcache.core import MODE_BINARY
----> 7 from util.cassandra.cqltypes import BytesType
8
9
ModuleNotFoundError: No module named 'util.cassandra'
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
The text was updated successfully, but these errors were encountered: