# Python 3.9-dev support

**URL:** <https://travis-ci.community/t/python-3-9-dev-support/6703>\
**Category:** Python\
**Created:** [January 2, 2020, 9:00pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703 "2020-01-02T21:00:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![wumpus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/wumpus/32/3541_2.png) [@wumpus](https://travis-ci.community/u/wumpus)\
**Post date:** [January 2, 2020, 9:00pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/1 "2020-01-02T21:00:20Z")

</div>

One thing I love to do in CI is to keep an eye on the next version of a language. Python 3.9-dev is out in alpha, it’d be nice if it and the actual nightly were available in Travis CI.

Currently TravisCI 3.9-dev is getting a 404 on the download and nightly is still 3.8.

---

<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:** [January 2, 2020, 9:22pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/2 "2020-01-02T21:22:01Z")

</div>

> <https://github.com/travis-ci/travis-nightly-builder/commit/41c2123408374d96044986ef1347427e5c38f5ac>

should yield (through other machinery) 3.9-dev as nightly within 24 hours.

---

<div class="post-metadata">

**Author:** ![wumpus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/wumpus/32/3541_2.png) [@wumpus](https://travis-ci.community/u/wumpus)\
**Post date:** [January 2, 2020, 10:44pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/3 "2020-01-02T22:44:29Z")

</div>

Cool, I guess I had great timing with this request.

Is there a a reason why nightly isn’t nightly? I’m happy with whatever choice you guys make, but if nightly is never nightly, you might as well not have it exist as a name.

---

<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:** [January 4, 2020, 3:09pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/4 "2020-01-04T15:09:41Z")

</div>

Looks like 3.9 has some build problems; e.g.,

[https://travis-ci.com/travis-ci/cpython-builder/jobs/272344340#L203](https://travis-ci.com/travis-ci/cpython-builder/jobs/272344340#L203)

---

<div class="post-metadata">

**Author:** ![hugovk](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hugovk/32/684_2.png) [@hugovk](https://travis-ci.community/u/hugovk)\
**Post date:** [January 5, 2020, 11:00am UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/5 "2020-01-05T11:00:08Z")

</div>

```auto
File "/home/travis/.local/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/_collections.py", line 2, in <module>

191ImportError: cannot import name 'Mapping' from 'collections' (/home/travis/virtualenv/python3.9-dev/lib/python3.9/collections/ __init__.py)

```

This is from attempting to install pip 9.0.1, which uses something removed in Python 3.9.

This has been fixed in pip \>= 18.0.

> <https://github.com/pypa/pip/commit/b1aee4b3876bbdc319a75726363c809953d71ede>

> <https://github.com/pypa/pip/pull/5521>

Please can you try and install a newer pip on the image?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [January 5, 2020, 3:46pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/6 "2020-01-05T15:46:22Z")

</div>

> <https://github.com/travis-ci/cpython-builder/pull/33>

---

<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:** [January 7, 2020, 4:15pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/7 "2020-01-07T16:15:57Z")

</div>

[https://travis-ci.com/travis-ci/cpython-builder/builds/143428089](https://travis-ci.com/travis-ci/cpython-builder/builds/143428089) is the 3.9-dev build with the fix above.

At the moment, it appears that all builds fail for 3.9-dev except x86\_64.

---

<div class="post-metadata">

**Author:** ![wumpus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/wumpus/32/3541_2.png) [@wumpus](https://travis-ci.community/u/wumpus)\
**Post date:** [January 8, 2020, 12:06am UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/8 "2020-01-08T00:06:39Z")

</div>

For AMD64, I’m seeing both “nightly” and “3.9-dev” are working with my project.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [January 8, 2020, 6:22pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/9 "2020-01-08T18:22:51Z")

</div>

This should fix the other architectures:

> <https://github.com/travis-ci/cpython-builder/pull/34>

---

<div class="post-metadata">

**Author:** ![gonchik](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gonchik/32/3923_2.png) [@gonchik](https://travis-ci.community/u/gonchik)\
**Post date:** [February 28, 2020, 1:46pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/10 "2020-02-28T13:46:47Z")

</div>

Thank you for that

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [October 17, 2020, 2:39pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/11 "2020-10-17T14:39:44Z")

</div>

Split this topic on October 17, 2020, 2:39pm UTC

2 posts were merged into an existing topic: [Python 3.9.0 build](https://travis-ci.community/t/python-3-9-0-build/10091/9)

---

<div class="post-metadata">

**Author:** ![hugovk](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hugovk/32/684_2.png) [@hugovk](https://travis-ci.community/u/hugovk)\
**Post date:** [October 7, 2020, 6:06pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703/12 "2020-10-07T18:06:57Z")

</div>

**For supporting the _release_ version of 3.9.0, please follow this issue:**

> [@Python 3.9.0 build](https://travis-ci.community/t/python-3-9-0-build/10091):
>
> Hi, Python 3.9.0 came out today so I restarted the job [https://travis-ci.com/github/MirahezeBots/MirahezeBots/jobs/394787945](https://travis-ci.com/github/MirahezeBots/MirahezeBots/jobs/394787945) but it still gives a 404 and fails. My alias is set to 3.9 Can someone point out if I’m missing something obvious or help get it working? Thanks!
