# \#python

**URL:** https://discuss.circleci.com/tag/python/97.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [Cypress E2E tests fail with ESOCKETTIMEDOUT and request timeouts when calling localhost in CircleCI](https://discuss.circleci.com/t/cypress-e2e-tests-fail-with-esockettimedout-and-request-timeouts-when-calling-localhost-in-circleci/54401)

<div class="topic-metadata">

**Author:** [@KeethCintra](https://discuss.circleci.com/u/KeethCintra)\
**Replies:** 0\
**Last updated:** [February 23, 2026, 3:31pm UTC](https://discuss.circleci.com/t/cypress-e2e-tests-fail-with-esockettimedout-and-request-timeouts-when-calling-localhost-in-circleci/54401 "2026-02-23T15:31:03Z")

</div>

Hi all. Problem Our Cypress E2E tests intermittently fail in CircleCI with ESOCKETTIMEDOUT and “timed out waiting 30000ms” when calling our Flask app on localhost. Sometimes runs pass, sometimes they fail. Typical pat…

---

## [Speedup persist\_to\_workspace](https://discuss.circleci.com/t/speedup-persist-to-workspace/43944)

<div class="topic-metadata">

**Author:** [@eangius](https://discuss.circleci.com/u/eangius)\
**Replies:** 1\
**Last updated:** [January 8, 2026, 12:01am UTC](https://discuss.circleci.com/t/speedup-persist-to-workspace/43944 "2026-01-08T00:01:28Z")

</div>

To speedup multi job workflows, is there a way to tell the persist\_to\_workspace directive to exclude certain folders such as our large python “venv” dependencies? We already have this cached & would like to simply restor…

---

## [Missing uv report in recent cimg/python images](https://discuss.circleci.com/t/missing-uv-report-in-recent-cimg-python-images/54174)

<div class="topic-metadata">

**Author:** [@aviv-julienjehannet](https://discuss.circleci.com/u/aviv-julienjehannet)\
**Replies:** 2\
**Last updated:** [October 21, 2025, 12:55pm UTC](https://discuss.circleci.com/t/missing-uv-report-in-recent-cimg-python-images/54174 "2025-10-21T12:55:13Z")

</div>

Hi, I’ve noticed that uv isn’t mentioned as installed software for the cimg/python despite this change in the Dockerfile.template for 2 months now. Could it be possible to list uv (and the version) in the next releases…

---

## [How to upload Pyhton folder to google drive?](https://discuss.circleci.com/t/how-to-upload-pyhton-folder-to-google-drive/52496)

<div class="topic-metadata">

**Author:** [@Milenko](https://discuss.circleci.com/u/Milenko)\
**Replies:** 8\
**Last updated:** [January 4, 2025, 1:47am UTC](https://discuss.circleci.com/t/how-to-upload-pyhton-folder-to-google-drive/52496 "2025-01-04T01:47:30Z")

</div>

I need some examples. My build step works fine but i do not know how to upload Python folders to google drive.

---

## [Is there a way to cache pyenv, goenv, nvm versions effectively?](https://discuss.circleci.com/t/is-there-a-way-to-cache-pyenv-goenv-nvm-versions-effectively/52115)

<div class="topic-metadata">

**Author:** [@carlosjgp](https://discuss.circleci.com/u/carlosjgp)\
**Replies:** 4\
**Last updated:** [November 14, 2024, 12:34pm UTC](https://discuss.circleci.com/t/is-there-a-way-to-cache-pyenv-goenv-nvm-versions-effectively/52115 "2024-11-14T12:34:19Z")

</div>

Caching fails when trying to speed up installing different versions of pyenv, goenv, nvm One of the possible errors are that the Machine executors have these tools preinstalled but the owner is not circleci user but roo…

---

## [MacOS universal2 python binary](https://discuss.circleci.com/t/macos-universal2-python-binary/52234)

<div class="topic-metadata">

**Author:** [@Geoffr98](https://discuss.circleci.com/u/Geoffr98)\
**Replies:** 0\
**Last updated:** [October 30, 2024, 9:08pm UTC](https://discuss.circleci.com/t/macos-universal2-python-binary/52234 "2024-10-30T21:08:10Z")

</div>

I’m trying to configure my config.yaml to include a version of python with the universal binary. Has anyone been able to do this? (I need it as I’ll be using cython and pyinstaller to create universal binaries)

---

## [No output when tests crash using "circleci tests run"](https://discuss.circleci.com/t/no-output-when-tests-crash-using-circleci-tests-run/51921)

<div class="topic-metadata">

**Author:** [@awesomescot](https://discuss.circleci.com/u/awesomescot)\
**Replies:** 2\
**Last updated:** [September 12, 2024, 7:15pm UTC](https://discuss.circleci.com/t/no-output-when-tests-crash-using-circleci-tests-run/51921 "2024-09-12T19:15:12Z")

</div>

We are running tests in parallel using the circleci cli. This is working great as long as the tests complete without crashing. But if there is a syntax error in any of the tests we simply get the output “Exited with co…

---

## [How to specify Python version in circleCI orb?](https://discuss.circleci.com/t/how-to-specify-python-version-in-circleci-orb/47322)

<div class="topic-metadata">

**Author:** [@adam2392](https://discuss.circleci.com/u/adam2392)\
**Replies:** 3\
**Last updated:** [December 18, 2023, 8:02pm UTC](https://discuss.circleci.com/t/how-to-specify-python-version-in-circleci-orb/47322 "2023-12-18T20:02:28Z")

</div>

Hi, I am using the following orb: CircleCI Developer Hub - circleci/python I am trying to determine how to specify the Python version that is not Python3.8. Is this possible? It says there is a parameter “tag” added, b…

---

## [Maintaining test artefacts when rerunning failed tests](https://discuss.circleci.com/t/maintaining-test-artefacts-when-rerunning-failed-tests/49153)

<div class="topic-metadata">

**Author:** [@shashwatx](https://discuss.circleci.com/u/shashwatx)\
**Replies:** 1\
**Last updated:** [September 5, 2023, 6:59pm UTC](https://discuss.circleci.com/t/maintaining-test-artefacts-when-rerunning-failed-tests/49153 "2023-09-05T18:59:00Z")

</div>

Our workflow triggers a job that launches a suite of functional tests. For these tests, we use parallelism=20 and --split-by=timings. If tests fail, we rerun only the failed tests. Note that the original launch and th…

---

## [Python tests with coverage step failing in Circle CI, passing locally](https://discuss.circleci.com/t/python-tests-with-coverage-step-failing-in-circle-ci-passing-locally/48320)

<div class="topic-metadata">

**Author:** [@sr-murthy](https://discuss.circleci.com/u/sr-murthy)\
**Replies:** 4\
**Last updated:** [June 16, 2023, 10:33pm UTC](https://discuss.circleci.com/t/python-tests-with-coverage-step-failing-in-circle-ci-passing-locally/48320 "2023-06-16T22:33:05Z")

</div>

Hi I’ve set up my project CI to run a “build and test” job - it’s Python and uses pytest as the test runner and coverage for measuring coverage. The command I use, which works locally in my virtual env., is: pip instal…

---

## [Testing and coverage of python code using split tests](https://discuss.circleci.com/t/testing-and-coverage-of-python-code-using-split-tests/44602)

<div class="topic-metadata">

**Author:** [@cscetbon](https://discuss.circleci.com/u/cscetbon)\
**Replies:** 1\
**Last updated:** [February 4, 2023, 12:44am UTC](https://discuss.circleci.com/t/testing-and-coverage-of-python-code-using-split-tests/44602 "2023-02-04T00:44:59Z")

</div>

Hey, I’m trying to run tests in parallel and also collect coverage. I tried to use GitHub - ryanwilsonperkin/pytest-circleci-parallelized: Parallelize pytest across CircleCI workers. but the coverage is totally wrong co…

---

## [Where are python libraries installed?](https://discuss.circleci.com/t/where-are-python-libraries-installed/46649)

<div class="topic-metadata">

**Author:** [@mban1993](https://discuss.circleci.com/u/mban1993)\
**Replies:** 2\
**Last updated:** [February 2, 2023, 8:42pm UTC](https://discuss.circleci.com/t/where-are-python-libraries-installed/46649 "2023-02-02T20:42:36Z")

</div>

As in thread name: when you install some python libraries using pip install -r requirements.txt or maybe using selenium/standalone-chrome:107.0 docker image → WHERE are those installed, how to know their directory/path? …

---

## [Selenium+chromedriver and python - how to make it work?](https://discuss.circleci.com/t/selenium-chromedriver-and-python-how-to-make-it-work/46512)

<div class="topic-metadata">

**Author:** [@mban1993](https://discuss.circleci.com/u/mban1993)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 11:22am UTC](https://discuss.circleci.com/t/selenium-chromedriver-and-python-how-to-make-it-work/46512 "2023-01-05T11:22:40Z")

</div>

I’m trying to integrate my test\_page.py selenium script with circleCI, but after 30 tries it still doesn’t work for me. I’m using chromedriver and python btw. Below is my ACTUAL config.yml, cuz I changed it 10 times - s…

---

## [Including non bash files while authoring an orb](https://discuss.circleci.com/t/including-non-bash-files-while-authoring-an-orb/44166)

<div class="topic-metadata">

**Author:** [@swarajrao](https://discuss.circleci.com/u/swarajrao)\
**Replies:** 2\
**Last updated:** [December 14, 2022, 1:42pm UTC](https://discuss.circleci.com/t/including-non-bash-files-while-authoring-an-orb/44166 "2022-12-14T13:42:10Z")

</div>

I see it’s possible to include bash scripts while authoring an orb (Orbs Concepts - CircleCI and Orb Authoring Process - CircleCI). Using this feature results in the script source code being pasted into the run step alon…

---

## [AWS Config Permissions Not Copying To Second Executor](https://discuss.circleci.com/t/aws-config-permissions-not-copying-to-second-executor/46226)

<div class="topic-metadata">

**Author:** [@sapto](https://discuss.circleci.com/u/sapto)\
**Replies:** 0\
**Last updated:** [November 26, 2022, 5:36pm UTC](https://discuss.circleci.com/t/aws-config-permissions-not-copying-to-second-executor/46226 "2022-11-26T17:36:35Z")

</div>

Goal is simple: to run pytest test suite against remote aws lambdas. it works locally as aws is configured properly, but having trouble reproducing in circleci runner. config.yml: version: 2.1 orbs: python: circleci/…

---

## [How to get Xcode & Python on MacOSX instance](https://discuss.circleci.com/t/how-to-get-xcode-python-on-macosx-instance/46008)

<div class="topic-metadata">

**Author:** [@jtwigg](https://discuss.circleci.com/u/jtwigg)\
**Replies:** 1\
**Last updated:** [November 6, 2022, 1:28pm UTC](https://discuss.circleci.com/t/how-to-get-xcode-python-on-macosx-instance/46008 "2022-11-06T13:28:50Z")

</div>

Im trying to run an macos instance with Xcode, however I’m using python scripts in the process. Python is no longer installed on Mac OSX. How do I get Xcode and Python to co-exist on Circle CI? Installing Brew is ta…

---

## [Python v3.11.0 & python-attr](https://discuss.circleci.com/t/python-v3-11-0-python-attr/45954)

<div class="topic-metadata">

**Author:** [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 7:08pm UTC](https://discuss.circleci.com/t/python-v3-11-0-python-attr/45954 "2022-10-31T19:08:21Z")

</div>

There is a compatibility with this combo that is causing problems with some Python tools. For example, as of the time this issue is opened, pipenv on our cimg/python:3.11.0 images is partially broken. This is an upstream…

---

## [AWS Python SDK - Sending CLI Commands](https://discuss.circleci.com/t/aws-python-sdk-sending-cli-commands/45840)

<div class="topic-metadata">

**Author:** [@veera\_RVR](https://discuss.circleci.com/u/veera_RVR)\
**Replies:** 0\
**Last updated:** [October 21, 2022, 5:38am UTC](https://discuss.circleci.com/t/aws-python-sdk-sending-cli-commands/45840 "2022-10-21T05:38:31Z")

</div>

I know the AWS Python SDK (Boto/Boto3) has resources for the various AWS services (Resources — Boto3 Docs 1.24.95 documentation) but I’m wondering if there’s a resource to send a straight AWS CLI command e.g., so I can c…

---

## [Possible to mix executors within a job or persist database across jobs?](https://discuss.circleci.com/t/possible-to-mix-executors-within-a-job-or-persist-database-across-jobs/41895)

<div class="topic-metadata">

**Author:** [@Apreche](https://discuss.circleci.com/u/Apreche)\
**Replies:** 1\
**Last updated:** [October 10, 2022, 2:23pm UTC](https://discuss.circleci.com/t/possible-to-mix-executors-within-a-job-or-persist-database-across-jobs/41895 "2022-10-10T14:23:37Z")

</div>

I have a relatively simple Python application I would like to test, there’s just one catch. We are using a separate system, flyway, for our database migrations. In order to run the tests we must follow these steps: Cre…

---

## [Python venv setup no longer working as expected, build failing](https://discuss.circleci.com/t/python-venv-setup-no-longer-working-as-expected-build-failing/45531)

<div class="topic-metadata">

**Author:** [@eorfan](https://discuss.circleci.com/u/eorfan)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 7:36am UTC](https://discuss.circleci.com/t/python-venv-setup-no-longer-working-as-expected-build-failing/45531 "2022-09-29T07:36:39Z")

</div>

Hello, My Django project builds have started failing as of Friday, Sept 23 2022. This is the error that I receive: #!/bin/bash -eo pipefail python -m venv venv . venv/bin/activate pip install --upgrade pip pip install…

---

## [PythonAnyWhere Integration](https://discuss.circleci.com/t/pythonanywhere-integration/44852)

<div class="topic-metadata">

**Author:** [@Tolosa527](https://discuss.circleci.com/u/Tolosa527)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 11:06am UTC](https://discuss.circleci.com/t/pythonanywhere-integration/44852 "2022-09-20T11:06:23Z")

</div>

Hello community, I am following this tutorial for deploying the source code in PythonAnyWhere: Article . What I did not see in this tutorial is if I have to go to the web app and reload it. In the configuration file the …

---

## [Conditional Workflow: allOf error](https://discuss.circleci.com/t/conditional-workflow-allof-error/44941)

<div class="topic-metadata">

**Author:** [@Tolosa527](https://discuss.circleci.com/u/Tolosa527)\
**Replies:** 1\
**Last updated:** [August 3, 2022, 11:15am UTC](https://discuss.circleci.com/t/conditional-workflow-allof-error/44941 "2022-08-03T11:15:23Z")

</div>

Hola guys, This tutorial: link explain how to trigger a pipeline from github actions and specify how to protect us for duplicated executions. In the tutorial we can see we have to add the following code to our config fi…

---

## [Same source code run conditional jobs](https://discuss.circleci.com/t/same-source-code-run-conditional-jobs/44841)

<div class="topic-metadata">

**Author:** [@Tolosa527](https://discuss.circleci.com/u/Tolosa527)\
**Replies:** 3\
**Last updated:** [July 27, 2022, 2:16pm UTC](https://discuss.circleci.com/t/same-source-code-run-conditional-jobs/44841 "2022-07-27T14:16:44Z")

</div>

Hello community, I have to deploy two different apps hosted in PythonAnyWhere (prod and stage) based on the same master branch. What we use to do is, first manually deploy the app that lives in the stage environment, te…

---

## [Docker container build works locally, but not on Ubuntu runner. Fails on building uwsgi](https://discuss.circleci.com/t/docker-container-build-works-locally-but-not-on-ubuntu-runner-fails-on-building-uwsgi/44426)

<div class="topic-metadata">

**Author:** [@grahamalama](https://discuss.circleci.com/u/grahamalama)\
**Replies:** 0\
**Last updated:** [June 14, 2022, 1:51pm UTC](https://discuss.circleci.com/t/docker-container-build-works-locally-but-not-on-ubuntu-runner-fails-on-building-uwsgi/44426 "2022-06-14T13:51:43Z")

</div>

We have a Dockerfile that starts # syntax=docker/dockerfile:1.3 FROM python:3.10.5-bullseye as compile # Get rustup https://rustup.rs/ for canonicaljson-rs # minimal profile https://rust-lang.github.io/rustup/concepts…

---

## [Error while running pytest for my project in circleCI: Requested setting INSTALLED\_APPS or could not find a Django project](https://discuss.circleci.com/t/error-while-running-pytest-for-my-project-in-circleci-requested-setting-installed-apps-or-could-not-find-a-django-project/44238)

<div class="topic-metadata">

**Author:** [@Jinr0h404](https://discuss.circleci.com/u/Jinr0h404)\
**Replies:** 1\
**Last updated:** [June 5, 2022, 8:14am UTC](https://discuss.circleci.com/t/error-while-running-pytest-for-my-project-in-circleci-requested-setting-installed-apps-or-could-not-find-a-django-project/44238 "2022-06-05T08:14:00Z")

</div>

Hello, I am new to circleCI, I had already made an attempt and had gone through Travis but for this project I want to use circleCi. I work with Django, Python and I use pytest-django for my test. Locally, my tests work …

---

## [Npm ERR! Cannot find module './install.js'](https://discuss.circleci.com/t/npm-err-cannot-find-module-install-js/43618)

<div class="topic-metadata">

**Author:** [@dj-ash](https://discuss.circleci.com/u/dj-ash)\
**Replies:** 0\
**Last updated:** [April 9, 2022, 9:56am UTC](https://discuss.circleci.com/t/npm-err-cannot-find-module-install-js/43618 "2022-04-09T09:56:30Z")

</div>

My project config.yml uses orb serverless: circleci/serverless-framework@1.0.1 When trying to do sls plugin installation, it gives problem related to node dependencies - where’s that coming from. My project is a python …

---

## [Installing specific version of Python on Windows executor](https://discuss.circleci.com/t/installing-specific-version-of-python-on-windows-executor/43520)

<div class="topic-metadata">

**Author:** [@oel2](https://discuss.circleci.com/u/oel2)\
**Replies:** 1\
**Last updated:** [April 7, 2022, 1:18pm UTC](https://discuss.circleci.com/t/installing-specific-version-of-python-on-windows-executor/43520 "2022-04-07T13:18:28Z")

</div>

Hello, I’m trying to run a integration tests job on a windows executor. Our application is using Python 3.7.0 so I’m trying to install this specific version using choco but failing to do so. This is the output from th…

---

## [Save/restore cache ignoring a directory?](https://discuss.circleci.com/t/save-restore-cache-ignoring-a-directory/43330)

<div class="topic-metadata">

**Author:** [@samuelhwilliams](https://discuss.circleci.com/u/samuelhwilliams)\
**Replies:** 1\
**Last updated:** [March 22, 2022, 11:18am UTC](https://discuss.circleci.com/t/save-restore-cache-ignoring-a-directory/43330 "2022-03-22T11:18:47Z")

</div>

I’m trying to set up a linting job using flake8 to check some python code. I’m installing requirements and then saving them to a cache to speed up the build. This works fine the first time through the workflow (when not …

---

## [Django Testing in CircleCI with multiple markets/databases](https://discuss.circleci.com/t/django-testing-in-circleci-with-multiple-markets-databases/42825)

<div class="topic-metadata">

**Author:** [@Thorbenl](https://discuss.circleci.com/u/Thorbenl)\
**Replies:** 0\
**Last updated:** [February 3, 2022, 6:01pm UTC](https://discuss.circleci.com/t/django-testing-in-circleci-with-multiple-markets-databases/42825 "2022-02-03T18:01:01Z")

</div>

hey :slight\_smile: We are testing our django application in circleci. Our migrations take a while to load and migrate, so we are wondering if one can reuse an existing database? Our setup looks like this: version: 2.1…

---

## [Upgrading to the convenience image breaks everything](https://discuss.circleci.com/t/upgrading-to-the-convenience-image-breaks-everything/42746)

<div class="topic-metadata">

**Author:** [@Thorbenl](https://discuss.circleci.com/u/Thorbenl)\
**Replies:** 2\
**Last updated:** [February 3, 2022, 10:52am UTC](https://discuss.circleci.com/t/upgrading-to-the-convenience-image-breaks-everything/42746 "2022-02-03T10:52:34Z")

</div>

Hey :slight\_smile: until recently, we have used the following image for our django project on circleci: image: circleci/python:3.9.7-node-browsers Now we are eager to upgrade to the new convenience image: image: cimg…

[Next page](https://discuss.circleci.com/tag/python/97.md?match_all_tags=true&page=1&tags%5B%5D=python)
