cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "navithejesh (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
Date Mon, 07 Sep 2015 04:10:45 GMT


navithejesh commented on CASSANDRA-10255:

-->After you installed python-snappy on node B, did the error remain the same? 
Yes the error remain same even after installing snappy using pip.

-->Did you install snappy with pip?

-->If so, were there any errors during the installation?
   Yes,There was an error while installing snappy.

     [root@localhost bin]# pip install python-snappy
Collecting python-snappy
  Using cached python-snappy-0.5.tar.gz
Installing collected packages: python-snappy
  Running install for python-snappy
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-5yOKl1/python-snappy/';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record
/tmp/pip-moLktZ-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying -> build/lib.linux-x86_64-2.7
    running build_ext
    building '_snappy' extension
    creating build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64
-mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c
-o build/temp.linux-x86_64-2.7/snappymodule.o fatal error: snappy-c.h: No such file or directory
     #include <snappy-c.h>
    compilation terminated.
    error: command 'gcc' failed with exit status 1
--> Then i installed snappy-master manually and after that i didn't get any errors while
installing python-snappy.

-->Can you run the following and paste the results?

python -c 'import snappy; print dir(snappy); print snappy.__file__' ?

This was the message shown by python -c 'import snappy; print dir(snappy); print snappy.__file__'

[root@localhost bin]# python -c 'import snappy; print dir(snappy); print snappy.__file__'
['AbelianGroup', 'AlternatingKnotExteriors', 'CensusKnots', 'Crossing', 'CuspNeighborhood',
'CuspNeighborhoodHP', 'CyOpenGL', 'DTcodec', 'DirichletDomain', 'DirichletDomainHP', 'FXrays',
'FundamentalGroup', 'HTLinkExteriors', 'HolonomyGroup', 'HolonomyGroupHP', 'IdentityBraid',
'InfinityTangle', 'Link', 'LinkExteriors', 'Manifold', 'ManifoldHP', 'NonalternatingKnotExteriors',
'NonorientableClosedCensus', 'NonorientableCuspedCensus', 'OrientableClosedCensus', 'OrientableCuspedCensus',
'RationalTangle', 'SnapPeaFatalError', 'SnapPy', 'SnapPyHP', 'SnapPy_doc', 'Strand', 'SymmetryGroup',
'Tangle', 'Triangulation', 'TriangulationHP', 'ZeroTangle', '_ManifoldHP', '_ManifoldLP',
'_TriangulationHP', '_TriangulationLP', '__all__', '__builtins__', '__doc__', '__file__',
'__name__', '__package__', '__path__', '__version__', '_link_exterior', '_within_sage', 'app_menus',
'browser', 'canonical_retriangulation', 'database', 'database_objects', 'db_utilities', 'filedialog',
'horoviewer', 'infodialog', 'isometry_signature', 'link_objects', 'manifolds', 'method', 'mfld_class',
'number', 'pari', 'polyviewer', 'ptolemy', 'release_info', 'sage_helper', 'snap', 'snappy',
'theme', 'twister', 'verify', 'version']

> AttributeError: 'module' object has no attribute 'compress' 
> ------------------------------------------------------------
>                 Key: CASSANDRA-10255
>                 URL:
>             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/",
line 49, in <module>
>  File "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/",
line 88, in <module>
> AttributeError: 'module' object has no attribute 'compress'
> {code}

This message was sent by Atlassian JIRA

View raw message