Python cygwin下的cqlsh失败,没有错误消息

Python cygwin下的cqlsh失败,没有错误消息,python,cassandra,Python,Cassandra,我试图在cygwin下运行cassandra的cqlsh,它退出时不会显示错误: /c/apps/apache-cassandra-2.0.9 >./bin/cqlsh > 它看起来像一个python脚本: #!/bin/sh # -*- mode: Python -*- ... # bash code here; finds a suitable python interpreter and execs this file. # prefer unqualified "py

我试图在cygwin下运行cassandra的cqlsh,它退出时不会显示错误:

/c/apps/apache-cassandra-2.0.9
>./bin/cqlsh

>
它看起来像一个python脚本:

#!/bin/sh
# -*- mode: Python -*-

...

# bash code here; finds a suitable python interpreter and execs this file.
# prefer unqualified "python" if suitable:
python -c 'import sys; sys.exit(not (0x020500b0 < sys.hexversion < 0x03000000))' 2>/dev/null \
    && exec python "$0" "$@"
for pyver in 2.6 2.7 2.5; do
    which python$pyver > /dev/null 2>&1 && exec python$pyver "$0" "$@"
done
echo "No appropriate python interpreter found." >&2
exit 1
":"""
有没有办法判断是否缺少某个python库,或者以某种方式看到一条指示问题所在的错误消息

编辑:

来自bash-x的输出:

>bash -x ./bin/cqlsh
+ :
+ python -c 'import sys; sys.exit(not (0x020500b0 < sys.hexversion < 0x03000000))'
+ exec python ./bin/cqlsh
编辑:

编辑: strace结果:

>strace -o /usr/bin/python ./bin/cqlsh
strace.exe: can't open /usr/bin/python: Permission denied

>ll /usr/bin/python2.7.exe
-rwxr-xr-x 1 dabrans2 Domain Users 7187 Oct  2  2013 /usr/bin/python2.7.exe*

strace -o /usr/bin/python ./bin/cqlsh
strace.exe: can't open /usr/bin/python: Permission denied

之后,我打开浏览器,双击python2.7.exe。Windows说,“C:\sygwin64\bin\python2.7.exe不是有效的Win32应用程序。”但是,双击python3.2m.exe运行正常。也许卸载Python2.7会解决这个问题。

尝试发布
bash-x./bin/cqlsh
@thepaul Done的输出。还打印了sys.hexversion的值。脚本是否因为python版本太新而拒绝执行?如果是这样的话,一条错误消息就好了。:)不,没问题。sys.hexversion==34014704==0x20705f0,这是一个可接受的版本。检查只是确保它不早于2.5.0或晚于Python 3.0。所以这种行为很奇怪。尝试使用python-v./bin/cqlsh?出于某种原因,我希望hexversion将以十六进制打印:好的,收集更多的输出…使用-v,它打印大约100行并退出。主要是导入和注释,但没有错误。我应该分享所有这些吗,还是有什么特别的东西我可以找?
>python -c "import sys; print sys.hexversion"
34014704
>python -v ./bin/cqlsh 2>&1 | grep -v "^#" | grep -v "^import"
Python 2.7.5 (default, Oct  2 2013, 22:34:09)
[GCC 4.8.1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.7/lib-dynload/itertools.dll", 2);
dlopen("/usr/lib/python2.7/lib-dynload/_functools.dll", 2);
dlopen("/usr/lib/python2.7/lib-dynload/_ctypes.dll", 2);
dlopen("/usr/lib/python2.7/lib-dynload/_struct.dll", 2);
>strace -o /usr/bin/python ./bin/cqlsh
strace.exe: can't open /usr/bin/python: Permission denied

>ll /usr/bin/python2.7.exe
-rwxr-xr-x 1 dabrans2 Domain Users 7187 Oct  2  2013 /usr/bin/python2.7.exe*

strace -o /usr/bin/python ./bin/cqlsh
strace.exe: can't open /usr/bin/python: Permission denied