Using scrapyd to deploy scrapy, run the scrapyd - deploy localhost - p test and always report the error of "environment can only contain strings" -


os: win7 x64bit
scrapy: 1.4.0
python: 2.7.13,
anaconda: 4.4

the scrapyd debug is:

f:\python_work\test_scrapy\src>scrapyd 2017-08-18t10:49:07+0800 [-] loading d:\anaconda2\lib\site-packages\scrapyd\txapp.py... 2017-08-18t10:49:09+0800 [-] scrapyd web console available @ http://127.0.0.1:6800/ 2017-08-18t10:49:09+0800 [-] loaded. 2017-08-18t10:49:09+0800 [twisted.application.app.applogger#info] twistd 17.5.0 (d:\anaconda2\pyth .exe 2.7.13) starting up. 2017-08-18t10:49:09+0800 [twisted.application.app.applogger#info] reactor class: twisted.internet. lectreactor.selectreactor. 2017-08-18t10:49:09+0800 [-] site starting on 6800 2017-08-18t10:49:09+0800 [twisted.web.server.site#info] starting factory <twisted.web.server.site stance @ 0x0000000003972cc8> 2017-08-18t10:49:09+0800 [launcher] scrapyd 1.2.0 started: max_proc=32, runner=u'scrapyd.runner' 2017-08-18t10:49:24+0800 [_generichttpchannelprotocol,0,127.0.0.1] unhandled error         traceback (most recent call last):           file "d:\anaconda2\lib\site-packages\twisted\web\http.py", line 2059, in allcontentrecei d             req.requestreceived(command, path, version)           file "d:\anaconda2\lib\site-packages\twisted\web\http.py", line 869, in requestreceived             self.process()           file "d:\anaconda2\lib\site-packages\twisted\web\server.py", line 184, in process             self.render(resrc)           file "d:\anaconda2\lib\site-packages\twisted\web\server.py", line 235, in render             body = resrc.render(self)         --- <exception caught here> ---           file "d:\anaconda2\lib\site-packages\scrapyd\webservice.py", line 21, in render             return jsonresource.render(self, txrequest).encode('utf-8')           file "d:\anaconda2\lib\site-packages\scrapyd\utils.py", line 20, in render             r = resource.resource.render(self, txrequest)           file "d:\anaconda2\lib\site-packages\twisted\web\resource.py", line 250, in render             return m(request)           file "d:\anaconda2\lib\site-packages\scrapyd\webservice.py", line 86, in render_post             spiders = get_spider_list(project, version=version)           file "d:\anaconda2\lib\site-packages\scrapyd\utils.py", line 132, in get_spider_list             proc = popen(pargs, stdout=pipe, stderr=pipe, env=env)           file "d:\anaconda2\lib\subprocess.py", line 390, in __init__             errread, errwrite)           file "d:\anaconda2\lib\subprocess.py", line 640, in _execute_child             startupinfo)         exceptions.typeerror: environment can contain strings 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -