booz-allen-hamilton / DSB3Tutorial

384 stars 197 forks source link

classify_nodes.py - Attribute Error: 'list' object has no attribute 'read' #16

Open Bananaboy99 opened 7 years ago

Bananaboy99 commented 7 years ago

Hey,

I got a problem running the clasify_nodes.py script. I get the Error down below and if I try to use the nodules.npy directly, I cannot find it. Where is the nodules.npy file? Why do I get this Error? Thx for your help.

/usr/lib64/python3.4/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.", DeprecationWarning) Traceback (most recent call last): File "classify_nodes.py", line 144, in <module> getRegionMetricRow(argv[1:]) File "classify_nodes.py", line 22, in getRegionMetricRow seg = np.load(fname) File "/usr/lib64/python3.4/site-packages/numpy/lib/npyio.py", line 402, in load magic = fid.read(N) AttributeError: 'list' object has no attribute 'read'

hassanimam1 commented 7 years ago

Hey I get the same error (unfortunately).... I hope it has been solved by now... please if anyone could help...

qxyjyj commented 6 years ago

@Bananaboy99 I get the same error. Have you solved it?

lz666win commented 6 years ago

I have the same error,how can I got nodules.npy

aszhanghuali commented 5 years ago

I get the same error. Have you solved it?

我有同样的错误,我怎么能得到结节。 I get the same error. Have you solved it?

aszhanghuali commented 5 years ago

@Bananaboy99 Hi! I get the same error. Have you solved it?

aszhanghuali commented 5 years ago

@qxyjyj Hi! I get the same error. Have you solved it?Thanks

qxyjyj commented 5 years ago

Sorry, I have not solved it. So I abandoned that approach. On 1/5/2019 19:34,aszhanghualinotifications@github.com wrote:

@Bananaboy99 Hi! I get the same error. Have you solved it?

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