Hi Alan A *BadStatusLine* is generally an indication that the remote server has disconnected, normally due to a timeout. Py2neo will usually retry when it sees one of these but the handling isn't bullet-proof and may not work at all under Python 2.6. I don't know about Red Hat either - maybe it provides different versions of Python across those two OS's - would be worth checking.
As a related side note, although the vast majority of the code will work with 2.6 as it stands right now, I'm not supporting Python 2.6 at all going forward - only 2.7 and 3.3. Cheers Nigel On 5 April 2014 21:24, Alan Robertson <al...@unix.sh> wrote: > Hi, > > When I run my tests on CentOS6.4 (python 2.6) I get a BadStatusLine > error. When I run them on CentOS 6.5, they run fine. > > The code is just asking what version of Neo4j we have - and it fails... > This is about the first thing I do with it. The stack traceback is below: > > > fail: tests.cma_test TestCMABasic.test_several_startups > Traceback (most recent call last): > File "./tests/cma_test.py", line 550, in test_several_startups > CMAinit(io, cleanoutdb=True, debug=DEBUG) > File "./cmainit.py", line 60, in __init__ > self.delete_all() > File "./cmainit.py", line 91, in delete_all > dbvers = *self.db.neo4j_version* > File "/usr/lib/python2.6/site-packages/py2neo/neo4j.py", line 798, in > neo4j_version > return version_tuple(self.__metadata__["neo4j_version"]) > File "/usr/lib/python2.6/site-packages/py2neo/neo4j.py", line 338, in > __metadata__ > self.refresh() > File "/usr/lib/python2.6/site-packages/py2neo/neo4j.py", line 360, in > refresh > self._metadata = ResourceMetadata(self._get().content) > File "/usr/lib/python > 2.6/site- > packages/py2neo/neo4j.py", line 365, in _get > product=self._product) > File "/usr/lib/python2.6/site-packages/py2neo/packages/httpstream/http.py", > line 803, in get > return rq.submit(redirect_limit=redirect_limit, **kwargs) > File "/usr/lib/python2.6/site-packages/py2neo/packages/httpstream/http.py", > line 388, in submit > http, rs = submit(self.method, uri, self.body, headers) > File "/usr/lib/python2.6/site-packages/py2neo/packages/httpstream/http.py", > line 288, in submit > response = send() > File "/usr/lib/python2.6/site-packages/py2neo/packages/httpstream/http.py", > line > 284, in s > end > return http.getresponse() > File "/usr/lib64/python2.6/httplib.py", line 990, in getresponse > response.begin() > File "/usr/lib64/python2.6/httplib.py", line 391, in begin > version, status, reason = self._read_status() > File "/usr/lib64/python2.6/httplib.py", line 355, in _read_status > raise BadStatusLine(line) > BadStatusLine > > > What's up with this? Working with RHEL6 seems to be a really good idea... > > -- > Alan Robertson <al...@unix.sh> <al...@unix.sh> - @OSSAlanR > > "Openness is the foundation and preservative of friendship... Let me claim > from you at all times your undisguised opinions." - William Wilberforce > > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.