# Problem with OSX + Python

**URL:** <https://travis-ci.community/t/problem-with-osx-python/3671>\
**Category:** Python\
**Created:** [June 9, 2019, 11:06am UTC](https://travis-ci.community/t/problem-with-osx-python/3671 "2019-06-09T11:06:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixdivo](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/felixdivo/32/1950_2.png) [@felixdivo](https://travis-ci.community/u/felixdivo)\
**Post date:** [June 9, 2019, 11:06am UTC](https://travis-ci.community/t/problem-with-osx-python/3671/1 "2019-06-09T11:06:47Z")

</div>

Our project [over here](https://travis-ci.org/hardbyte/python-can/jobs/543355636#L254) fails with this on OSX:

> /Users/travis/.travis/functions: line 105: 2192 Illegal instruction: 4 python setup.py test

It stems from [this PR](https://github.com/hardbyte/python-can/pull/554). Do you know how to solve this? I know OSX + Python is not officially supported for some reason but you wanted errors to be reported nonetheless (see [here](https://github.com/travis-ci/travis-ci/issues/9929#issuecomment-410710458)).

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [June 10, 2019, 12:23pm UTC](https://travis-ci.community/t/problem-with-osx-python/3671/2 "2019-06-10T12:23:33Z")

</div>

This is probably due to the python binary file. You are using 3.7-dev, which is most likely not the 3.7 release (of any version). We have not compiled the mac archives in months (if not years). At the moment, we have no plans to resume compiling them. It is best to remove these rogue archives, so as not to confuse users.

---

<div class="post-metadata">

**Author:** ![felixdivo](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/felixdivo/32/1950_2.png) [@felixdivo](https://travis-ci.community/u/felixdivo)\
**Post date:** [June 10, 2019, 3:09pm UTC](https://travis-ci.community/t/problem-with-osx-python/3671/3 "2019-06-10T15:09:24Z")

</div>

Oh, that’s **very** sad. We will probably remove it from our script then …

---

<div class="post-metadata">

**Author:** ![webknjaz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/webknjaz/32/34_2.png) [@webknjaz](https://travis-ci.community/u/webknjaz)\
**Post date:** [June 10, 2019, 3:27pm UTC](https://travis-ci.community/t/problem-with-osx-python/3671/4 "2019-06-10T15:27:17Z")

</div>

FTR I’ve posted how to efficiently install Python from the official website by yourself: [MAC version not working in python](https://travis-ci.community/t/mac-version-not-working-in-python/1111/6)

P.S. I saw you running `setup.py test` there. FYI it’s highly discouraged by PyPA and it’s better to just invoke the testrunner (`pytest`).
