mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Can not exit python with MxNet?

Open NMC-DAVE opened this issue 8 years ago • 8 comments

Hi, I install the MxNet (build windows update 20170406, 20170406_mxnet_x64_vc14_cpu.7z and vc14 base package) on windows 7 64bit system and anaconda2 (python 2.7)。In python command, I can run "import mxnet as mx", but enter "exit()", the python stopped and can not exit. So, did I miss something? very thanks!

NMC-DAVE avatar Apr 08 '17 08:04 NMC-DAVE

if you run "import mxnet" success,you not loss any thing.and exit() may is some bug.you can run xx.py. it will normal exit

yajiedesign avatar Apr 08 '17 14:04 yajiedesign

Hi yajie, I put the code into xx.py, and it still didn't work. The program output correctly, but stopped forever.

NMC-DAVE avatar Apr 09 '17 01:04 NMC-DAVE

I also encountered this issue. I have tried with 20170125_mxnet_x64_vc12_cpu.7z (v0.9.3), and it was OK. After this release, vc12 version is no longer provided. However, with the vc14 version, python cannot exit successfully (will halt forever) if I import mxnet. It seems there is some bug.

ArtanisCV avatar Jun 06 '17 16:06 ArtanisCV

yes it is bug.No reason has been found yet. I can't reproduce the problem steadily.

yajiedesign avatar Jun 07 '17 01:06 yajiedesign

I have enconter this problem. system:windows server 2008(64 bit) python 2.7.9 anaconda 2.2.0 Using laterest version 20170905_mxnet_x64_vc14_cpu.7z,it also have this bug...

Even in C++,(import the libmxnet.dll and libmxnet.lib from this python version release) ,it also can't exit

xiaozhah avatar Sep 05 '17 04:09 xiaozhah

I have install mxnet by pip, the problem also occurs. System: Windows 7 Python: 2.7.13 miniconda nightly build version

austingg avatar Sep 19 '17 03:09 austingg

@yajiedesign
here are more details:

python -dv hello-mxnet.py (import mxnet as mx)
# cleanup[2] stat
# cleanup[2] cv2.multicalib
# cleanup[2] numpy.lib.format
# cleanup[2] numpy.testing.nosetester
# cleanup[2] cryptography.hazmat.primitives.asymmetric.rsa
# cleanup[2] mxnet.executor_manager
# cleanup[2] mxnet.rnn.rnn_cell
# cleanup[2] cv2.ogl
# cleanup[2] time
# cleanup[2] idna
# cleanup sys
# cleanup __builtin__
# cleanup ints: 1718 unfreed ints
# cleanup floats: 287 unfreed floats
hang up...

I also tried to build mxnet from source, and attach the python repl, when I type exit(), VisualStudio debug window close, seems it believe the python process has exited.

austingg avatar Sep 19 '17 07:09 austingg

not resolve too.

At 2017-09-19 11:38:01, "Yubin Wang" [email protected] wrote:

I have install mxnet by pip, the problem also occurs. System: Windows 7 Python: 2.7.13 miniconda nightly build version

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

NMC-DAVE avatar Sep 19 '17 19:09 NMC-DAVE