[prev in list] [next in list] [prev in thread] [next in thread] 

List:       avro-user
Subject:    Re: Python for Avro doesn't build on OS X 10.6.8. Stuck.
From:       Ken Krugler <kkrugler_lists () transpac ! com>
Date:       2011-12-24 1:35:31
Message-ID: 3100EE85-1D98-4D32-BE84-60E17BD3ACED () transpac ! com
[Download RAW message or body]

On Dec 23, 2011, at 4:55pm, Russell Jurney wrote:

> Avro 1.53 doesn't have this issue? Does it use python-snappy?

No - this was (I think) right before Tom committed support for Snappy in Python.

-- Ken

> 
> Russell Jurney
> twitter.com/rjurney
> russell.jurney@gmail.com
> datasyndrome.com
> 
> On Dec 23, 2011, at 7:05 PM, Ken Krugler <kkrugler_lists@transpac.com> wrote:
> 
> > I installed brew, then ran 'brew install snappy', which worked.
> > 
> > But 'sudo python setup.py install' still fails, though with a different problem \
> > (I was getting the same compilation errors as below, now I get a broken pipe \
> > error). 
> > > running install
> > > running bdist_egg
> > > running egg_info
> > > writing requirements to avro.egg-info/requires.txt
> > > writing avro.egg-info/PKG-INFO
> > > writing top-level names to avro.egg-info/top_level.txt
> > > writing dependency_links to avro.egg-info/dependency_links.txt
> > > reading manifest file 'avro.egg-info/SOURCES.txt'
> > > writing manifest file 'avro.egg-info/SOURCES.txt'
> > > installing library code to build/bdist.macosx-10.6-universal/egg
> > > running install_lib
> > > running build_py
> > > creating build/bdist.macosx-10.6-universal/egg
> > > creating build/bdist.macosx-10.6-universal/egg/avro
> > > copying build/lib/avro/__init__.py -> \
> > > build/bdist.macosx-10.6-universal/egg/avro copying build/lib/avro/datafile.py \
> > > -> build/bdist.macosx-10.6-universal/egg/avro copying build/lib/avro/io.py -> \
> > > build/bdist.macosx-10.6-universal/egg/avro copying build/lib/avro/ipc.py -> \
> > > build/bdist.macosx-10.6-universal/egg/avro copying build/lib/avro/protocol.py \
> > > -> build/bdist.macosx-10.6-universal/egg/avro copying build/lib/avro/schema.py \
> > > -> build/bdist.macosx-10.6-universal/egg/avro copying build/lib/avro/tool.py -> \
> > > build/bdist.macosx-10.6-universal/egg/avro copying build/lib/avro/txipc.py -> \
> > > build/bdist.macosx-10.6-universal/egg/avro byte-compiling \
> > > build/bdist.macosx-10.6-universal/egg/avro/__init__.py to __init__.pyc \
> > > byte-compiling build/bdist.macosx-10.6-universal/egg/avro/datafile.py to \
> > > datafile.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/avro/io.py to \
> > > io.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/avro/ipc.py to \
> > > ipc.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/avro/protocol.py \
> > > to protocol.pyc byte-compiling \
> > > build/bdist.macosx-10.6-universal/egg/avro/schema.py to schema.pyc \
> > > byte-compiling build/bdist.macosx-10.6-universal/egg/avro/tool.py to tool.pyc \
> > > byte-compiling build/bdist.macosx-10.6-universal/egg/avro/txipc.py to txipc.pyc \
> > > creating build/bdist.macosx-10.6-universal/egg/EGG-INFO installing scripts to \
> > > build/bdist.macosx-10.6-universal/egg/EGG-INFO/scripts running install_scripts
> > > running build_scripts
> > > creating build/bdist.macosx-10.6-universal/egg/EGG-INFO/scripts
> > > copying build/scripts-2.6/avro -> \
> > > build/bdist.macosx-10.6-universal/egg/EGG-INFO/scripts changing mode of \
> > > build/bdist.macosx-10.6-universal/egg/EGG-INFO/scripts/avro to 755 copying \
> > > avro.egg-info/PKG-INFO -> build/bdist.macosx-10.6-universal/egg/EGG-INFO \
> > > copying avro.egg-info/SOURCES.txt -> \
> > > build/bdist.macosx-10.6-universal/egg/EGG-INFO copying \
> > > avro.egg-info/dependency_links.txt -> \
> > > build/bdist.macosx-10.6-universal/egg/EGG-INFO copying \
> > > avro.egg-info/requires.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO \
> > > copying avro.egg-info/top_level.txt -> \
> > > build/bdist.macosx-10.6-universal/egg/EGG-INFO zip_safe flag not set; analyzing \
> > > archive contents... creating 'dist/avro-1.6.1-py2.6.egg' and adding \
> > > 'build/bdist.macosx-10.6-universal/egg' to it removing \
> > > 'build/bdist.macosx-10.6-universal/egg' (and everything under it) Processing \
> > > avro-1.6.1-py2.6.egg Removing \
> > > /Library/Python/2.6/site-packages/avro-1.6.1-py2.6.egg Copying \
> > > avro-1.6.1-py2.6.egg to /Library/Python/2.6/site-packages avro 1.6.1 is already \
> > > the active version in easy-install.pth Installing avro script to /usr/local/bin
> > > 
> > > Installed /Library/Python/2.6/site-packages/avro-1.6.1-py2.6.egg
> > > Processing dependencies for avro==1.6.1
> > > Searching for python-snappy
> > > Reading http://pypi.python.org/simple/python-snappy/
> > > Reading http://github.com/andrix/python-snappy
> > > Best match: python-snappy 0.3.2
> > > Downloading http://pypi.python.org/packages/source/p/python-snappy/python-snappy-0.3.2.tar.gz#md5=94ec3eb54a780fac3b15a6c141af973f
> > >  Processing python-snappy-0.3.2.tar.gz
> > > Running python-snappy-0.3.2/setup.py -q bdist_egg --dist-dir \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC \
> > > but not for C++ snappymodule.cc:41: warning: ‘_state’ defined but not used
> > > /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler \
> > > (/usr/bin/../libexec/gcc/darwin/ppc/as or \
> > > /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed \
> > >                 Installed assemblers are:
> > > /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
> > > /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
> > > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC \
> > > but not for C++ snappymodule.cc:41: warning: ‘_state’ defined but not used
> > > snappymodule.cc:246: fatal error: error writing to -: Broken pipe
> > > compilation terminated.
> > > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC \
> > > but not for C++ snappymodule.cc:41: warning: ‘_state’ defined but not used
> > > lipo: can't open input file: /var/tmp//cc1RAU1Q.out (No such file or directory)
> > > error: Setup script exited with error: command 'gcc-4.2' failed with exit \
> > > status 1
> > 
> > 
> > Note that I have to run as sudo, otherwise I get:
> > 
> > Installing avro script to /usr/local/bin
> > error: /usr/local/bin/avro: Permission denied
> > 
> > I've added my vote to https://issues.apache.org/jira/browse/AVRO-981, and a \
> > comment about why I think it's good to fix this issue. 
> > In the meantime, we're going to use Avro 1.5.3
> > 
> > Thanks,
> > 
> > -- Ken
> > 
> > On Dec 14, 2011, at 7:07pm, Russell Jurney wrote:
> > 
> > > I installed the snappy macport, and I still can't get snappy-python to build.  \
> > > I'll try switching to brew. 
> > > On Wed, Dec 14, 2011 at 5:46 PM, Joe Crobak <joecrow@gmail.com> wrote:
> > > It appears that the python-snappy library assumes that the snappy library has \
> > > already been installed.  I saw similar errors, but once I installed snappy (I \
> > > use homebrew, so 'brew install snappy') python-snappy installs fine. 
> > > HTH,
> > > Joe
> > > 
> > > 
> > > On Wed, Dec 14, 2011 at 8:23 PM, Russell Jurney <russell.jurney@gmail.com> \
> > > wrote: I am unable to build Avro for Python on OS X 10.6.8 because \
> > > python-snappy fails to build.  Is there a way around this? 
> > > I wrote a post here \
> > > http://datasyndrome.com/post/13707537045/booting-the-analytics-application-events-ruby \
> > > about how to use Avro with Pig and Ruby.  The code is here: \
> > > https://github.com/rjurney/Booting-the-Analytics-Application  I am trying to \
> > > create Python instructions that parallel the Ruby ones.   
> > > I've tried multiple install methods, and I am unable to build snappy-python, so \
> > > the avro build fails.  This is the error message: 
> > > Installed /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/avro-_AVRO_VERSION_-py2.6.egg
> > >  Processing dependencies for avro==-AVRO-VERSION-
> > > Searching for python-snappy
> > > Reading http://pypi.python.org/simple/python-snappy/
> > > Reading http://github.com/andrix/python-snappy
> > > Best match: python-snappy 0.3.2
> > > Downloading http://pypi.python.org/packages/source/p/python-snappy/python-snappy-0.3.2.tar.gz#md5=94ec3eb54a780fac3b15a6c141af973f
> > >  Processing python-snappy-0.3.2.tar.gz
> > > Running python-snappy-0.3.2/setup.py -q bdist_egg --dist-dir \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > >                 \
> > > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC \
> > > but not for C++ snappymodule.cc:31:22: error: snappy-c.h: No such file or \
> > >                 directory
> > > snappymodule.cc: In function ‘PyObject* snappy__compress(PyObject*, \
> > > PyObject*)’: snappymodule.cc:62: error: ‘snappy_status’ was not declared in \
> > > this scope snappymodule.cc:62: error: expected `;' before ‘status’
> > > snappymodule.cc:75: error: ‘snappy_max_compressed_length’ was not declared in \
> > > this scope snappymodule.cc:79: error: ‘status’ was not declared in this scope
> > > snappymodule.cc:79: error: ‘snappy_compress’ was not declared in this scope
> > > snappymodule.cc:81: error: ‘SNAPPY_OK’ was not declared in this scope
> > > snappymodule.cc: In function ‘PyObject* snappy__uncompress(PyObject*, \
> > > PyObject*)’: snappymodule.cc:107: error: ‘snappy_status’ was not declared in \
> > > this scope snappymodule.cc:107: error: expected `;' before ‘status’
> > > snappymodule.cc:120: error: ‘status’ was not declared in this scope
> > > snappymodule.cc:120: error: ‘snappy_uncompressed_length’ was not declared in \
> > > this scope snappymodule.cc:121: error: ‘SNAPPY_OK’ was not declared in this \
> > > scope snappymodule.cc:128: error: ‘snappy_uncompress’ was not declared in this \
> > > scope snappymodule.cc:129: error: ‘SNAPPY_OK’ was not declared in this scope
> > > snappymodule.cc: In function ‘PyObject* \
> > > snappy__is_valid_compressed_buffer(PyObject*, PyObject*)’: snappymodule.cc:151: \
> > > error: ‘snappy_status’ was not declared in this scope snappymodule.cc:151: \
> > > error: expected `;' before ‘status’ snappymodule.cc:156: error: ‘status’ was \
> > > not declared in this scope snappymodule.cc:156: error: \
> > > ‘snappy_validate_compressed_buffer’ was not declared in this scope \
> > >                 snappymodule.cc:157: error: ‘SNAPPY_OK’ was not declared in \
> > >                 this scope
> > > snappymodule.cc: At global scope:
> > > snappymodule.cc:41: warning: ‘_state’ defined but not used
> > > error: Setup script exited with error: command '/usr/bin/gcc-4.2' failed with \
> > >                 exit status 1
> > > -- 
> > 
> > --------------------------
> > Ken Krugler
> > http://www.scaleunlimited.com
> > custom big data solutions & training
> > Hadoop, Cascading, Mahout & Solr
> > 
> > 
> > 
> > 

--------------------------
Ken Krugler
http://www.scaleunlimited.com
custom big data solutions & training
Hadoop, Cascading, Mahout & Solr


[Attachment #3 (unknown)]

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; "><br><div><div>On Dec 23, 2011, at 4:55pm, \
Russell Jurney wrote:</div><br class="Apple-interchange-newline"><blockquote \
type="cite"><div bgcolor="#FFFFFF"><div>Avro 1.53 doesn't have this issue? Does it \
use python-snappy?<br></div></div></blockquote><div><br></div>No - this was (I think) \
right before Tom committed support for Snappy in Python.</div><div><br></div><div>-- \
Ken</div><div><br><blockquote type="cite"><div \
bgcolor="#FFFFFF"><div><br><div>Russell Jurney</div><div><a \
href="http://twitter.com/rjurney">twitter.com/rjurney</a></div><div> <a \
href="mailto:russell.jurney@gmail.com">russell.jurney@gmail.com</a></div><div><a \
href="http://datasyndrome.com/">datasyndrome.com</a></div></div><div><br>On Dec 23, \
2011, at 7:05 PM, Ken Krugler &lt;<a \
href="mailto:kkrugler_lists@transpac.com">kkrugler_lists@transpac.com</a>&gt; \
wrote:<br> <br></div><div></div><blockquote type="cite"><div><div>I installed brew, \
then ran 'brew install snappy', which worked.</div><div><br></div><div>But 'sudo \
python setup.py install' still fails, though with a different problem (I was getting \
the same compilation errors as below, now I get a broken pipe error).</div> \
<div><br></div><div><blockquote type="cite"><div><font \
class="Apple-style-span">running install</font></div><div><font \
class="Apple-style-span">running bdist_egg</font></div><div><font \
class="Apple-style-span">running egg_info</font></div> <div><font \
class="Apple-style-span">writing requirements to \
avro.egg-info/requires.txt</font></div><div><font class="Apple-style-span">writing \
avro.egg-info/PKG-INFO</font></div><div><font class="Apple-style-span">writing \
top-level names to avro.egg-info/top_level.txt</font></div> <div><font \
class="Apple-style-span">writing dependency_links to \
avro.egg-info/dependency_links.txt</font></div><div><font \
class="Apple-style-span">reading manifest file \
'avro.egg-info/SOURCES.txt'</font></div> <div><font class="Apple-style-span">writing \
manifest file 'avro.egg-info/SOURCES.txt'</font></div><div><font \
class="Apple-style-span">installing library code to \
build/bdist.macosx-10.6-universal/egg</font></div> <div><font \
class="Apple-style-span">running install_lib</font></div><div><font \
class="Apple-style-span">running build_py</font></div><div><font \
class="Apple-style-span">creating build/bdist.macosx-10.6-universal/egg</font></div> \
<div><font class="Apple-style-span">creating \
build/bdist.macosx-10.6-universal/egg/avro</font></div><div><font \
class="Apple-style-span">copying build/lib/avro/__init__.py -&gt; \
build/bdist.macosx-10.6-universal/egg/avro</font></div> <div><font \
class="Apple-style-span">copying build/lib/avro/datafile.py -&gt; \
build/bdist.macosx-10.6-universal/egg/avro</font></div><div><font \
class="Apple-style-span">copying build/lib/avro/io.py -&gt; \
build/bdist.macosx-10.6-universal/egg/avro</font></div> <div><font \
class="Apple-style-span">copying build/lib/avro/ipc.py -&gt; \
build/bdist.macosx-10.6-universal/egg/avro</font></div><div><font \
class="Apple-style-span">copying build/lib/avro/protocol.py -&gt; \
build/bdist.macosx-10.6-universal/egg/avro</font></div> <div><font \
class="Apple-style-span">copying build/lib/avro/schema.py -&gt; \
build/bdist.macosx-10.6-universal/egg/avro</font></div><div><font \
class="Apple-style-span">copying build/lib/avro/tool.py -&gt; \
build/bdist.macosx-10.6-universal/egg/avro</font></div> <div><font \
class="Apple-style-span">copying build/lib/avro/txipc.py -&gt; \
build/bdist.macosx-10.6-universal/egg/avro</font></div><div><font \
class="Apple-style-span">byte-compiling \
build/bdist.macosx-10.6-universal/egg/avro/__init__.py to __init__.pyc</font></div> \
<div><font class="Apple-style-span">byte-compiling \
build/bdist.macosx-10.6-universal/egg/avro/datafile.py to \
datafile.pyc</font></div><div><font class="Apple-style-span">byte-compiling \
build/bdist.macosx-10.6-universal/egg/avro/io.py to io.pyc</font></div> <div><font \
class="Apple-style-span">byte-compiling \
build/bdist.macosx-10.6-universal/egg/avro/ipc.py to ipc.pyc</font></div><div><font \
class="Apple-style-span">byte-compiling \
build/bdist.macosx-10.6-universal/egg/avro/protocol.py to protocol.pyc</font></div> \
<div><font class="Apple-style-span">byte-compiling \
build/bdist.macosx-10.6-universal/egg/avro/schema.py to \
schema.pyc</font></div><div><font class="Apple-style-span">byte-compiling \
build/bdist.macosx-10.6-universal/egg/avro/tool.py to tool.pyc</font></div> \
<div><font class="Apple-style-span">byte-compiling \
build/bdist.macosx-10.6-universal/egg/avro/txipc.py to \
txipc.pyc</font></div><div><font class="Apple-style-span">creating \
build/bdist.macosx-10.6-universal/egg/EGG-INFO</font></div> <div><font \
class="Apple-style-span">installing scripts to \
build/bdist.macosx-10.6-universal/egg/EGG-INFO/scripts</font></div><div><font \
class="Apple-style-span">running install_scripts</font></div> <div><font \
class="Apple-style-span">running build_scripts</font></div><div><font \
class="Apple-style-span">creating \
build/bdist.macosx-10.6-universal/egg/EGG-INFO/scripts</font></div><div><font \
class="Apple-style-span">copying build/scripts-2.6/avro -&gt; \
build/bdist.macosx-10.6-universal/egg/EGG-INFO/scripts</font></div> <div><font \
class="Apple-style-span">changing mode of \
build/bdist.macosx-10.6-universal/egg/EGG-INFO/scripts/avro to \
755</font></div><div><font class="Apple-style-span">copying avro.egg-info/PKG-INFO \
-&gt; build/bdist.macosx-10.6-universal/egg/EGG-INFO</font></div> <div><font \
class="Apple-style-span">copying avro.egg-info/SOURCES.txt -&gt; \
build/bdist.macosx-10.6-universal/egg/EGG-INFO</font></div><div><font \
class="Apple-style-span">copying avro.egg-info/dependency_links.txt -&gt; \
build/bdist.macosx-10.6-universal/egg/EGG-INFO</font></div> <div><font \
class="Apple-style-span">copying avro.egg-info/requires.txt -&gt; \
build/bdist.macosx-10.6-universal/egg/EGG-INFO</font></div><div><font \
class="Apple-style-span">copying avro.egg-info/top_level.txt -&gt; \
build/bdist.macosx-10.6-universal/egg/EGG-INFO</font></div> <div><font \
class="Apple-style-span">zip_safe flag not set; analyzing archive \
contents...</font></div><div><font class="Apple-style-span">creating \
'dist/avro-1.6.1-py2.6.egg' and adding 'build/bdist.macosx-10.6-universal/egg' to \
it</font></div> <div><font class="Apple-style-span">removing \
'build/bdist.macosx-10.6-universal/egg' (and everything under \
it)</font></div><div><font class="Apple-style-span">Processing \
avro-1.6.1-py2.6.egg</font></div> <div><font class="Apple-style-span">Removing \
/Library/Python/2.6/site-packages/avro-1.6.1-py2.6.egg</font></div><div><font \
class="Apple-style-span">Copying avro-1.6.1-py2.6.egg to \
/Library/Python/2.6/site-packages</font></div> <div><font \
class="Apple-style-span">avro 1.6.1 is already the active version in \
easy-install.pth</font></div><div><font class="Apple-style-span">Installing avro \
script to /usr/local/bin</font></div> <div><font \
class="Apple-style-span"><br></font></div><div><font \
class="Apple-style-span">Installed \
/Library/Python/2.6/site-packages/avro-1.6.1-py2.6.egg</font></div><div><font \
class="Apple-style-span">Processing dependencies for avro==1.6.1</font></div> \
<div><font class="Apple-style-span">Searching for \
python-snappy</font></div><div><font class="Apple-style-span">Reading <a \
href="http://pypi.python.org/simple/python-snappy/">http://pypi.python.org/simple/python-snappy/</a></font></div>
 <div><font class="Apple-style-span">Reading <a \
href="http://github.com/andrix/python-snappy">http://github.com/andrix/python-snappy</a></font></div><div><font \
class="Apple-style-span">Best match: python-snappy 0.3.2</font></div> <div><font \
class="Apple-style-span">Downloading <a \
href="http://pypi.python.org/packages/source/p/python-snappy/python-snappy-0.3.2.tar.g \
z#md5=94ec3eb54a780fac3b15a6c141af973f">http://pypi.python.org/packages/source/p/pytho \
n-snappy/python-snappy-0.3.2.tar.gz#md5=94ec3eb54a780fac3b15a6c141af973f</a></font></div>
 <div><font class="Apple-style-span">Processing \
python-snappy-0.3.2.tar.gz</font></div><div><font class="Apple-style-span">Running \
python-snappy-0.3.2/setup.py -q bdist_egg --dist-dir \
/tmp/easy_install-jARda8/python-snappy-0.3.2/egg-dist-tmp-DDcMTW</font></div> \
<div><font class="Apple-style-span">cc1plus: warning: command line option \
"-Wstrict-prototypes" is valid for C/ObjC but not for C++</font></div><div><font \
class="Apple-style-span">snappymodule.cc:41: warning: ‘_state’ defined but not \
used</font></div> <div><font \
class="Apple-style-span">/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler \
(/usr/bin/../libexec/gcc/darwin/ppc/as or \
/usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not \
installed</font></div> <div><font class="Apple-style-span">Installed assemblers \
are:</font></div><div><font \
class="Apple-style-span">/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture \
x86_64</font></div><div> <font \
class="Apple-style-span">/usr/bin/../libexec/gcc/darwin/i386/as for architecture \
i386</font></div><div><font class="Apple-style-span">cc1plus: warning: command line \
option "-Wstrict-prototypes" is valid for C/ObjC but not for C++</font></div> \
<div><font class="Apple-style-span">snappymodule.cc:41: warning: ‘_state’ defined but \
not used</font></div><div><font class="Apple-style-span">snappymodule.cc:246: fatal \
error: error writing to -: Broken pipe</font></div> <div><font \
class="Apple-style-span">compilation terminated.</font></div><div><font \
class="Apple-style-span">cc1plus: warning: command line option "-Wstrict-prototypes" \
is valid for C/ObjC but not for C++</font></div> <div><font \
class="Apple-style-span">snappymodule.cc:41: warning: ‘_state’ defined but not \
used</font></div><div><font class="Apple-style-span">lipo: can't open input file: \
/var/tmp//cc1RAU1Q.out (No such file or directory)</font></div> <div><font \
class="Apple-style-span">error: Setup script exited with error: command 'gcc-4.2' \
failed with exit status \
1</font></div></blockquote></div><div><div><br></div></div><div>Note that I have to \
run as sudo, otherwise I get:</div> <div><br></div><div><div>Installing avro script \
to /usr/local/bin</div><div>error: /usr/local/bin/avro: Permission \
denied</div><div><br></div><div>I've added my vote to&nbsp;<a \
href="https://issues.apache.org/jira/browse/AVRO-981">https://issues.apache.org/jira/browse/AVRO-981</a>, \
and a comment about why I think it's good to fix this issue.</div> \
<div><br></div><div>In the meantime, we're going to use Avro \
1.5.3</div><div><br></div><div>Thanks,</div><div><br></div><div>-- \
Ken</div><div><br></div><div><div>On Dec 14, 2011, at 7:07pm, Russell Jurney \
wrote:</div> <br class="Apple-interchange-newline"><blockquote type="cite">I \
installed the snappy macport, and I still can't get snappy-python to build. \
&nbsp;I'll try switching to brew.<div><div><br><div class="gmail_quote">On Wed, Dec \
14, 2011 at 5:46 PM, Joe Crobak <span dir="ltr">&lt;<a \
href="mailto:joecrow@gmail.com">joecrow@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left \
-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">It \
appears that the python-snappy library assumes that the snappy library has already \
been installed. &nbsp;I saw similar errors, but once I installed snappy (I use \
homebrew, so 'brew install snappy') python-snappy installs fine.<div>


<br></div><div>HTH,</div><div>Joe<div><div class="h5"><br><br><div \
class="gmail_quote">On Wed, Dec 14, 2011 at 8:23 PM, Russell Jurney <span \
dir="ltr">&lt;<a href="mailto:russell.jurney@gmail.com" \
target="_blank">russell.jurney@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left \
-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>I \
am unable to build Avro for Python on OS X 10.6.8 because python-snappy fails to \
build. &nbsp;Is there a way around this?</div>


<div><br></div><div>I wrote a post here&nbsp;<a \
href="http://datasyndrome.com/post/13707537045/booting-the-analytics-application-events-ruby" \
target="_blank">http://datasyndrome.com/post/13707537045/booting-the-analytics-application-events-ruby</a> \
about how to use Avro with Pig and Ruby. &nbsp;The code is here:&nbsp;<a \
href="https://github.com/rjurney/Booting-the-Analytics-Application" \
target="_blank">https://github.com/rjurney/Booting-the-Analytics-Application</a> \
&nbsp;I am trying to create Python instructions that parallel the Ruby ones. \
&nbsp;</div>



<div><br></div><div>I've tried multiple install methods, and I am unable to build \
snappy-python, so the avro build fails. &nbsp;This is the error \
message:</div><div><br></div><blockquote style="margin:0 0 0 \
40px;border:none;padding:0px">



<div><div>Installed /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/avro-_AVRO_VERSION_-py2.6.egg</div><div>Processing \
dependencies for avro==-AVRO-VERSION-</div><div>Searching for python-snappy</div>



<div>Reading <a href="http://pypi.python.org/simple/python-snappy/" \
target="_blank">http://pypi.python.org/simple/python-snappy/</a></div><div>Reading <a \
href="http://github.com/andrix/python-snappy" \
target="_blank">http://github.com/andrix/python-snappy</a></div>



<div>Best match: python-snappy 0.3.2</div><div>Downloading <a \
href="http://pypi.python.org/packages/source/p/python-snappy/python-snappy-0.3.2.tar.gz#md5=94ec3eb54a780fac3b15a6c141af973f" \
target="_blank">http://pypi.python.org/packages/source/p/python-snappy/python-snappy-0.3.2.tar.gz#md5=94ec3eb54a780fac3b15a6c141af973f</a></div>




<div>Processing python-snappy-0.3.2.tar.gz</div><div>Running \
python-snappy-0.3.2/setup.py -q bdist_egg --dist-dir \
/tmp/easy_install-0KEFAv/python-snappy-0.3.2/egg-dist-tmp-1BPj3j</div><div>cc1plus: \
warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for \
C++</div>



<div>snappymodule.cc:31:22: error: snappy-c.h: No such file or \
directory</div><div>snappymodule.cc: In function ‘PyObject* \
snappy__compress(PyObject*, PyObject*)’:</div><div>snappymodule.cc:62: error: \
‘snappy_status’ was not declared in this scope</div>



<div>snappymodule.cc:62: error: expected `;' before \
‘status’</div><div>snappymodule.cc:75: error: ‘snappy_max_compressed_length’ was not \
declared in this scope</div><div>snappymodule.cc:79: error: ‘status’ was not declared \
in this scope</div>



<div>snappymodule.cc:79: error: ‘snappy_compress’ was not declared in this \
scope</div><div>snappymodule.cc:81: error: ‘SNAPPY_OK’ was not declared in this \
scope</div><div>snappymodule.cc: In function ‘PyObject* snappy__uncompress(PyObject*, \
PyObject*)’:</div>



<div>snappymodule.cc:107: error: ‘snappy_status’ was not declared in this \
scope</div><div>snappymodule.cc:107: error: expected `;' before \
‘status’</div><div>snappymodule.cc:120: error: ‘status’ was not declared in this \
scope</div>



<div>snappymodule.cc:120: error: ‘snappy_uncompressed_length’ was not declared in \
this scope</div><div>snappymodule.cc:121: error: ‘SNAPPY_OK’ was not declared in this \
scope</div><div>snappymodule.cc:128: error: ‘snappy_uncompress’ was not declared in \
this scope</div>



<div>snappymodule.cc:129: error: ‘SNAPPY_OK’ was not declared in this \
scope</div><div>snappymodule.cc: In function ‘PyObject* \
snappy__is_valid_compressed_buffer(PyObject*, \
PyObject*)’:</div><div>snappymodule.cc:151: error: ‘snappy_status’ was not declared \
in this scope</div>



<div>snappymodule.cc:151: error: expected `;' before \
‘status’</div><div>snappymodule.cc:156: error: ‘status’ was not declared in this \
scope</div><div>snappymodule.cc:156: error: ‘snappy_validate_compressed_buffer’ was \
not declared in this scope</div>



<div>snappymodule.cc:157: error: ‘SNAPPY_OK’ was not declared in this \
scope</div><div>snappymodule.cc: At global scope:</div><div>snappymodule.cc:41: \
warning: ‘_state’ defined but not used</div><div>error: Setup script exited with \
error: command '/usr/bin/gcc-4.2' failed with exit status 1</div>


<span><font color="#888888">
</font></span></div></blockquote><span><font color="#888888">-- \
<br></font></span></blockquote></div></div></div></div></blockquote></div></div></div></blockquote></div><br><div>
 <span class="Apple-style-span" style="border-collapse: separate; font-family: \
Helvetica; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: \
0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium; \
"><span class="Apple-style-span" style="border-collapse: separate; font-family: \
Helvetica; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; font-size: medium; "><div \
style="word-wrap:break-word"> <span class="Apple-style-span" style="border-collapse: \
separate; font-family: Helvetica; font-size: medium; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; "><div style="word-wrap:break-word"> <span class="Apple-style-span" \
style="border-collapse: separate; font-family: Helvetica; font-size: medium; \
font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: \
normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; "><div style="word-wrap:break-word"> <span \
class="Apple-style-span" style="border-collapse: separate; font-family: Monaco; \
font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; "><div style="word-wrap:break-word"> <span \
class="Apple-style-span" style="border-collapse: separate; font-family: Monaco; \
font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; "><div style="word-wrap:break-word"> \
<div><span class="Apple-style-span" \
style="font-family:Helvetica"><div>--------------------------</div><div>Ken \
Krugler</div><div><div style="word-wrap:break-word"><span class="Apple-style-span" \
style="border-collapse: separate; font-family: Helvetica; font-size: medium; \
font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: \
normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; "><div style="word-wrap:break-word"> <span \
class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; \
font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; "><div style="word-wrap:break-word"> <span \
class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; \
font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; "><div style="word-wrap:break-word"> <div><a \
href="http://www.scaleunlimited.com/">http://www.scaleunlimited.com</a></div><div>custom \
big data solutions &amp; training</div><div>Hadoop, Cascading, Mahout &amp; \
Solr</div></div></span></div></span></div></span></div> <br \
class="Apple-interchange-newline"></div></span></div></div></span></div></span></div></span></div></span></div></span><br \
class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> \
</div>

<br></div></div></blockquote></div>
</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); \
font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: \
normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: \
-webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; \
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; \
"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, \
0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: \
normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: \
break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span \
class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; \
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: \
0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; \
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span \
class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; \
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: \
0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; \
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span \
class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); \
font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; \
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: \
0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; \
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span \
class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); \
font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; \
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: \
0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; \
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span \
class="Apple-style-span" style="font-family: Helvetica; \
"><div>--------------------------</div><div>Ken Krugler</div><div><div \
style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; \
color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; \
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div \
style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; \
color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; \
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div \
style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; \
color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; \
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div \
style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; "><div><a \
href="http://www.scaleunlimited.com">http://www.scaleunlimited.com</a></div><div>custom \
big data solutions &amp; training</div><div>Hadoop, Cascading, Mahout &amp; \
Solr</div></div></span></div></span></div></span></div><br \
class="Apple-interchange-newline"></div></span></div></div></span></div></span></div></span></div></span></div></span><br \
class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> \
</div>

<br></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic