I’m converting a v1 to a v2.0 circleci. I have the following section in my config.yml:
- run:
name: Install dependencies using requirements.txt
command: |
python -m virtualenv venv
. venv/bin/activate
pip -q install -r requirements.txt
pip install pytest
It’s crashing during the python -m virtualenv venv step with:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/site-packages/virtualenv.py", line 238, in <module>
class Logger(object):
File "/usr/local/lib/python3.7/site-packages/virtualenv.py", line 245, in Logger
DEBUG = logging.DEBUG
AttributeError: module 'logging' has no attribute 'DEBUG'
Exited with code 1
It hasn’t even done anything yet, so I’m not sure what’s wrong with it…
Possibly related is that it says I’m using version 1 of circleci, but I’m pretty sure it’s using my config.yml which is version 2…