# Python

**URL:** https://travis-ci.community/c/languages/python/50.md?page=1

[Latest](https://travis-ci.community/latest.md) · [Categories](https://travis-ci.community/categories.md) · [Tags](https://travis-ci.community/tags.md)

**Page:** 2

---

## ["pip install" does not work everytime in Trusty](https://travis-ci.community/t/pip-install-does-not-work-everytime-in-trusty/11545)

<div class="topic-metadata">

**Author:** [@ironnou](https://travis-ci.community/u/ironnou)\
**Replies:** 5\
**Last updated:** [May 4, 2021, 12:56am UTC](https://travis-ci.community/t/pip-install-does-not-work-everytime-in-trusty/11545 "2021-05-04T00:56:03Z")

</div>

This started to happen a few weeks ago, sometimes it works, sometimes it does not. When I try to run pip install, it gives me this error: The command "pip install --user awscli" failed and exited with 1 during.\` I tried…

---

## [PyPy v2.7 Backwards Compatible Travis Runner Failing - print(\*k) - SyntaxError: invalid syntax](https://travis-ci.community/t/pypy-v2-7-backwards-compatible-travis-runner-failing-print-k-syntaxerror-invalid-syntax/11536)

<div class="topic-metadata">

**Author:** [@caronc](https://travis-ci.community/u/caronc)\
**Replies:** 2\
**Last updated:** [May 2, 2021, 1:21pm UTC](https://travis-ci.community/t/pypy-v2-7-backwards-compatible-travis-runner-failing-print-k-syntaxerror-invalid-syntax/11536 "2021-05-02T13:21:04Z")

</div>

First off, here is a link to my almost working build. Specifically here is the failing runner. Back on Travis-CI.org, this worked great (but that was 5 months ago). My free credits on the new .com (per the transition) …

---

## [Identical branches: one build successful, the other not. How to debug?](https://travis-ci.community/t/identical-branches-one-build-successful-the-other-not-how-to-debug/11393)

<div class="topic-metadata">

**Author:** [@shlomi](https://travis-ci.community/u/shlomi)\
**Replies:** 1\
**Last updated:** [April 2, 2021, 6:21pm UTC](https://travis-ci.community/t/identical-branches-one-build-successful-the-other-not-how-to-debug/11393 "2021-04-02T18:21:50Z")

</div>

For a Python package, I have two branches (master and dev) that are identical; however Travis runs successfully on dev but not on master (ModuleNotFoundError: No module named 'zipp'). I’m a bit puzzled, and it is not cl…

---

## ["No builds for this repository" and no requests for a travis-ci.org organization repo](https://travis-ci.community/t/no-builds-for-this-repository-and-no-requests-for-a-travis-ci-org-organization-repo/11443)

<div class="topic-metadata">

**Author:** [@irayarka](https://travis-ci.community/u/irayarka)\
**Replies:** 6\
**Last updated:** [April 14, 2021, 10:54am UTC](https://travis-ci.community/t/no-builds-for-this-repository-and-no-requests-for-a-travis-ci-org-organization-repo/11443 "2021-04-14T10:54:13Z")

</div>

Hey I’ve created a .travis.yml file language: python python: - "3.9" services: - docker - postgresql - redis branches: only: - travis before\_script: - docker compose up script: - python3 app.py al…

---

## [Add Python3.9.2 support](https://travis-ci.community/t/add-python3-9-2-support/11217)

<div class="topic-metadata">

**Author:** [@boompig](https://travis-ci.community/u/boompig)\
**Replies:** 0\
**Last updated:** [February 25, 2021, 4:36am UTC](https://travis-ci.community/t/add-python3-9-2-support/11217 "2021-02-25T04:36:59Z")

</div>

Looks like Python 3.9.2 came out a week ago (Feb 19, 2021): https://www.python.org/downloads/release/python-392/ What’s the current timeline for adding this minor version (on Focal)?

---

## [Cannot upload wheel to both PyPI and Github Releases, dist directory empty after PyPI upload](https://travis-ci.community/t/cannot-upload-wheel-to-both-pypi-and-github-releases-dist-directory-empty-after-pypi-upload/11006)

<div class="topic-metadata">

**Author:** [@afonsoc12](https://travis-ci.community/u/afonsoc12)\
**Replies:** 5\
**Last updated:** [January 11, 2021, 11:44am UTC](https://travis-ci.community/t/cannot-upload-wheel-to-both-pypi-and-github-releases-dist-directory-empty-after-pypi-upload/11006 "2021-01-11T11:44:13Z")

</div>

Hello, I would like to know how I could release the files published to Pypi to Github releases. After deploying to pypi, these files should be maintained on the CI server (dist/reponame-0.0.1.tar.gz and dist/reponame-0…

---

## [Python 3.6 UnicodeDecodeError: Invalid continuation byte - Ubuntu Trusty](https://travis-ci.community/t/python-3-6-unicodedecodeerror-invalid-continuation-byte-ubuntu-trusty/3407)

<div class="topic-metadata">

**Author:** [@piraka9011](https://travis-ci.community/u/piraka9011)\
**Replies:** 3\
**Last updated:** [January 11, 2021, 10:11am UTC](https://travis-ci.community/t/python-3-6-unicodedecodeerror-invalid-continuation-byte-ubuntu-trusty/3407 "2021-01-11T10:11:03Z")

</div>

My System: Ubuntu 14.04 Python 3.6.7 .travis.yml language: python python: '3.6' cache: pip before\_install: - openssl aes-256-cbc -K $encrypted\_721a23b33185\_key -iv $encrypted\_721a23b33185\_iv -in keyfile.enc -out ke…

---

## [Python 3.7 and 3.8 builds are failing: AttributeError: type object 'Callable' has no attribute '\_abc\_registry'](https://travis-ci.community/t/python-3-7-and-3-8-builds-are-failing-attributeerror-type-object-callable-has-no-attribute-abc-registry/10900)

<div class="topic-metadata">

**Author:** [@barseghyanartur](https://travis-ci.community/u/barseghyanartur)\
**Replies:** 4\
**Last updated:** [December 23, 2020, 11:49pm UTC](https://travis-ci.community/t/python-3-7-and-3-8-builds-are-failing-attributeerror-type-object-callable-has-no-attribute-abc-registry/10900 "2020-12-23T23:49:41Z")

</div>

Failing build It started with failing Python 3.7 builds (Python 3.8 worked well for a while) and now both do fail. Error: Processing ./.tox/.tmp/package/1/graphene-elastic-0.6.5.zip Installing build dependencies: st…

---

## [Pip 'Could not find a version that satisfies the requirement'](https://travis-ci.community/t/pip-could-not-find-a-version-that-satisfies-the-requirement/10724)

<div class="topic-metadata">

**Author:** [@brianjgeiger](https://travis-ci.community/u/brianjgeiger)\
**Replies:** 2\
**Last updated:** [November 30, 2020, 7:31pm UTC](https://travis-ci.community/t/pip-could-not-find-a-version-that-satisfies-the-requirement/10724 "2020-11-30T19:31:35Z")

</div>

We just started getting this today. 602 Looking in links: /home/travis/.cache/wheelhouse 603 Collecting Pyzotero==1.4.16 604 File was already downloaded /home/travis/.cache/wheelhouse/Pyzotero-1.4.16-py2.py3-none-an…

---

## [Add PyPy 7.3.2 support](https://travis-ci.community/t/add-pypy-7-3-2-support/10007)

<div class="topic-metadata">

**Author:** [@webknjaz](https://travis-ci.community/u/webknjaz)\
**Replies:** 5\
**Last updated:** [November 25, 2020, 3:19pm UTC](https://travis-ci.community/t/add-pypy-7-3-2-support/10007 "2020-11-25T15:19:35Z")

</div>

It’s a new triple release: https://morepypy.blogspot.com/2020/09/pypy-732-triple-release-python-27-36.html It releases stable pypy2.7 and pypy3.6 but also for the first time it adds pypy3.7 alpha! I’d like to be able to…

---

## [Python 3.9.0 build](https://travis-ci.community/t/python-3-9-0-build/10091)

<div class="topic-metadata">

**Author:** [@RhinosF1](https://travis-ci.community/u/RhinosF1)\
**Replies:** 23\
**Last updated:** [November 15, 2020, 5:31pm UTC](https://travis-ci.community/t/python-3-9-0-build/10091 "2020-11-15T17:31:44Z")

</div>

Hi, Python 3.9.0 came out today so I restarted the job 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 missi…

---

## [PyPy3 build missing header entry 'Py\_UNUSED'](https://travis-ci.community/t/pypy3-build-missing-header-entry-py-unused/10471)

<div class="topic-metadata">

**Author:** [@jcpunk](https://travis-ci.community/u/jcpunk)\
**Replies:** 0\
**Last updated:** [November 6, 2020, 10:07pm UTC](https://travis-ci.community/t/pypy3-build-missing-header-entry-py-unused/10471 "2020-11-06T22:07:09Z")

</div>

It looks like the PyPy3 build for Ubuntu 16.04 (PyPy 7.1.1-beta0 with GCC 6.2.0 20160901) \[1\] doesn’t have Py\_UNUSED from the cpyext headers defined.\[2\] Can this be corrected (maybe while moving to PyPy 7.3.2)? \[1\] htt…

---

## [Python 3.9-dev support](https://travis-ci.community/t/python-3-9-dev-support/6703)

<div class="topic-metadata">

**Author:** [@wumpus](https://travis-ci.community/u/wumpus)\
**Replies:** 10\
**Last updated:** [October 7, 2020, 6:06pm UTC](https://travis-ci.community/t/python-3-9-dev-support/6703 "2020-10-07T18:06:57Z")

</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 gett…

---

## [Pip path? jinja2 was not found in your path!](https://travis-ci.community/t/pip-path-jinja2-was-not-found-in-your-path/1044)

<div class="topic-metadata">

**Author:** [@joshuacox](https://travis-ci.community/u/joshuacox)\
**Replies:** 5\
**Last updated:** [October 11, 2020, 6:31am UTC](https://travis-ci.community/t/pip-path-jinja2-was-not-found-in-your-path/1044 "2020-10-11T06:31:30Z")

</div>

How do you install pip packages? I think I’ve gone through all the flags for pip with zero success matrix: include: - os: linux dist: trusty sudo: required services: - docker #language: n…

---

## [Setuptools disappeared from Arm64 and s390x build images](https://travis-ci.community/t/setuptools-disappeared-from-arm64-and-s390x-build-images/9985)

<div class="topic-metadata">

**Author:** [@pitrou](https://travis-ci.community/u/pitrou)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 1:40am UTC](https://travis-ci.community/t/setuptools-disappeared-from-arm64-and-s390x-build-images/9985 "2020-10-06T01:40:30Z")

</div>

We use pip3 install ... in our Arm64 and s390x builds. It used to work with the previous build images, example here (arm64 image build “Tue May 26 10:08:22 UTC 2020”). It doesn’t work anymore with the new build images, …

---

## [“ImportError: cannot import name ‘ProhibitNullCharactersValidator’” running Django](https://travis-ci.community/t/importerror-cannot-import-name-prohibitnullcharactersvalidator-running-django/10043)

<div class="topic-metadata">

**Author:** [@pasinoe](https://travis-ci.community/u/pasinoe)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 4:41pm UTC](https://travis-ci.community/t/importerror-cannot-import-name-prohibitnullcharactersvalidator-running-django/10043 "2020-09-30T16:41:14Z")

</div>

After the 24/9, I cannot build the app as all the time I encounter that error (ImportError: cannot import name ‘ProhibitNullCharactersValidator’) Link to the error from django.core.validators import ( ImportError: c…

---

## [Build PyPI wheels](https://travis-ci.community/t/build-pypi-wheels/10028)

<div class="topic-metadata">

**Author:** [@stephanmg](https://travis-ci.community/u/stephanmg)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 9:49am UTC](https://travis-ci.community/t/build-pypi-wheels/10028 "2020-09-28T09:49:52Z")

</div>

@native-api you are probably right in https://travis-ci.community/t/testing-multiple-ubuntu-releases-for-multiple-python-versions/10008/3. I have a PyPI package I want to test. So you suggest to use manylinux standard i…

---

## [Install Python 3.6.0 on Xenial](https://travis-ci.community/t/install-python-3-6-0-on-xenial/9969)

<div class="topic-metadata">

**Author:** [@LostInDarkMath](https://travis-ci.community/u/LostInDarkMath)\
**Replies:** 9\
**Last updated:** [September 25, 2020, 1:14pm UTC](https://travis-ci.community/t/install-python-3-6-0-on-xenial/9969 "2020-09-25T13:14:34Z")

</div>

Hi there, I need to test my against against Python 3.6.0. This version needs to be exact. But if I write it like this language: python python: # https://docs.travis-ci.com/user/languages/python/#python-versions - "3…

---

## [Add PyPy 7 support](https://travis-ci.community/t/add-pypy-7-support/2228)

<div class="topic-metadata">

**Author:** [@hugovk](https://travis-ci.community/u/hugovk)\
**Replies:** 7\
**Last updated:** [September 25, 2020, 12:58pm UTC](https://travis-ci.community/t/add-pypy-7-support/2228 "2020-09-25T12:58:15Z")

</div>

Please add support for the new PyPy 7.0.0 release, at least PyPy3.5 and PyPy2.7: PyPy v7.0.0: triple release of 2.7, 3.5 and 3.6-alpha The PyPy team is proud to release the version 7.0.0 of PyPy, which includes three d…

---

## [Large pip installs exceed maximum log length](https://travis-ci.community/t/large-pip-installs-exceed-maximum-log-length/1599)

<div class="topic-metadata">

**Author:** [@adamjstewart](https://travis-ci.community/u/adamjstewart)\
**Replies:** 13\
**Last updated:** [August 3, 2020, 5:32pm UTC](https://travis-ci.community/t/large-pip-installs-exceed-maximum-log-length/1599 "2020-08-03T17:32:01Z")

</div>

I’m seeing the following error in my build log: Collecting torch\>=0.4 (from -r requirements.txt (line 7)) Downloading https://files.pythonhosted.org/packages/f5/3b/0b8de6e654c2983898564226792c6f09d9bcaba97b7b29c40e4ed…

---

## [Python 3.8.5 is missing](https://travis-ci.community/t/python-3-8-5-is-missing/9402)

<div class="topic-metadata">

**Author:** [@amureki](https://travis-ci.community/u/amureki)\
**Replies:** 2\
**Last updated:** [July 31, 2020, 8:30am UTC](https://travis-ci.community/t/python-3-8-5-is-missing/9402 "2020-07-31T08:30:11Z")

</div>

Greetings, fellows, Python 3.8.5 (security bugfixes) was released: https://docs.python.org/release/3.8.5/whatsnew/changelog.html#changelog However, support in Travis CI missing: Downloading archive: https://storage.g…

---

## [Sudden failures for the same commit despite no changes in the list of installed packages](https://travis-ci.community/t/sudden-failures-for-the-same-commit-despite-no-changes-in-the-list-of-installed-packages/9436)

<div class="topic-metadata">

**Author:** [@dgw](https://travis-ci.community/u/dgw)\
**Replies:** 3\
**Last updated:** [July 25, 2020, 3:59pm UTC](https://travis-ci.community/t/sudden-failures-for-the-same-commit-despite-no-changes-in-the-list-of-installed-packages/9436 "2020-07-25T15:59:30Z")

</div>

Five days ago, the last merge to our master branch succeeded on Travis Today, I tried to run some builds in a test branch to see if bumping a certain dependency would break anything. However, after getting very confusin…

---

## [Pip is broken in most of the Python envs today](https://travis-ci.community/t/pip-is-broken-in-most-of-the-python-envs-today/9419)

<div class="topic-metadata">

**Author:** [@webknjaz](https://travis-ci.community/u/webknjaz)\
**Replies:** 4\
**Last updated:** [July 24, 2020, 10:39pm UTC](https://travis-ci.community/t/pip-is-broken-in-most-of-the-python-envs-today/9419 "2020-07-24T22:39:27Z")

</div>

Today my previously working builds started exploding when using pip, like this: $ pip --version Traceback (most recent call last): File "/home/travis/virtualenv/python3.6.7/bin/pip", line 7, in \<module\> from pip.\_…

---

## [PyPy support on Focal image](https://travis-ci.community/t/pypy-support-on-focal-image/9272)

<div class="topic-metadata">

**Author:** [@thedrow](https://travis-ci.community/u/thedrow)\
**Replies:** 1\
**Last updated:** [July 13, 2020, 1:05pm UTC](https://travis-ci.community/t/pypy-support-on-focal-image/9272 "2020-07-13T13:05:30Z")

</div>

Currently, the Focal image lacks PyPy and PyPy3. They shouldn’t be hard to add.

---

## ["core dumped" when running Python tests](https://travis-ci.community/t/core-dumped-when-running-python-tests/9169)

<div class="topic-metadata">

**Author:** [@apacha](https://travis-ci.community/u/apacha)\
**Replies:** 1\
**Last updated:** [June 29, 2020, 4:31pm UTC](https://travis-ci.community/t/core-dumped-when-running-python-tests/9169 "2020-06-29T16:31:07Z")

</div>

My builds are failing with a really weird error: \*\*\* Error in \`/home/travis/miniconda/envs/test-environment/bin/python': corrupted size vs. prev\_size: 0x0000562987d4f800 \*\*\* Fatal Python error: Aborted Current thread 0x…

---

## [Specifying Python version on build that uses multiple languages](https://travis-ci.community/t/specifying-python-version-on-build-that-uses-multiple-languages/9054)

<div class="topic-metadata">

**Author:** [@bengao01](https://travis-ci.community/u/bengao01)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 1:56pm UTC](https://travis-ci.community/t/specifying-python-version-on-build-that-uses-multiple-languages/9054 "2020-06-24T13:56:58Z")

</div>

I have a precise build that uses both Java and Python, where it’s set up so that creating 2 separate builds, 1 python and 1 java wouldn’t work for me. In my yml file, when I specify the java version that I want to use, i…

---

## [Error bin/activate](https://travis-ci.community/t/error-bin-activate/9107)

<div class="topic-metadata">

**Author:** [@zeroincombenze](https://travis-ci.community/u/zeroincombenze)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 1:49am UTC](https://travis-ci.community/t/error-bin-activate/9107 "2020-06-24T01:49:35Z")

</div>

I have two instances of a Odoo module, one uses python 2.7 and the other uses python 3.7 I launch both instances, with 2.7 ends successfully while the other ends with a strange error: bin/activate no such file or direc…

---

## [Upgrade default Pytest for Python3.6 and 3.7?](https://travis-ci.community/t/upgrade-default-pytest-for-python3-6-and-3-7/9000)

<div class="topic-metadata">

**Author:** [@sjvrijn](https://travis-ci.community/u/sjvrijn)\
**Replies:** 3\
**Last updated:** [June 19, 2020, 10:06am UTC](https://travis-ci.community/t/upgrade-default-pytest-for-python3-6-and-3-7/9000 "2020-06-19T10:06:06Z")

</div>

pytest-cov recently updated their requirements from \>=3.6 to \>=4.6 (see here), while the pre-installed pytest in Python3.6 and 3.7 seems to be 4.3.1 . See e.g. Travis CI - Test and Deploy with Confidence as an example, w…

---

## [Python dev images built with wrong --prefix](https://travis-ci.community/t/python-dev-images-built-with-wrong-prefix/8972)

<div class="topic-metadata">

**Author:** [@dvarrazzo](https://travis-ci.community/u/dvarrazzo)\
**Replies:** 0\
**Last updated:** [June 11, 2020, 6:40am UTC](https://travis-ci.community/t/python-dev-images-built-with-wrong-prefix/8972 "2020-06-11T06:40:04Z")

</div>

The images installed using python 3.9-dev get installed into /opt/python/3.9-dev/. However python-config --prefix returns /usr. This makes python-config unreliable: see for instance this failure. You can see a working c…

---

## [Pip install requests not working in precise build](https://travis-ci.community/t/pip-install-requests-not-working-in-precise-build/8889)

<div class="topic-metadata">

**Author:** [@bengao01](https://travis-ci.community/u/bengao01)\
**Replies:** 0\
**Last updated:** [June 4, 2020, 8:15pm UTC](https://travis-ci.community/t/pip-install-requests-not-working-in-precise-build/8889 "2020-06-04T20:15:30Z")

</div>

I have a Java app that I’m building that contains a Python script I want to run. The python script uses the requests module. I try to install requests, but it gives me an error: “Could not find any downloads that satisfy…

[Previous page](https://travis-ci.community/c/languages/python/50.md)

[Next page](https://travis-ci.community/c/languages/python/50.md?page=2)
