CS224n-solutions icon indicating copy to clipboard operation
CS224n-solutions copied to clipboard

code bug?

Open ShenBoxiao opened this issue 7 years ago • 2 comments

When I run the q1_window.py in the assignment3, it would show an error as follows.

File "D:\Anaconda3\envs\tensorflow_gpu\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile execfile(filename, namespace)

File "D:\Anaconda3\envs\tensorflow_gpu\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "D:/Program Files/Python Project/CS224N/CS224n-solutions-master/Assigment 3/assignment3/q1_window.py", line 519, in if ARGS.func is None:

AttributeError: 'Namespace' object has no attribute 'func'

How can I correct it?

ShenBoxiao avatar Jan 02 '18 14:01 ShenBoxiao

Hi, Boxiao.

I have also searched for solutions on this issues today. It took me over half of an hour to figure out, you should try using terminal/bash/cmd to run 'python q1_window.py test1' instead just compiling it in IDE.

q_1.log

hansen7 avatar Jul 05 '18 08:07 hansen7

image

hansen7 avatar Jul 05 '18 08:07 hansen7