|||
最近在研究learning to rank算法,然后就找到了一个宝贝:https://github.com/JK-SUN/cikm12-vs-cf-sourcecode
于是我就通过百度网盘把代码数据下载下来,然后在运行时就报了这个错误:
raceback (most recent call last):
File "G:softwareCIKM-SourceCodesourcecodeweighted_KendallTauRank_specialty_degree_sim.py", line 169, in <module>
main('user_user_sim_eachmovie_weight.data')
File "G:softwareCIKM-SourceCodesourcecodeweighted_KendallTauRank_specialty_degree_sim.py", line 119, in main
results=pprocess.pmap(calculate_tf,sequence_tf,limit)
File "G:softwareCIKM-SourceCodesourcecodepprocess.py", line 917, in pmap
mymap = Map(limit=limit)
File "G:softwareCIKM-SourceCodesourcecodepprocess.py", line 675, in __init__
Exchange.__init__(self, *args, **kw)
File "G:softwareCIKM-SourceCodesourcecodepprocess.py", line 277, in __init__
self.poller = select.poll()
AttributeError: 'module' object has no attribute 'poll'
是由select.poll()引起的,经检查才知道这个接口仅限于Unix操作系统,windows上不能用。
http://docs.python.org/2/library/select.html
真是可惜,本以为python在哪个操作系统都能用,看来该用Linux还是要用Linux,拿windows来碰运气纯粹是浪费时间。
找到错误原因了,可以睡而无憾了。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-23 05:25
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社