Giter VIP home page Giter VIP logo

Comments (15)

chrisledet avatar chrisledet commented on August 15, 2024

Try using --force when installing.

from pythonbrew.

spkane avatar spkane commented on August 15, 2024

So, are you saying that the error, or failed test, is harmless? I don't really want to force something that is going to cause me issues in the future, and be much harder to track down.

Sean

from pythonbrew.

chrisledet avatar chrisledet commented on August 15, 2024

I also did a fresh OS X Lion install and doing pythonbrew install --force 2.7.2 worked for me. It still runs all the tests. You can see tail -f the build.log file to see if it installs with a failing test. Worst case scenario, if something really messes up, delete pythonbrew, update pythonbrew with the latest patches, or grab python sources from the site and install it that way.

from pythonbrew.

 avatar commented on August 15, 2024

I have the same issue. Freshly installed OS X Lion + XCode 4.1 + Pythonbrew 0.9. The build will only complete if I use --force, otherwise it will fail on some tests.

from pythonbrew.

shurane avatar shurane commented on August 15, 2024

Which test fails for you guys? For me, it's test_dl. Guess it's force time.

from pythonbrew.

spkane avatar spkane commented on August 15, 2024

I ended up using --force for python 2.7.2 and that worked fine. --force for python 3 only sort of worked. There was an issue installing setuptools. I don't have more details at the moment, as I am travelling, but I'll try to post more information when I get back.

from pythonbrew.

andreif avatar andreif commented on August 15, 2024

The following tests has failed for me on Lion: test_ctypes, test_platform

from pythonbrew.

Emerson avatar Emerson commented on August 15, 2024

Failing for me also.

from pythonbrew.

nerduno avatar nerduno commented on August 15, 2024

pythonbrew install 3.2.1 yields 4 failed tests:
test_ctypes test_dbm test_distutils test_platform

from pythonbrew.

adamlwgriffiths avatar adamlwgriffiths commented on August 15, 2024

Same issue here.
Added info to a Gist here: https://gist.github.com/1618234

from pythonbrew.

adamlwgriffiths avatar adamlwgriffiths commented on August 15, 2024

Obviously the test_platform is wrong.

        if sys.byteorder == 'little':
            self.assertEqual(res[2], 'i386')
        else:
            self.assertEqual(res[2], 'PowerPC')

The platform is listed as x86_64, so this is just a bad test.
The pythonbrew docs even show that this test is wrong.

It is possible to build a number of flavours of the universal binary build,
the default is a 32-bit only binary (i386 and ppc). The flavour can be
specified using the option ``--with-universal-archs=VALUE``. The following
values are available:
 * ``32-bit``:   ``ppc``, ``i386``
 * ``64-bit``:   ``ppc64``, ``x86_64``
 * ``all``:      ``ppc``, ``ppc64``, ``i386``, ``x86_64``
 * ``3-way``:    ``ppc``, ``i386`` and ``x86_64``
 * ``intel``:    ``i386``, ``x86_64``

There are also a few patches floating around the internet.
Here is one that explicitely fixes the test_platform error: http://mail.python.org/pipermail//python-checkins/2011-July/106590.html

and discussion on applying the patch here: http://bugs.python.org/issue12549

from pythonbrew.

adamlwgriffiths avatar adamlwgriffiths commented on August 15, 2024

This test is... strange...

test_distutils
i686-apple-darwin11-llvm-gcc-4.2: /private/var/folders/bz/9564twzd2f95kgzvzvt1w1yr0000gn/T/tmpL4I5DR/foo.so: No such file or directory
test test_distutils failed -- Traceback (most recent call last):

The directories exist down to /T which does not have a /tmp subdirectory.

from pythonbrew.

adamlwgriffiths avatar adamlwgriffiths commented on August 15, 2024

The more I look at the logs, the more it looks like there are just bad tests in Python. The code built successfully, it's just the tests failing.
I think the best course of action is to just --force install it.
I'm curious to see if anything from this issue helps: #27

from pythonbrew.

skull-squadron avatar skull-squadron commented on August 15, 2024

+1

pythonbrew install 2.7.2
OS X 10.7.2
Xcode 4.2 upgraded from 4.1

from pythonbrew.

dergraf avatar dergraf commented on August 15, 2024

I upgraded to OS X 10.7.3 yesterday, through AppStore I installed XCode 4.3 (you need to start XCode which triggers the 'real' installer. However, pythonbrew install 2.7.2 was still not working.. so I learned about the trick that will do it (not sure about earlier versions of OSX/XCode though). you need to install the Command Line Tools for XCode then everything seems to work nicely. You can download them either on the http://developer.apple.com website or over the Downloads pane in XCode's preferences.

But the mentioned problem with the test cases remains but pythonbrew install --no-test 2.7.2 works.

from pythonbrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.