# Curl Python times out

**URL:** <https://travis-ci.community/t/curl-python-times-out/8706>\
**Category:** Multi CPU Architecture\
**Tags:** build-env, python, bug\
**Created:** [May 20, 2020, 2:23pm UTC](https://travis-ci.community/t/curl-python-times-out/8706 "2020-05-20T14:23:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebpuetz](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sebpuetz](https://travis-ci.community/u/sebpuetz)\
**Post date:** [May 20, 2020, 2:23pm UTC](https://travis-ci.community/t/curl-python-times-out/8706/1 "2020-05-20T14:23:48Z")

</div>

Hi,  
I recently set up CI for a Python package on ARM64, s390x and ppc64le. It’s a fairly simple setup which fails at random because the build times out after failing to curl the Python archive.

```auto
language: python
dist: bionic
arch:
  - ppc64le
  - s390x
  - arm64

python:
  - "3.7"

```

Log of a failed job on s390x:

```auto
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/18.04/s390x/python-3.7.tar.bz2

$ curl -sSf --retry 5 -o python-3.7.tar.bz2 ${archive_url}

curl: (23) Failed writing body (1245 != 16375)

Unable to download 3.7 archive. The archive may not exist. Please consider a different version.

```

Any recommended way to deal with this issue?

Best,  
Sebastian

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [May 27, 2020, 8:02am UTC](https://travis-ci.community/t/curl-python-times-out/8706/2 "2020-05-27T08:02:21Z")

</div>

Current config to get Python 3.7 is:

```auto
language: python
sudo: required
dist: (fill in your dist) 
python: "3.7"

```

Assuming you have multiple jobs via looking at your yaml config now, you can obviously edit your `.travis.yml` to your needs. Let me know if this helps any, if not post back and I’ll help you further.

---

<div class="post-metadata">

**Author:** ![sebpuetz](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sebpuetz](https://travis-ci.community/u/sebpuetz)\
**Post date:** [May 27, 2020, 8:19am UTC](https://travis-ci.community/t/curl-python-times-out/8706/3 "2020-05-27T08:19:10Z")

</div>

Hi,

the only difference to my current `.travis.yml` is putting `python: "3.7"` on a single line instead of using a list and adding `sudo: required`.

I pushed this version and the build failed again with the same error. Might be worth noting that this issue almost exclusively happens on the `s390x` target. Here’s a link to the failed build with your suggested changes:

[https://travis-ci.org/github/finalfusion/ffp/jobs/691643910](https://travis-ci.org/github/finalfusion/ffp/jobs/691643910)

```auto
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/18.04/s390x/python-3.7.tar.bz2

$ curl -sSf --retry 5 -o python-3.7.tar.bz2 ${archive_url}

curl: (23) Failed writing body (1246 != 1387)

Unable to download 3.7 archive. The archive may not exist. Please consider a different version.

```

Thanks!

---

<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 24, 2020, 1:04am UTC](https://travis-ci.community/t/curl-python-times-out/8706/4 "2020-10-24T01:04:04Z")

</div>

[Confirmed fixed.](https://travis-ci.com/github/native-api/test_travis/builds/192440988)
