[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14733233#comment-14733233 ]
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? yes. -->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 setup.py install for python-snappy Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-5yOKl1/python-snappy/setup.py';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 snappy.py -> 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 snappymodule.cc -o build/temp.linux-x86_64-2.7/snappymodule.o snappymodule.cc:31:22: 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'] /usr/lib64/python2.7/site-packages/snappy/__init__.pyc > 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)