Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Fix CircleCI tox env#362

Merged
CarlBeek merged 1 commit intodevfrom
fix_ci-2
May 16, 2023
Merged

Fix CircleCI tox env#362
CarlBeek merged 1 commit intodevfrom
fix_ci-2

Conversation

@hwwhww
Copy link
Copy Markdown
Contributor

@hwwhww hwwhww commented May 16, 2023

Thank @CarlBeek for finding and digging into this issue first.

Issue

I believe somehow, the CircleCI cimg/python:3.8 image was updated and led us having this problem: https://techoverflow.net/2022/02/03/how-to-fix-tox-attributeerror-module-virtualenv-create-via_global_ref-builtin-cpython-mac_os-has-no-attribute-cpython2macosarmframework/

How did I fix it

  • Remove --user command: Install and use tox in the default Python env (/home/circleci/.pyenv/shims/python) rather than /home/circleci/.pyenv/versions/3.8.16/lib/python3.8/site-packages.
  • Run the default tox (/home/circleci/.pyenv/shims/tox)

@hwwhww hwwhww changed the base branch from master to dev May 16, 2023 10:33
@CarlBeek
Copy link
Copy Markdown
Collaborator

Thanks for getting to the bottom of this @hwwhww! As a bonus, I like that we use the default tox now, it seems a more robust pattern

@CarlBeek CarlBeek merged commit 9ef2e23 into dev May 16, 2023
@CarlBeek CarlBeek deleted the fix_ci-2 branch May 16, 2023 14:08
@CarlBeek CarlBeek mentioned this pull request Aug 25, 2023
1 task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants