質問編集履歴
2
エラーメッセージの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -319,3 +319,33 @@
|
|
319
319
|
|
320
320
|
|
321
321
|
ModuleNotFoundError: No module named 'importlib_resources'
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
#追記
|
330
|
+
|
331
|
+
jbpb0さんのご指摘の通り,
|
332
|
+
|
333
|
+
conda install importlib_resources
|
334
|
+
|
335
|
+
を実行したところ, import mayaviでこ上記のエラーは出なくなりましたが,
|
336
|
+
|
337
|
+
import vtkを実行したときと同様の下記のエラーが出てくるようになりました.
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\vtkmodules\vtkCommonCore.py", line 5, in <module>
|
342
|
+
|
343
|
+
from .vtkCommonCorePython import *
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
ImportError: DLL load failed: 指定されたモジュールが見つかりません。
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
こちらの解決方法についてわかる方がいましたらご回答よろしくお願いいたします.
|
1
エラーメッセージの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -117,3 +117,205 @@
|
|
117
117
|
python 3.8.8(root) 3.6(仮想環境)
|
118
118
|
|
119
119
|
spyder 4.2.5(root) 5.0.5(仮想環境)
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
追記
|
132
|
+
|
133
|
+
ご指摘いただいたエラーメッセージを追加いたします.
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<import vtk>
|
138
|
+
|
139
|
+
import vtk
|
140
|
+
|
141
|
+
Traceback (most recent call last):
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\vtkmodules\vtkCommonCore.py", line 5, in <module>
|
146
|
+
|
147
|
+
from .vtkCommonCorePython import *
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
ImportError: DLL load failed: 指定されたモジュールが見つかりません。
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
During handling of the above exception, another exception occurred:
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
Traceback (most recent call last):
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
File "<ipython-input-1-7c7f66f02cd3>", line 1, in <module>
|
166
|
+
|
167
|
+
import vtk
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\vtk.py", line 32, in <module>
|
172
|
+
|
173
|
+
all_spec.loader.exec_module(all_m)
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\vtkmodules\all.py", line 7, in <module>
|
178
|
+
|
179
|
+
from .vtkCommonCore import *
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\vtkmodules\vtkCommonCore.py", line 9, in <module>
|
184
|
+
|
185
|
+
from vtkCommonCorePython import *
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
ModuleNotFoundError: No module named 'vtkCommonCorePython'
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
<from mayavi import mlab>
|
204
|
+
|
205
|
+
from mayavi import mlab
|
206
|
+
|
207
|
+
MayaviのバックエンドをQtに変更しています
|
208
|
+
|
209
|
+
Traceback (most recent call last):
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
File "<ipython-input-2-67847bc6bfd0>", line 1, in <module>
|
214
|
+
|
215
|
+
from mayavi import mlab
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\mayavi\mlab.py", line 16, in <module>
|
220
|
+
|
221
|
+
from mayavi.tools.camera import view, roll, yaw, pitch, move
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\mayavi\tools\camera.py", line 24, in <module>
|
226
|
+
|
227
|
+
from .engine_manager import get_engine
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\mayavi\tools\engine_manager.py", line 12, in <module>
|
232
|
+
|
233
|
+
from mayavi.preferences.api import preference_manager
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\mayavi\preferences\api.py", line 4, in <module>
|
238
|
+
|
239
|
+
from .preference_manager import preference_manager
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\mayavi\preferences\preference_manager.py", line 29, in <module>
|
244
|
+
|
245
|
+
from traitsui.api import View, Group, Item
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\traitsui\api.py", line 261, in <module>
|
250
|
+
|
251
|
+
from .editors.api import (
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\traitsui\editors\__init__.py", line 20, in <module>
|
256
|
+
|
257
|
+
from .api import (
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\traitsui\editors\api.py", line 107, in <module>
|
262
|
+
|
263
|
+
from .list_str_editor import ListStrEditor
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\traitsui\editors\list_str_editor.py", line 14, in <module>
|
268
|
+
|
269
|
+
from pyface.image_resource import ImageResource
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\pyface\image_resource.py", line 19, in <module>
|
274
|
+
|
275
|
+
ImageResource = toolkit_object("image_resource:ImageResource")
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\pyface\base_toolkit.py", line 152, in __call__
|
280
|
+
|
281
|
+
module = import_module(mname, package)
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\importlib\__init__.py", line 126, in import_module
|
286
|
+
|
287
|
+
return _bootstrap._gcd_import(name[level:], package, level)
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\pyface\ui\qt4\image_resource.py", line 25, in <module>
|
292
|
+
|
293
|
+
from pyface.i_image_resource import IImageResource, MImageResource
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\pyface\i_image_resource.py", line 14, in <module>
|
298
|
+
|
299
|
+
from pyface.resource_manager import resource_manager
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\pyface\resource_manager.py", line 14, in <module>
|
304
|
+
|
305
|
+
from pyface.resource.api import ResourceManager
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\pyface\resource\api.py", line 13, in <module>
|
310
|
+
|
311
|
+
from .resource_manager import ResourceManager
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
File "C:\Users\yoosuk\anaconda3\envs\pyforge\lib\site-packages\pyface\resource\resource_manager.py", line 20, in <module>
|
316
|
+
|
317
|
+
from importlib_resources import files
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
ModuleNotFoundError: No module named 'importlib_resources'
|