[
https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14733312#comment-14733312
]
navithejesh commented on CASSANDRA-10255:
-----------------------------------------
Hi Tyler ,
-->I have checked the some other single node, which has output message for
python -c 'import snappy; print dir(snappy); print snappy._file_'
root@orange-tree:~# python -c 'import snappy; print dir(snappy);print
snappy.__file__'
['CompressError', 'CompressedLengthError', 'InvalidCompressedInputError',
'UncompressError', '__doc__', '__file__', '__name__', '__package__',
'compress', 'decompress', 'isValidCompressed', 'uncompress']
/usr/lib/python2.7/dist-packages/snappy.so
--> Here we see compress and uncompress modules are present. And I checked for
the same in node B and it was found in "/usr/lib64/python2.7/site-packages/". I
moved snappy.py from the "/usr/lib64/python2.7/site-packages/" to
"/usr/lib64/python2.7/site-packages/snappy" directory (snappy installation
directory).
--> After that i checked python -c 'import snappy; print dir(snappy); print
snappy.__file__'
[root@localhost snappy]# python -c 'import snappy; print dir(snappy); print
snappy.__file__'
['CompressError', 'CompressedLengthError', 'InvalidCompressedInputError',
'StreamCompressor', 'StreamDecompressor', 'UncompressError', '_CHUNK_MAX',
'_COMPRESSED_CHUNK', '_COMPRESSION_THRESHOLD', '_IDENTIFIER_CHUNK',
'_RESERVED_SKIPPABLE', '_RESERVED_UNSKIPPABLE', '_STREAM_IDENTIFIER',
'_STREAM_TO_STREAM_BLOCK_SIZE', '_UNCOMPRESSED_CHUNK', '__builtins__',
'__doc__', '__file__', '__name__', '__package__', '_compress', '_crc32c',
'_masked_crc32c', '_uncompress', 'cmdline_main', 'compress', 'decompress',
'isValidCompressed', 'stream_compress', 'stream_decompress', 'struct',
'uncompress']
snappy.pyc
--> we found the compress and related modules all being present.
--> Then i ran ./cqlsh and it ran sucessfully.....No More Errors
Thanks for your support....
> AttributeError: 'module' object has no attribute 'compress'
> ------------------------------------------------------------
>
> Key: CASSANDRA-10255
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10255
> Project: Cassandra
> Issue Type: Bug
> Components: Config, Packaging
> Environment: Linux fedora 21
> Reporter: navithejesh
> Labels: cqlsh
> Fix For: 2.1.x
>
> Attachments: erroe2.jpeg, error.jpeg
>
>
> Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8
> using tarball installation.And i have added one node to existing culster with
> the same version of 2.1.8. All the configuration settings are done but am not
> able to run cqlsh from bin directory.and this is the error
> AttributeError: 'module' object has no attribute 'compress'
> {code}
> ./cqlsh
> Traceback (most recent call last):
> File "./cqlsh", line 111, in <module>
> from cassandra.cluster import Cluster, PagedResult
> File
> "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py",
> line 49, in <module>
> File
> "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py",
> line 88, in <module>
> AttributeError: 'module' object has no attribute 'compress'
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)