2016-12-06 4 views
0

gescheitert Ich versuche Theano und läuft auf einem Windows 10 (x64) Maschine zu bekommen.Fehler beim Ausführen der theano.test() - Import: DLL Last fehlgeschlagen: Eine Dynamic Link Library (DLL) Initialisierungsroutine

ich Python habe aus der Verteilung WinPython installiert, die mit Theano kommt bereits ausgeführt. Aber nach CUDA Installation 8.0.44 und MingW, ich ständig die folgenden Fehlermeldungen erhalten, wenn die einfachen Skript ausgeführt

import theano 
theano.test() 

Bitte beachte, dass ich vor mehreren Warnungen hatte, dass ich bereits gelöst (zB durch fehlende Pakete von here installieren. Aber dieser Fehler gibt mir keine verwertbaren Informationen. das wirklich seltsame ist, dass der Modul-Name nicht überall gegeben ist, dass Theanos fehlt.

theano.gof.opt: ERROR: Optimization failure due to: constant_folding 
theano.gof.opt: ERROR: node: DimShuffle{x,x}(TensorConstant{1.0}) 
theano.gof.opt: ERROR: TRACEBACK: 
theano.gof.opt: ERROR: Traceback (most recent call last): 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\opt.py", line 1772, in process_node 
    replacements = lopt.transform(node) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\tensor\opt.py", line 5825, in constant_folding 
    no_recycling=[]) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\op.py", line 970, in make_thunk 
    no_recycling) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\op.py", line 879, in make_c_thunk 
    output_storage=node_output_storage) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1200, in make_thunk 
    keep_lock=keep_lock) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1143, in __compile__ 
    keep_lock=keep_lock) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1595, in cthunk_factory 
    key=key, lnk=self, keep_lock=keep_lock) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 1142, in module_from_key 
    module = lnk.compile_cmodule(location) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cc.py", line 1506, in compile_cmodule 
    preargs=preargs) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 2213, in compile_str 
    return dlimport(lib_filename) 
    File "C:\Programmieren\WinPython-64bit-3.5.2.2\python-3.5.2.amd64\lib\site-packages\theano\gof\cmodule.py", line 299, in dlimport 
    rval = __import__(module_name, {}, {}, [module_name]) 
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed. 

Potenziell verwandte Beiträge sind Test Optimization failure und Installing theano on windows.

Irgendwelche Ideen, wie dieses Problem zu beheben oder herauszufinden, was dll fehlt?

+1

Debug: bearbeiten Sie die 'cmodule.py' Datei * module_name * zu drucken, bevor' __import__' stürzt ab. Versuchen Sie es erneut und sehen Sie den Modulnamen ... Oder führen Sie 'theano.test()' in Ihrem Debugger aus. –

Antwort

0

Dieses Problem wurde behoben, indem this excellent tutorial (das einzige, das tatsächlich funktioniert und aktuell ist) für die native Installation von Deep Learning-Bibliotheken auf einem Windows-Computer ausgeführt wurde.

Verwandte Themen