Skip to content

import failed for Pants 1.25.0 when global python is not equal to local #511

@ThijsBroersen

Description

@ThijsBroersen

After migrating to Pants 1.25.0 (from 1.17.0) the intellij 2019.3 project import failed:

**** Failed to install dotmap-1.2.20 (caused by: NonZeroExit("received exit code 127 during execution of `['/home/name/.pyenv/shims/python3.6', '-s', '-', 'bdist_wheel', '--dist-dir=/tmp/tmp2fdtz_d6']` while trying to execute `['/home/name/.pyenv/shims/python3.6', '-s', '-', 'bdist_wheel', '--dist-dir=/tmp/tmp2fdtz_d6']`",)
)stdout:
stderr:
pyenv: python3.6: command not found
The `python3.6' command exists in these Python versions:
  3.6.10

Pants works fine from a shell, also with other version (e.g. 3.7.7). When using python 3.7.7 the command not found points to python3.7m
My global python version is 3.8.2.
When I set the global python version to 3.6.10 (pyenv global 3.6.10), I can import the project. So it looks like the scope got lost for the current intellij pants plugin icw Pants 1.25.
Also, dotmap-1.2.20 seems a bit old? 2017?

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