Trigger Install on OSX 10.9

43 views
Skip to first unread message

Brad Egan

unread,
Mar 19, 2014, 10:19:30 AM3/19/14
to trigge...@googlegroups.com
Hi, Really interested in using Trigger for a variety of things.  Right now I have a pressing need to quickly test ACLs and it seems Trigger would be perfect for that.  However, I am unable to install it due to an issue with SimpleParse.  This is not specifically related to Trigger but I was hoping someone here has found a solution already.  Error details are below.  The same thing happens if I try to install SimpleParse manually.

-------

Downloading/unpacking SimpleParse (from trigger)
  Using download cache from /Users/began/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FS%2FSimpleParse%2FSimpleParse-2.1.1.tar.gz
  Running setup.py egg_info for package SimpleParse
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/Users/began/Projects/Envs/trigger/build/SimpleParse/setup.py", line 99, in <module>
        **extraArguments
      File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "build/bdist.macosx-10.9-x86_64/egg/setuptools/dist.py", line 243, in __init__
      File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 287, in __init__
        self.finalize_options()
      File "build/bdist.macosx-10.9-x86_64/egg/setuptools/dist.py", line 275, in finalize_options
      File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2033, in require
        maps = {}
      File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2236, in requires
        """Return the EntryPoint object for `group`+`name`, or ``None``"""
      File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2225, in _dep_map
        try:
      File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 1129, in is_invalid_marker
        Any runs of non-alphanumeric characters are replaced with a single '_',
      File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 1214, in evaluate_marker
        exec script_code in namespace, namespace
    NameError: global name 'parser' is not defined
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/Users/began/Projects/Envs/trigger/build/SimpleParse/setup.py", line 99, in <module>

    **extraArguments

  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup

    _setup_distribution = dist = klass(attrs)

  File "build/bdist.macosx-10.9-x86_64/egg/setuptools/dist.py", line 243, in __init__

  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 287, in __init__

    self.finalize_options()

  File "build/bdist.macosx-10.9-x86_64/egg/setuptools/dist.py", line 275, in finalize_options

  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2033, in require

    maps = {}

  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2236, in requires

    """Return the EntryPoint object for `group`+`name`, or ``None``"""

  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2225, in _dep_map

    try:

  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 1129, in is_invalid_marker

    Any runs of non-alphanumeric characters are replaced with a single '_',

  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 1214, in evaluate_marker

    exec script_code in namespace, namespace

NameError: global name 'parser' is not defined

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/began/Projects/Envs/trigger/build/SimpleParse
Storing complete log in /Users/began/.pip/pip.log

Jathan McCollum

unread,
Mar 19, 2014, 7:35:41 PM3/19/14
to trigge...@googlegroups.com
Hi Brad-

By the looks of it you're using a version of Python compiled using Homebrew? It looks like you're using a virtualenv, too? 

I've not experienced an error like this before. I'd like to help if I can . Can you please try unking your build directory (rm -rf /Users/began/Projects/Envs/trigger/build/) and try pip install again to see if that may help?

Just for comparison, I'm also running Python 2.7.6 on OSX 10.9.2. I just did a fresh install within a virtualenv using "pip install trigger" and did not encounter any problems.

Here is the log for SimpleParse:

  Running setup.py install for SimpleParse
    building 'simpleparse.stt.TextTools.mxTextTools.mxTextTools' extension
    clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMX_BUILDING_MXTEXTTOOLS=1 -Istt/TextTools/mxTextTools -I/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c stt/TextTools/mxTextTools/mxTextTools.c -o build/temp.macosx-10.9-x86_64-2.7/stt/TextTools/mxTextTools/mxTextTools.o
    stt/TextTools/mxTextTools/mxTextTools.c:9:9: warning: 'MX_BUILDING_MXTEXTTOOLS' macro redefined
    #define MX_BUILDING_MXTEXTTOOLS
            ^
    <command line>:2:9: note: previous definition is here
    #define MX_BUILDING_MXTEXTTOOLS 1
            ^
    stt/TextTools/mxTextTools/mxTextTools.c:1089:22: warning: comparison of constant 65536 with expression of type 'Py_UNICODE' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
                if (range_right >= UNICODE_CHARSET_SIZE) {
                    ~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~
    2 warnings generated.
    clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMX_BUILDING_MXTEXTTOOLS=1 -Istt/TextTools/mxTextTools -I/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c stt/TextTools/mxTextTools/mxte.c -o build/temp.macosx-10.9-x86_64-2.7/stt/TextTools/mxTextTools/mxte.o
    clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMX_BUILDING_MXTEXTTOOLS=1 -Istt/TextTools/mxTextTools -I/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c stt/TextTools/mxTextTools/mxbmse.c -o build/temp.macosx-10.9-x86_64-2.7/stt/TextTools/mxTextTools/mxbmse.o
    clang -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.9-x86_64-2.7/stt/TextTools/mxTextTools/mxTextTools.o build/temp.macosx-10.9-x86_64-2.7/stt/TextTools/mxTextTools/mxte.o build/temp.macosx-10.9-x86_64-2.7/stt/TextTools/mxTextTools/mxbmse.o -o build/lib.macosx-10.9-x86_64-2.7/simpleparse/stt/TextTools/mxTextTools/mxTextTools.so

And here are the libraries that were installed:

$ pip freeze
IPy==0.81
SimpleParse==2.1.1
Twisted==13.2.0
pyasn1==0.1.7
pycrypto==2.6.1
pyparsing==1.5.7
pytz==2014.1
redis==2.9.1
trigger==1.4.1
wsgiref==0.1.2
zope.interface==4.1.1




--
You received this message because you are subscribed to the Google Groups "Trigger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trigger-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jathan.
--

Brad Egan

unread,
Mar 19, 2014, 9:21:07 PM3/19/14
to trigge...@googlegroups.com
Oh hey looks like I'm an idiot and needed to sudo pip install...woops :)  I very much appreciate you taking the time to reply.  This post shall reflect the fact that I'm a noob and you sir are one honorable dude.  Thanks!

Jathan McCollum

unread,
Mar 20, 2014, 12:17:04 AM3/20/14
to trigge...@googlegroups.com
Ha!

Glad to help.

I would fix your perms if you're using brew. You shouldn't have to sudo for pip as long as it's in /usr/local!
Reply all
Reply to author
Forward
0 new messages