Giter VIP home page Giter VIP logo

Comments (2)

slvrtrn avatar slvrtrn commented on June 24, 2024

I created a minimal repo to illustrate the issue: https://github.com/slvrtrn/pants-python-3.9-issue

image

and the log says

2021-05-06 11:26:22,750 [  46140]   INFO - pants.model.SimpleExportResult - Exit code 1 
2021-05-06 11:26:22,750 [  46140]   INFO - pants.model.SimpleExportResult - �[31mNo valid Python interpreter found. For `pants_version = "1.30.0"`, Pants requires Python 3.6, 3.7, or 3.8 to run. Please check that a valid interpreter is installed and on your $PATH.�[0m

in the actual terminal, everything works fine

serge@abyss ~/work/pants-python-3.9-issue
% ./pants compile :: 

<<<snip>>>

New virtual environment successfully created at /home/serge/.cache/pants/setup/bootstrap-Linux-x86_64/1.30.0_py38.
09:51:36 [INFO] initializing pantsd...
09:51:36 [INFO] Attempting to fetch watchman binary from: https://binaries.pantsbuild.org/bin/watchman/linux/x86_64/4.9.0-pants1/watchman ...
100% .................................................. 34581 KB 2.755s
09:51:39 [INFO] Fetched watchman binary from: https://binaries.pantsbuild.org/bin/watchman/linux/x86_64/4.9.0-pants1/watchman .
09:51:39 [INFO] pantsd initialized.

11:51:35 00:00 [main]
               (To run a reporting server: ./pants server)
11:51:39 00:04   [setup]
11:51:39 00:04     [parse]
               Executing tasks in goals: bootstrap -> imports -> unpack-jars -> unpack-wheels -> deferred-sources -> native-compile -> gen -> jvm-platform-validate -> resolve -> compile
11:51:39 00:04   [bootstrap]
11:51:39 00:04     [substitute-aliased-targets]
11:51:39 00:04     [jar-dependency-management]
11:51:39 00:04     [bootstrap-jvm-tools]
11:51:39 00:04     [provide-tools-jar]
11:51:39 00:04   [imports]
11:51:39 00:04     [ivy-imports]
11:51:39 00:04   [unpack-jars]
11:51:39 00:04     [unpack-jars]
11:51:39 00:04   [unpack-wheels]
11:51:39 00:04     [unpack-wheels]
11:51:39 00:04   [deferred-sources]
11:51:39 00:04     [deferred-sources]
11:51:39 00:04   [native-compile]
11:51:39 00:04     [conan-prep]
11:51:39 00:04     [conan-fetch]
11:51:39 00:04     [c-for-ctypes]
11:51:39 00:04     [cpp-for-ctypes]
11:51:39 00:04   [gen]
11:51:39 00:04     [protoc]
11:51:39 00:04     [thrift-java]
11:51:39 00:04     [thrift-py]
11:51:39 00:04     [py-thrift-namespace-clash-check]
11:51:39 00:04     [grpcio-prep]
11:51:39 00:04     [grpcio-run]
11:51:39 00:04   [jvm-platform-validate]
11:51:39 00:04     [jvm-platform-validate]
11:51:39 00:04   [resolve]

11:51:41 00:06       [coursier]
11:51:44 00:09       [coursier]
11:51:45 00:10   [compile]
11:51:45 00:10     [compile-jvm-prep-command]
11:51:45 00:10       [jvm_prep_command]
11:51:45 00:10     [compile-prep-command]
11:51:45 00:10     [compile]
11:51:45 00:10     [rsc]
11:51:45 00:10       [cache] 
                   No cached artifacts for 1 target.
                   Invalidated 1 target.
11:51:45 00:10       [isolation-mixed-pool-bootstrap] 
                   [1/1] Compiling 1 mixed source in 1 target (src/scala/com/github/slvrtrn:hello).

<<<snip>>>

from intellij-pants-plugin.

slvrtrn avatar slvrtrn commented on June 24, 2024

So, this seems to be a duplicate of #505

If I run the IDEA like this

% ~/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/202.8194.7/bin/idea.sh &

and NOT from the Toolbox, the correct version (3.8.6 in my case) is picked up by IDEA

If I run it from Toolbox, the default Python version is used (3.9.1) despite me having pyenv global 3.8.6
In other words, Pyenv is ignored completely.

from intellij-pants-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.