Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5406A1000A for ; Mon, 7 Sep 2015 04:10:46 +0000 (UTC) Received: (qmail 13487 invoked by uid 500); 7 Sep 2015 04:10:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 13252 invoked by uid 500); 7 Sep 2015 04:10:45 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 13113 invoked by uid 99); 7 Sep 2015 04:10:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2015 04:10:45 +0000 Date: Mon, 7 Sep 2015 04:10:45 +0000 (UTC) From: "navithejesh (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D14733233#comment-14733233 ]=20 navithejesh commented on CASSANDRA-10255: ----------------------------------------- -->After you installed python-snappy on node B, did the error remain the sa= me?=20 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, tok= enize;__file__=3D'/tmp/pip-build-5yOKl1/python-snappy/setup.py';exec(compil= e(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), _= _file__, 'exec'))" install --record /tmp/pip-moLktZ-record/install-record.t= xt --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=3Dformat-s= ecurity -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --p= aram=3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric -D_G= NU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=3Dformat-securi= ty -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --param= =3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric -D_GNU_S= OURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c snappymodule.cc -o bu= ild/temp.linux-x86_64-2.7/snappymodule.o snappymodule.cc:31:22: fatal error: snappy-c.h: No such file or directo= ry #include ^ compilation terminated. error: command 'gcc' failed with exit status 1 =20 --> 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 sn= appy.__file__' ['AbelianGroup', 'AlternatingKnotExteriors', 'CensusKnots', 'Crossing', 'Cu= spNeighborhood', 'CuspNeighborhoodHP', 'CyOpenGL', 'DTcodec', 'DirichletDom= ain', 'DirichletDomainHP', 'FXrays', 'FundamentalGroup', 'HTLinkExteriors',= 'HolonomyGroup', 'HolonomyGroupHP', 'IdentityBraid', 'InfinityTangle', 'Li= nk', 'LinkExteriors', 'Manifold', 'ManifoldHP', 'NonalternatingKnotExterior= s', 'NonorientableClosedCensus', 'NonorientableCuspedCensus', 'OrientableCl= osedCensus', 'OrientableCuspedCensus', 'RationalTangle', 'SnapPeaFatalError= ', 'SnapPy', 'SnapPyHP', 'SnapPy_doc', 'Strand', 'SymmetryGroup', 'Tangle',= 'Triangulation', 'TriangulationHP', 'ZeroTangle', '_ManifoldHP', '_Manifol= dLP', '_TriangulationHP', '_TriangulationLP', '__all__', '__builtins__', '_= _doc__', '__file__', '__name__', '__package__', '__path__', '__version__', = '_link_exterior', '_within_sage', 'app_menus', 'browser', 'canonical_retria= ngulation', 'database', 'database_objects', 'db_utilities', 'filedialog', '= horoviewer', 'infodialog', 'isometry_signature', 'link_objects', 'manifolds= ', 'method', 'mfld_class', 'number', 'pari', 'polyviewer', 'ptolemy', 'rele= ase_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'=20 > ------------------------------------------------------------ > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1025= 5 > 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 bu= t 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 > 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/clus= ter.py", line 49, in > 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/con= nection.py", line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)