# Python

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

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

**Page:** 3

---

## [Yet another... HTTPError: 403 Client Error: Invalid or non-existent authentication information](https://travis-ci.community/t/yet-another-httperror-403-client-error-invalid-or-non-existent-authentication-information/8857)

<div class="topic-metadata">

**Author:** [@gmagno](https://travis-ci.community/u/gmagno)\
**Replies:** 4\
**Last updated:** [June 2, 2020, 9:55pm UTC](https://travis-ci.community/t/yet-another-httperror-403-client-error-invalid-or-non-existent-authentication-information/8857 "2020-06-02T21:55:16Z")

</div>

Hello dear friends, I thought I should share this issue I’m having publishing a python package with to PyPI. It seems to be authenticating correctly with my user here: https://travis-ci.com/github/gmagno/pycut/jobs/342…

---

## [Pytest3 and pip3 issue in travis docker](https://travis-ci.community/t/pytest3-and-pip3-issue-in-travis-docker/8850)

<div class="topic-metadata">

**Author:** [@Rebecka](https://travis-ci.community/u/Rebecka)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 1:11pm UTC](https://travis-ci.community/t/pytest3-and-pip3-issue-in-travis-docker/8850 "2020-06-02T13:11:27Z")

</div>

Hi! I’m trying to setup a travis docker image with python2.7 and python3.7, and adding pytest to the 3.7 version but get the following error for pip3 and pytest3 commands: travis@ca6182c05df9:~/builds/$ pip3 -V Traceb…

---

## [Tests in Travis are not running](https://travis-ci.community/t/tests-in-travis-are-not-running/8683)

<div class="topic-metadata">

**Author:** [@Totobriac](https://travis-ci.community/u/Totobriac)\
**Replies:** 3\
**Last updated:** [May 27, 2020, 6:41am UTC](https://travis-ci.community/t/tests-in-travis-are-not-running/8683 "2020-05-27T06:41:13Z")

</div>

I trigger a build on my app but Travis doesn’t run any test. As suggested on Travis official doc, I have created a postgresql db before\_script. Here is my .travis.yml: language: python python: - '3.7' before\_scr…

---

## [Python 3.10 support](https://travis-ci.community/t/python-3-10-support/8759)

<div class="topic-metadata">

**Author:** [@hugovk](https://travis-ci.community/u/hugovk)\
**Replies:** 1\
**Last updated:** [May 26, 2020, 1:21pm UTC](https://travis-ci.community/t/python-3-10-support/8759 "2020-05-26T13:21:07Z")

</div>

Now Python 3.9 is in beta, the master branch of the Python project now points to the next 3.10 dev version. https://github.com/python/cpython/pull/20198 Please could you add 3.10-dev to Travis CI and also point nightl…

---

## [Please activate Python 3 by default for non Python build](https://travis-ci.community/t/please-activate-python-3-by-default-for-non-python-build/3899)

<div class="topic-metadata">

**Author:** [@methane](https://travis-ci.community/u/methane)\
**Replies:** 12\
**Last updated:** [May 22, 2020, 9:30am UTC](https://travis-ci.community/t/please-activate-python-3-by-default-for-non-python-build/3899 "2020-05-22T09:30:27Z")

</div>

Python 3.6 is the default Python when language: python. But when not language: python, Python 3 can not be used by default. There is pip (/usr/bin/pip), but not pip3. We can use pyenv global 3.7.1 to activate Python 3…

---

## [Pytest broken on MacOS and Windows](https://travis-ci.community/t/pytest-broken-on-macos-and-windows/8474)

<div class="topic-metadata">

**Author:** [@MunchDev](https://travis-ci.community/u/MunchDev)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 2:28pm UTC](https://travis-ci.community/t/pytest-broken-on-macos-and-windows/8474 "2020-05-06T14:28:49Z")

</div>

I setup Travis to run pytest on Linux, Windows and MacOS The build ran successfully on linux but stuck right at the code below on OS X and Windows This is my .config.yml: language: python jobs: include: - nam…

---

## [Python 3.6 - sqlite3.OperationalError: disk I/O error](https://travis-ci.community/t/python-3-6-sqlite3-operationalerror-disk-i-o-error/6737)

<div class="topic-metadata">

**Author:** [@caronc](https://travis-ci.community/u/caronc)\
**Replies:** 11\
**Last updated:** [May 5, 2020, 10:56pm UTC](https://travis-ci.community/t/python-3-6-sqlite3-operationalerror-disk-i-o-error/6737 "2020-05-05T22:56:28Z")

</div>

Today just the my Python 3.6 builds are failing (source). All other Python builds work fine (source). Any advise would be fantastic! :slight\_smile: Edit: Merged with master and build is still failing :slightly\_frownin…

---

## [2.7.17 or 2.7.18 update?](https://travis-ci.community/t/2-7-17-or-2-7-18-update/8461)

<div class="topic-metadata">

**Author:** [@dvorapa](https://travis-ci.community/u/dvorapa)\
**Replies:** 5\
**Last updated:** [May 4, 2020, 12:44pm UTC](https://travis-ci.community/t/2-7-17-or-2-7-18-update/8461 "2020-05-04T12:44:11Z")

</div>

Hi, I’ve just found out Python 2.7.12 is running “2.7\_with\_system\_site\_packages” (and 2.7.15 is running “2.7”). Is there a plan to update those images to 2.7.17 or 2.7.18 soon? :confused:

---

## [SyntaxError fails CI build in AppConf instantiation with metaclass](https://travis-ci.community/t/syntaxerror-fails-ci-build-in-appconf-instantiation-with-metaclass/8351)

<div class="topic-metadata">

**Author:** [@siddadel](https://travis-ci.community/u/siddadel)\
**Replies:** 4\
**Last updated:** [April 27, 2020, 2:04pm UTC](https://travis-ci.community/t/syntaxerror-fails-ci-build-in-appconf-instantiation-with-metaclass/8351 "2020-04-27T14:04:54Z")

</div>

Hi, Our build fails due to the following error: File “/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/appconf/base.py”, line 107 class AppConf(metaclass=AppConfMetaClass): ^ SyntaxError: invalid syn…

---

## [Install using flit works on python 3.8 but fails on 3.6 and 3.7](https://travis-ci.community/t/install-using-flit-works-on-python-3-8-but-fails-on-3-6-and-3-7/8143)

<div class="topic-metadata">

**Author:** [@avaldebe](https://travis-ci.community/u/avaldebe)\
**Replies:** 4\
**Last updated:** [April 14, 2020, 5:24pm UTC](https://travis-ci.community/t/install-using-flit-works-on-python-3-8-but-fails-on-3-6-and-3-7/8143 "2020-04-14T17:24:58Z")

</div>

my builds started to fail at the installation stage on python3.8 all goes fine $ python --version Python 3.8.0 $ pip --version pip 19.3 from /home/travis/virtualenv/python3.8.0/lib/python3.8/site-packages/pip (python 3…

---

## [Python 3.8 binaries intermittently fail on curl](https://travis-ci.community/t/python-3-8-binaries-intermittently-fail-on-curl/7475)

<div class="topic-metadata">

**Author:** [@kyleian](https://travis-ci.community/u/kyleian)\
**Replies:** 5\
**Last updated:** [March 19, 2020, 5:39am UTC](https://travis-ci.community/t/python-3-8-binaries-intermittently-fail-on-curl/7475 "2020-03-19T05:39:14Z")

</div>

Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/16.04/x86\_64/python-3.8.tar.bz2 0.49s$ curl -sSf --retry 5 -o python-3.8.tar.bz2 ${archive\_url} curl failed Intermit…

---

## [Travis Python archive download is flaky](https://travis-ci.community/t/travis-python-archive-download-is-flaky/2147)

<div class="topic-metadata">

**Author:** [@jab](https://travis-ci.community/u/jab)\
**Replies:** 11\
**Last updated:** [March 10, 2020, 7:12pm UTC](https://travis-ci.community/t/travis-python-archive-download-is-flaky/2147 "2020-03-10T19:12:06Z")

</div>

Hi Travis CI, My daily CRON build failed this morning because for two of my jobs, downloading Travis’s Python archives failed as follows: pypy2.7-6.0 is not installed; attempting download Downloading archive: https:/…

---

## ["Build config did not create any jobs" when only one version of python is specified](https://travis-ci.community/t/build-config-did-not-create-any-jobs-when-only-one-version-of-python-is-specified/7407)

<div class="topic-metadata">

**Author:** [@reece](https://travis-ci.community/u/reece)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 1:17am UTC](https://travis-ci.community/t/build-config-did-not-create-any-jobs-when-only-one-version-of-python-is-specified/7407 "2020-03-01T01:17:17Z")

</div>

When I specify multiple python versions like below, travis initiates testing. python: - "3.7" - "3.8" (from https://github.com/biocommons/uta-align/blob/05a6d088d66ce911e934b1c085c173fdefd65a7b/.travis.yml) If I r…

---

## [Python: site.py on python images is other than standard](https://travis-ci.community/t/python-site-py-on-python-images-is-other-than-standard/7264)

<div class="topic-metadata">

**Author:** [@yehonatanz](https://travis-ci.community/u/yehonatanz)\
**Replies:** 6\
**Last updated:** [February 19, 2020, 3:55pm UTC](https://travis-ci.community/t/python-site-py-on-python-images-is-other-than-standard/7264 "2020-02-19T15:55:52Z")

</div>

site.py on official python images is lacking standard functionality documented on the official python docs and available on standard python installations. Specifically: the function site.getsitepackages does not exist. …

---

## [Python development versions no longer include pip (due to virtualenv 20.x)](https://travis-ci.community/t/python-development-versions-no-longer-include-pip-due-to-virtualenv-20-x/7180)

<div class="topic-metadata">

**Author:** [@quentinp](https://travis-ci.community/u/quentinp)\
**Replies:** 14\
**Last updated:** [February 13, 2020, 8:30am UTC](https://travis-ci.community/t/python-development-versions-no-longer-include-pip-due-to-virtualenv-20-x/7180 "2020-02-13T08:30:02Z")

</div>

Nothing changed on our side between our last good build and our first bad build, but all Python development versions (3.5-dev, 3.6-dev, 3.7-dev, 3.8-dev and nightly) fail with the following error: $ pip --version Traceb…

---

## [Failing build with python - ERROR:root:ImportError](https://travis-ci.community/t/failing-build-with-python-errorimporterror/7188)

<div class="topic-metadata">

**Author:** [@Borda](https://travis-ci.community/u/Borda)\
**Replies:** 7\
**Last updated:** [February 12, 2020, 11:45pm UTC](https://travis-ci.community/t/failing-build-with-python-errorimporterror/7188 "2020-02-12T23:45:57Z")

</div>

We are experiencing recent failing build on Python and Tox testing with following error message which is not easy to trace back ERROR:root:ImportError: cannot import name ensure\_text since we do not call any ensure\_text …

---

## [Block network access of a test/process on Travis?](https://travis-ci.community/t/block-network-access-of-a-test-process-on-travis/7070)

<div class="topic-metadata">

**Author:** [@OliBarrington](https://travis-ci.community/u/OliBarrington)\
**Replies:** 3\
**Last updated:** [January 31, 2020, 10:36am UTC](https://travis-ci.community/t/block-network-access-of-a-test-process-on-travis/7070 "2020-01-31T10:36:52Z")

</div>

Based on this question and its answers: What is an applicable approach (if there is any) of blocking network access of a test or process on Travis CI? Background: I want to test offline functionality, i.e. a cache, enab…

---

## [Python 3.4 not found on bionic](https://travis-ci.community/t/python-3-4-not-found-on-bionic/7034)

<div class="topic-metadata">

**Author:** [@jaysonsantos](https://travis-ci.community/u/jaysonsantos)\
**Replies:** 2\
**Last updated:** [January 29, 2020, 7:53am UTC](https://travis-ci.community/t/python-3-4-not-found-on-bionic/7034 "2020-01-29T07:53:01Z")

</div>

Hey there, it seems that python3.4 is missing from bionic images. Is it possible to add it? Here is a link for a broken build https://travis-ci.org/jaysonsantos/python-binary-memcached/jobs/643010397?utm\_medium=notifica…

---

## [Config with a python build and a matrix only runs the matrix](https://travis-ci.community/t/config-with-a-python-build-and-a-matrix-only-runs-the-matrix/5309)

<div class="topic-metadata">

**Author:** [@albireox](https://travis-ci.community/u/albireox)\
**Replies:** 4\
**Last updated:** [October 5, 2019, 4:29am UTC](https://travis-ci.community/t/config-with-a-python-build-and-a-matrix-only-runs-the-matrix/5309 "2019-10-05T04:29:00Z")

</div>

If I try to build using this config file only the 3.8-dev job runs although I’d expect 3.7 to be build as well. cache: pip: true timeout: 1000 language: python python: - 3.7 matrix: fast\_finish: true inclu…

---

## [Pip cache directory owned by root on s390x](https://travis-ci.community/t/pip-cache-directory-owned-by-root-on-s390x/6991)

<div class="topic-metadata">

**Author:** [@eslavich](https://travis-ci.community/u/eslavich)\
**Replies:** 0\
**Last updated:** [January 23, 2020, 11:33pm UTC](https://travis-ci.community/t/pip-cache-directory-owned-by-root-on-s390x/6991 "2020-01-23T23:33:53Z")

</div>

The /home/travis/.cache/pip/wheels directory is owned by root on s390x, which is preventing me from installing Python packages unless I use the --no-cache-dir flag. This is the contents of ~/.cache/pip on s390x: $ ls -…

---

## [Development Release Build Frequency](https://travis-ci.community/t/development-release-build-frequency/6804)

<div class="topic-metadata">

**Author:** [@lysnikolaou](https://travis-ci.community/u/lysnikolaou)\
**Replies:** 2\
**Last updated:** [January 10, 2020, 1:46pm UTC](https://travis-ci.community/t/development-release-build-frequency/6804 "2020-01-10T13:46:50Z")

</div>

Hey everybody, could anyone tell me how often dev releases, like 3.8-dev, get built in order to pick up the latest changes from the CPython repo?

---

## [How to request debug Python build?](https://travis-ci.community/t/how-to-request-debug-python-build/6506)

<div class="topic-metadata">

**Author:** [@iustin](https://travis-ci.community/u/iustin)\
**Replies:** 7\
**Last updated:** [December 22, 2019, 12:33am UTC](https://travis-ci.community/t/how-to-request-debug-python-build/6506 "2019-12-22T00:33:04Z")

</div>

I tried searching but I couldn’t find any way to ask for, or use, a debug Python build. This is useful as it runs with asserts enabled, and is very helpful for finding bugs in C extension modules. I tried just calling p…

---

## [Unexpected Segmentation fault for python project](https://travis-ci.community/t/unexpected-segmentation-fault-for-python-project/6544)

<div class="topic-metadata">

**Author:** [@yubozhao](https://travis-ci.community/u/yubozhao)\
**Replies:** 4\
**Last updated:** [December 19, 2019, 11:10am UTC](https://travis-ci.community/t/unexpected-segmentation-fault-for-python-project/6544 "2019-12-19T11:10:46Z")

</div>

Hi, For the past few days, our tests stopped working with Segmentation Fault. We are running out ideas to fix it, after clear all of the caches, and attempt to lock down module versions that are recently updated during…

---

## [Core dumped when running pytest](https://travis-ci.community/t/core-dumped-when-running-pytest/6367)

<div class="topic-metadata">

**Author:** [@filips123](https://travis-ci.community/u/filips123)\
**Replies:** 0\
**Last updated:** [December 9, 2019, 3:29pm UTC](https://travis-ci.community/t/core-dumped-when-running-pytest/6367 "2019-12-09T15:29:30Z")

</div>

I created PR for some Python project which uses Pytest for tests. However, my tests always fail even if the failure doesn’t seem to be related to my changes. My PR is HelloZeroNet/ZeroNet#2164 and branch with my changes…

---

## [Python 3.6 and 3.7 with system\_site\_packages enabled fails to activate on xenial](https://travis-ci.community/t/python-3-6-and-3-7-with-system-site-packages-enabled-fails-to-activate-on-xenial/1697)

<div class="topic-metadata">

**Author:** [@mertyildiran](https://travis-ci.community/u/mertyildiran)\
**Replies:** 1\
**Last updated:** [January 7, 2019, 12:07am UTC](https://travis-ci.community/t/python-3-6-and-3-7-with-system-site-packages-enabled-fails-to-activate-on-xenial/1697 "2019-01-07T00:07:12Z")

</div>

I got The command "source ~/virtualenv/python3.6\_with\_system\_site\_packages/bin/activate" failed and exited with 1 during . error when I want to test my project against different versions of Python (3.6 and 3.7) on xeni…

---

## [Print to Stdout from python tests with docker image](https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114)

<div class="topic-metadata">

**Author:** [@andrewbluepiano](https://travis-ci.community/u/andrewbluepiano)\
**Replies:** 4\
**Last updated:** [November 24, 2019, 9:50pm UTC](https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114 "2019-11-24T21:50:30Z")

</div>

Hi all. Title pretty much sums it up. Can’t get things printing from my test python stuff for the life of me. Using docker for stuff, so that’s kinda taking over the log, but I would think stdout would still appear.

---

## [Pip cannot find lxml 4.4.1 even though it exists](https://travis-ci.community/t/pip-cannot-find-lxml-4-4-1-even-though-it-exists/5807)

<div class="topic-metadata">

**Author:** [@seanthegeek](https://travis-ci.community/u/seanthegeek)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 10:49pm UTC](https://travis-ci.community/t/pip-cannot-find-lxml-4-4-1-even-though-it-exists/5807 "2019-11-06T22:49:21Z")

</div>

Hello, Someone recently submitted a PR to my project that added a new dependency lxml\>=4.4.1 lxml 4.4.1 was released on August 11th, 2019. and is the latest release in PyPI. But, pip in Travis claims that lxml 4.4.…

---

## [Add Python 3.8 support](https://travis-ci.community/t/add-python-3-8-support/5463)

<div class="topic-metadata">

**Author:** [@hugovk](https://travis-ci.community/u/hugovk)\
**Replies:** 7\
**Last updated:** [November 5, 2019, 2:45pm UTC](https://travis-ci.community/t/add-python-3-8-support/5463 "2019-11-05T14:45:33Z")

</div>

Python 3.8.0 was released yesterday, 2019-10-14: https://discuss.python.org/t/python-3-8-0-is-now-available/2478 Thanks for earlier adding 3.8-dev for the development branch. Please could you also add 3.8 for the rele…

---

## [Python setup.py fails due to astroid package on Ubuntu](https://travis-ci.community/t/python-setup-py-fails-due-to-astroid-package-on-ubuntu/5326)

<div class="topic-metadata">

**Author:** [@zhaofeng-shu33](https://travis-ci.community/u/zhaofeng-shu33)\
**Replies:** 2\
**Last updated:** [October 6, 2019, 7:50am UTC](https://travis-ci.community/t/python-setup-py-fails-due-to-astroid-package-on-ubuntu/5326 "2019-10-06T07:50:39Z")

</div>

Hello, I have a project with build failure shown at https://travis-ci.com/zhaofeng-shu33/pspartition-python-binding/jobs/242492721. The same build passes on MacOS but fails for Ubuntu python. The error messages says maxi…

---

## [Strange pypi behavior in travis CI](https://travis-ci.community/t/strange-pypi-behavior-in-travis-ci/4922)

<div class="topic-metadata">

**Author:** [@Niccolum](https://travis-ci.community/u/Niccolum)\
**Replies:** 1\
**Last updated:** [August 29, 2019, 11:35am UTC](https://travis-ci.community/t/strange-pypi-behavior-in-travis-ci/4922 "2019-08-29T11:35:51Z")

</div>

i create two issues in github, which automatically closed by bot. In short, I have a 403 error when uploading to PYPI, but the packet appears there What problem could be ?

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

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