2016-10-18 3 views
0

카산드라 3.9 클라이언트 "cqlsh"내 자동 완성 기능에 문제가 있습니다. 왜 그런지 모르겠습니다. MacOS Sierra에서 내 양조 명령을 업데이트했습니다. 나는이 문제가 파이썬 업데이트를위한 것이라고 생각하지만 어떻게 관련이 있는가? 카산드라 자동 완성 기능이 작동하지 않습니다.

나는 시험을 실행하려고 :

$ cd apache-cassandra-3.9/pylib/cqlshlib/test 
$ python test_cqlsh_completion.py 

을하지만 난이 오류가있어 :

Traceback (most recent call last): 
    File "test_cqlsh_completion.py", line 23, in <module> 
    from .basecase import BaseTestCase, cqlsh 
ValueError: Attempted relative import in non-package 

누군가가 어떤 해결책을 알고 있습니까? 내가 디렉토리를 나열하면

는 보여줍니다

$ ls apache-cassandra-3.9/pylib/cqlshlib/test 

__init__.py    basecase.py    
run_cqlsh.py    test_cqlsh_commands.py 
test_cqlsh_invocation.py test_cqlsh_parsing.py  
winpty.py    ansi_colors.py   
cassconnect.py   test_cql_parsing.py  
test_cqlsh_completion.py test_cqlsh_output.py  
test_keyspace_init.cql 

답변

0

이 명령

pip install pyreadline

pyreadline reference에게 pyreadline에게 실행 설치

+0

네, 그 파일을 가지고 있는데,이 명령에 대해 알고있는 "코"로 실행되어야한다고 읽었습니다. – christmo

+0

@christmo 폴더 구조를 보여줄 수 있습니까? – Alex

+0

감사합니다. 원래 게시물을 수정했습니다. – christmo

0

패키지 폴더에 __init__.py이 없습니다

I run this command on

Windows 7 64 bits

Python 2.7.12

관련 문제