CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

After installation, CNTK crashes my Python

Open skybe077 opened this issue 10 years ago • 8 comments

picture1

As shown in the picture above.

I've used manual installation. Python doesn't crash if I change the init.py filename. But once that happens, the installation verification NumpyInterop/FeedForwardNet.py doesn't work at all.

Any thoughts on how I could go about it? Thanks

skybe077 avatar Oct 29 '16 13:10 skybe077

Hi Skybe077, Sorry to hear you having trouble. Would appreciate if you could give us a few more details. Did you install python first time? If not which version was installed? Can you please share the path variables? Are you able to activate the "CNTK-py34" environment? What changes are you making to init.py?

Thanks, Skybe077

sayanpa avatar Oct 30 '16 00:10 sayanpa

Hiya, Please see my answers for each question.

  1. Did you install python first time? If not which version was installed? I reinstalled it. It's version 3.4.3
  2. Can you please share the path variables? I took this from command prompt. >> path is this what you're referring to?

PATH=C:\Users\User\Anaconda3\envs\cntk-py34;C:\Users\User\Anaconda3\envs\cntk-py 34\Library\mingw-w64\bin;C:\Users\User\Anaconda3\envs\cntk-py34\Library\usr\bin; C:\Users\User\Anaconda3\envs\cntk-py34\Library\bin;C:\Users\User\Anaconda3\envs
cntk-py34\Scripts;C:\Program Files\Microsoft MPI\Bin;C:\ProgramData\Oracle\Java \javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\Syste m32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Eng ine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components
DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Pr ogram Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Int el\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program File s\Lenovo\Touch Fingerprint Software;C:\Program Files (x86)\Common Files\Lenovo; C:\ProgramData\Lenovo\ReadyApps;C:\Program Files (x86)\Skype\Phone;C:\Android;C :\Windows\System32;C:\Program Files\Git\cmd;C:\Program Files (x86)\NVIDIA Corpor ation\PhysX\Common;C:\Users\User\Anaconda3;C:\Users\User\Anaconda3\Scripts;C:\Us ers\User\Anaconda3\Library\bin;;C:\Program Files\Docker Toolbox

  1. Are you able to activate the "CNTK-py34" environment? No. It only works after I've renamed init.py_ (pls see pic below)
  2. What changes are you making to init.py? I've renamed file to a_init.py. See picture.

picture1

skybe077 avatar Oct 30 '16 02:10 skybe077

Hey @skybe077,

perhaps Python versions are mixed. From your logs and screenshots, it is strange that you're running with the root Anaconda3 environment (c:\users\user\Anaconda3), however, in your path, there's your CNTK Python environment (...\envs\CNTK-py34) in addition.

What Anaconda3 version did you install (I'm assuming 4.1.1)? Also, what OS version are you running on and which binary download are you using? Also, do you have an NVidia card?

Let's in addition try this: Please revert all your file edits. Then, from a command prompt , execute the following steps and report the first step that fails (and output up to that point): c:\users\user\anaconda3\scripts\activate c:\users\user\anaconda3\envs\cntk-py34 path python --version python -c "import cntk"

If everything worked so far, try one of the validation samples.

Thanks and sorry for the inconvenience,

Mark

mahilleb-msft avatar Oct 31 '16 08:10 mahilleb-msft

there have been many changes and improvement since this issue was created, If this still occurs with the most recent released version, please reopen (or create a new issue) with sufficient information to reproduce the problem

wolfma61 avatar Jul 12 '17 12:07 wolfma61

I run into the same problem image

the environment I have: GeForece GTX1080 Driver version 391.35 CUDA v9.0 cudnn-9.0-v7.0 python 3.5.5 in Anoconda(conda 4.5.0) image

There is another problem that when I try dir C:\Program Files\NVIDIA Corporation\NVSMI\nvml.dll it shows the error that "The system cannot find the file specified." but the file existed in the folder.

jink-e avatar Apr 10 '18 21:04 jink-e

Try dir "C:\Program Files\NVIDIA Corporation\NVSMI\nvml.dll" instead, with double quotes on the path with spaces

Also, run 'git pull' on your CNTK's master branch to get the commit 6e7ff0e974dd3323167e11062850f8cb9b0d9f2b. Validation messages were added to help debugging missing libraries

Finally, double check each folder you added to your PATH exists and has DLLs on it. Sometimes the path from the documentation slightly differs from the actual zip files

thiagocrepaldi avatar Apr 10 '18 21:04 thiagocrepaldi

After I delete the cudnn file that I extracted to the C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0 previously, and rerun the prompt again, the python works fine as below: (cntk-py35) D:\Project\CNTK-Samples-2-5\Tutorials\NumpyInterop>python FeedForwardNet.py Selected GPU[0] GeForce GTX 1080 as the process wide default device.

Build info:

            Built time: Mar 15 2018 17:19:41
            Last modified date: Thu Mar 15 16:09:26 2018
            Build type: Release
            Build target: GPU
            With ASGD: yes
            Math lib: mkl
            CUDA version: 9.0.0
            CUDNN version: 7.0.4
            Build Branch: HEAD
            Build SHA1: 545a592f8399c4597c2587347a8b6bfb67cf07cd
            MPI distribution: Microsoft MPI
            MPI version: 7.0.12437.6

Learning rate per minibatch: 0.5 Minibatch[ 1- 128]: loss = 0.614628 * 3200, metric = 29.25% * 3200; Minibatch[ 129- 256]: loss = 0.332382 * 3200, metric = 13.31% * 3200; Minibatch[ 257- 384]: loss = 0.298804 * 3200, metric = 11.59% * 3200; Minibatch[ 385- 512]: loss = 0.271270 * 3200, metric = 10.44% * 3200; Minibatch[ 513- 640]: loss = 0.247776 * 3200, metric = 9.03% * 3200; Minibatch[ 641- 768]: loss = 0.231605 * 3200, metric = 9.06% * 3200; Minibatch[ 769- 896]: loss = 0.229529 * 3200, metric = 8.62% * 3200; Minibatch[ 897-1024]: loss = 0.214106 * 3200, metric = 8.25% * 3200; Finished Epoch[1]: loss = 0.305012 * 25600, metric = 12.45% * 25600 1.678s (15256.3 samples/s); error rate on an unseen minibatch 0.040000 Besides, the command works after add double quote. Thanks

jink-e avatar Apr 10 '18 21:04 jink-e

After reading almost everything to troubleshoot my same issuse, the solution for me was to upgrade my display driver since I'm running GPU installation and CUDA 9.2.

This page, https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#install-windows, has a section on:

One of the following supported CUDA versions and NVIDIA graphics driver: NVIDIA graphics driver R377 or newer for CUDA 8 NVIDIA graphics driver R384 or newer for CUDA 9 NVIDIA graphics driver R390 or newer for CUDA 9.2

HTH

warpdriv avatar Oct 05 '18 14:10 warpdriv