Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CircleCI tox env #362

Merged
merged 1 commit into from
May 16, 2023
Merged

Fix CircleCI tox env #362

merged 1 commit into from
May 16, 2023

Conversation

hwwhww
Copy link
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
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants