TypeError: name must be an instance of basestring
2018-02-27 00:00
1361 查看
摘要: TypeError: name must be an instance of basestring
在Ubuntu下出现分布式爬虫运行不了的情况
话不多说先看图
![](https://static.oschina.net/uploads/space/2018/0227/101604_p769_3298130.png)
![](https://static.oschina.net/uploads/space/2018/0227/101805_hnTA_3298130.png)
首先说一下我的这个出现的原因,主因是我的爬虫项目是在windows7下写的,里面用了MongoDB数据库,但是Ubuntu里面却没有,所以我在settings.py文件里设置的关于MongoDB的所有有关的内容都进行了注释,但pipelines.py的东西还在,所以应该直接将pipelines.py删掉或者进行注释就可以解决。
在Ubuntu下出现分布式爬虫运行不了的情况
话不多说先看图
![](https://static.oschina.net/uploads/space/2018/0227/101604_p769_3298130.png)
![](https://static.oschina.net/uploads/space/2018/0227/101805_hnTA_3298130.png)
首先说一下我的这个出现的原因,主因是我的爬虫项目是在windows7下写的,里面用了MongoDB数据库,但是Ubuntu里面却没有,所以我在settings.py文件里设置的关于MongoDB的所有有关的内容都进行了注释,但pipelines.py的东西还在,所以应该直接将pipelines.py删掉或者进行注释就可以解决。
相关文章推荐
- Pymongo: TypeError: if no direction is specified, key_or_list must be an instance of list
- [BTS] Error biztalk arguments null exception string reference not set to an instance of a string. parameter name
- [Error]No enclosing instance of type XX is accessible. Must qualify the allocation with an e
- [Java]Error:No enclosing instance of type E is accessible. Must qualify the allocation with an enclo
- Name of an object member must be a string
- TypeError: unbound method func1() must be called with base1 instance as first argument (got nothing
- TypeError: super(type, obj): obj must be an instance or subtype of type
- Error:You must write an attribute 'type'='object' after writing the attribute with local name '__type'
- C++ Error : initial value of reference to non-const must be an lvalue
- must be an instance of com.sun错误的解决
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- yii Column name must be either a string or an array.
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing[转]
- TypeError: dist must be a Distribution instance
- TypeError: view must be a callable or a list/tuple in the case of include().解决办法
- TypeError: unbound method x must be called with x instance as first argument (got nothing instead)
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- No exception of type JmsException can be thrown; an exception type must be a subclass of Throwable
- Java编译错误“No enclosing instance of type AA is accessible. Must qualify the allocation with an enclosing instance of type