python调用出错了,是什么问题?
Traceback(mostrecentcalllast):File"generalCrawler.py",line251,in<module>main()File"ge...
Traceback (most recent call last):
File "generalCrawler.py", line 251, in <module>
main()
File "generalCrawler.py", line 243, in main
GeneralCrawler().run()
File "generalCrawler.py", line 198, in run
self.dump_json(args.config)
File "generalCrawler.py", line 218, in dump_json
open_and_write("%s/%s.json"%(pathname, module_name), json.dumps(json_module.json_code))
File "/home/yulore/Crawler/generalcrawler/crawler/util.py", line 14, in open_and_write
f=codecs.open(fname,'w','utf-8')
File "/usr/local/lib/python2.7/codecs.py", line 878, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied: 'mode/config_npcgas-g.json' 展开
File "generalCrawler.py", line 251, in <module>
main()
File "generalCrawler.py", line 243, in main
GeneralCrawler().run()
File "generalCrawler.py", line 198, in run
self.dump_json(args.config)
File "generalCrawler.py", line 218, in dump_json
open_and_write("%s/%s.json"%(pathname, module_name), json.dumps(json_module.json_code))
File "/home/yulore/Crawler/generalcrawler/crawler/util.py", line 14, in open_and_write
f=codecs.open(fname,'w','utf-8')
File "/usr/local/lib/python2.7/codecs.py", line 878, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied: 'mode/config_npcgas-g.json' 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询