Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

Build fails, Python 2.5.2

#6

Build fails, Python 2.5.2:


$ python setup.py build
Traceback (most recent call last):
  File "setup.py", line 105, in <module>
    **platform_config()
  File "setup.py", line 48, in platform_config
    config = nspr_config()
  File "setup.py", line 41, in nspr_config
    ret[prfx[b[:2]]].append(b[2:])
KeyError: '-W'

Reported by Eric Hanson · April 4th, 2009 @ 09:46 PM

State: resolved
Milestone: none
Assigned to: Paul J. Davis Paul J. Davis

Activity

  1. Paul J. Davis
    Paul J. Davis
    • State changed from new to open

    (from [e5ae70c015ff0d6b3142018e2f90af788e08d9da]) Patch for ticket #6 Build fails, Python 2.5.2.

    setup.py was failing to parse nspr-config output. This should fix for at least the error that was reported.

    [#6 Build fails, Python 2.5.2 state:open] http://github.com/davisp/python-...

    April 4th, 2009 @ 10:04 PM

  2. Paul J. Davis
    Paul J. Davis

    Committed a fix, if it still breaks can you send me the output of:

    $ nspr-config --cflags --libs
    
    

    Thanks for the report, Paul Davis

    April 4th, 2009 @ 10:05 PM

  3. Eric Hanson
    Eric Hanson

    eric@zephyr ~/projects/gharvest2/python-spidermonkey $ sudo python setup.py build Traceback (most recent call last): File "setup.py", line 111, in

    **platform_config()
    
    

    File "setup.py", line 54, in platform_config

    config = nspr_config()
    
    

    File "setup.py", line 47, in nspr_config

    ret[name].append(b[trim:])
    
    

    KeyError: 'extra_compile_args' eric@zephyr ~/projects/gharvest2/python-spidermonkey $ nspr-config --cflags --libs -I/usr/include/nspr -Wl,-R/usr/lib64/nspr -L/usr/lib64/nspr -lplds4 -lplc4 -lnspr4 -lpthread -ldl eric@zephyr ~/projects/gharvest2/python-spidermonkey $

    April 4th, 2009 @ 10:09 PM

  4. Paul J. Davis
    Paul J. Davis

    (from [1c9d0cc16055cbf4d27bd5cf12676450f2e3064b]) I am blind.

    Forgot to add a member for extra_compile_args to the nspr config return.

    [#6 Build fails, Python 2.5.2] http://github.com/davisp/python-...

    April 4th, 2009 @ 10:16 PM

  5. Paul J. Davis
    Paul J. Davis

    (from [83f81c48b6e842e06082faa035fd53e272e05ae0]) Updates #6 Build fails, Python 2.5.2

    I'm on commit three so far. Hopefully this finishes it.

    [#6 Build fails, Python 2.5.2] http://github.com/davisp/python-...

    April 4th, 2009 @ 10:18 PM

  6. Paul J. Davis
    Paul J. Davis

    Oh, I should totally have checked the gcc manual before changing that, ignore the last two commits before trying again.

    April 4th, 2009 @ 10:20 PM

  7. Paul J. Davis
    Paul J. Davis

    (from [0f1b176591c36c63e132ba052f187b6d442ca918]) Hopefully the real fix for #6 Build fails, Python 2.5.2

    In the future I should not assume that a bug is a single commit. And also I should read relevant manuals instead of assuming what options do.

    -Wl is a linker option pass through, not a compile warning. Added info the relevant config updates.

    [#6 Build fails, Python 2.5.2] http://github.com/davisp/python-...

    April 4th, 2009 @ 10:26 PM

  8. Paul J. Davis
    Paul J. Davis

    Now can you try again? I should've checked the man page and not have assumed that -Wanything was a warning option.

    April 4th, 2009 @ 10:27 PM

  9. Eric Hanson
    Eric Hanson

    Hey Paul, I'm getting a similar error after deleting the repository and checkout out again:

    
    eric@zephyr ~/projects/gharvest2 $ git clone git://github.com/davisp/python-spidermonkey.git
    Initialized empty Git repository in /home/eric/projects/gharvest2/python-spidermonkey/.git/
    remote: Counting objects: 674, done.
    remote: Compressing objects: 100% (645/645), done.
    remote: Total 674 (delta 361), reused 110 (delta 22)
    Receiving objects: 100% (674/674), 1.03 MiB | 282 KiB/s, done.
    Resolving deltas: 100% (361/361), done.
    eric@zephyr ~/projects/gharvest2 $ cd python-spidermonkey/
    eric@zephyr ~/projects/gharvest2/python-spidermonkey $ 
    eric@zephyr ~/projects/gharvest2/python-spidermonkey $ sudo python setup.py build
    Traceback (most recent call last):
      File "setup.py", line 119, in <module>
        **platform_config()
      File "setup.py", line 62, in platform_config
        config = nspr_config()
      File "setup.py", line 54, in nspr_config
        name, trim = prfx[b[:2]]
    KeyError: '-W'
    

    April 5th, 2009 @ 03:57 AM

  10. Paul J. Davis
    Paul J. Davis

    I'm generally not this blind, but there's a new commit for you to try.

    April 5th, 2009 @ 11:57 AM

  11. Eric Hanson
    Eric Hanson

    That worked!

    On a side note, it complained on

    
    python setup.py test
    

    because I didn't have nose installed, might want to add that to requirements.

    Thanks! Eric

    April 5th, 2009 @ 04:26 PM

  12. Paul J. Davis
    Paul J. Davis
    • State changed from open to resolved

    April 5th, 2009 @ 04:30 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.