Tox configuration with CircleCI 2.0

I can’t get any version of python other than python2.7 to run properly with just the tox.ini file.

The output for any of the py3x environments looks like the following:
py34 create: /home/ubuntu/cbc-casper/.tox/py34
ERROR: Error creating virtualenv. Note that some special characters (e.g. ‘:’ and unicode symbols) in paths are not supported by virtualenv. Error details: InvocationError(“Failed to get version_info for python3.4: pyenv: python3.4: command not found\n\nThe `python3.4’ command exists in these Python versions:\n 3.4.3\n 3.4.4\n\n”,)

Any assistance would be great.
Thanks!

Seems like a new circleci bug. My workaround: use python:3.6 image

### =============================================================
### This configuration file is used by CircleCI build server
### https://circleci.com/docs/config-sample
### =============================================================

version: 2

jobs:

  # using tox
  toxify:

      docker:
        - image: python:3.6

      steps:

        - checkout

        - run: pip install tox && tox

workflows:
  version: 2

  myproj:
    jobs:
      - toxify

Thanks for the tip @halfer :slight_smile:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.