Skip to content

Issues while running nox to do the local development #660

@sks444

Description

@sks444

Our development guide recommends to use nox for local development. But I have been facing few challenges while running it locally on mac system.

  • nox -- migrate --noinput and nox -- sample_data results in following error:
nox > Running session dev
nox > Session dev skipped: Python interpreter 3.5 not found.
  • Whereas while running nox -s lint I get the following error:
[INFO] Installing environment for https://github.com/psf/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/Users/sks/sks444/junction/.nox/lint-3-7/bin/python', '-mvirtualenv', '/Users/sks/.cache/pre-commit/reposx0jtqg6/py_env-python3.6', '-p', 'python3.6')
return code: 1
expected return code: 0
stdout:
    RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.6'

stderr: (none)
Check the log at /Users/sks/.cache/pre-commit/pre-commit.log
nox > Command pre-commit run --all-files failed with exit code 1
nox > Session lint-3.7 failed.
nox > Running session lint-3.8
nox > Session lint-3.8 skipped: Python interpreter 3.8 not found.
nox > Ran multiple sessions:
nox > * lint-3.5: skipped
nox > * lint-3.6: skipped
nox > * lint-3.7: failed
nox > * lint-3.8: skipped

It seems we need to have Python 3.5 and Python 3.6 installed in our system to make these command works. But I already have two latest version of Python: (3.7 and 3. 8), shouldn't that be enough, should I go ahead and install the other versions of Python?

On a further note nox -s tests is failing with a different error:

nox > Error while collecting sessions.
nox > Sessions not found: tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions