[ 
https://issues.apache.org/jira/browse/CASSANDRA-12314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421969#comment-15421969
 ] 

Stefania commented on CASSANDRA-12314:
--------------------------------------

This doesn't work because 2.1 cqlsh embeds an old version of the driver (2.7.2) 
and so cqlsh.py must work with the old API, which is not compatible with the 
driver 3.0.0+ API. The cqlshlib tests in 2.1 will copy cqlsh.py to the test 
folder and then try to run it with the installed version of the driver, which 
I'm guessing is the latest from the cassandra-test branch?

We can either try installing driver version 2.7.2 for the 2.1 cqlsh jobs, 
branch name is  2.7.2-cassandra-2.1, but that would cause problems to the 
dtests I believe, so I would simply modify the 2.1 job to skip cqlshlib tests. 

> dtest failure in nose.failure.Failure.runTest
> ---------------------------------------------
>
>                 Key: CASSANDRA-12314
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12314
>             Project: Cassandra
>          Issue Type: Test
>            Reporter: Sean McCarthy
>            Assignee: DS Test Eng
>              Labels: dtest
>
> example failure:
> http://cassci.datastax.com/job/cassandra-2.1_cqlsh_tests/17/testReport/nose.failure/Failure/runTest
> {code}
> Stack Trace
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/unittest/case.py", line 329, in run
>     testMethod()
>   File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 418, in 
> loadTestsFromName
>     addr.filename, addr.module)
>   File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47, in 
> importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94, in 
> importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/home/automaton/cassandra/pylib/cqlshlib/test/__init__.py", line 17, 
> in <module>
>     from .cassconnect import create_test_db, remove_test_db
>   File "/home/automaton/cassandra/pylib/cqlshlib/test/cassconnect.py", line 
> 22, in <module>
>     from .basecase import cql, cqlsh, cqlshlog, TEST_HOST, TEST_PORT, rundir
>   File "/home/automaton/cassandra/pylib/cqlshlib/test/basecase.py", line 46, 
> in <module>
>     import cqlsh
>   File "/home/automaton/cassandra/pylib/cqlshlib/test/cqlsh.py", line 109, in 
> <module>
>     from cassandra.cluster import Cluster, PagedResult
> ImportError: cannot import name PagedResult
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to