Comments (2)
I created a minimal repo to illustrate the issue: https://github.com/slvrtrn/pants-python-3.9-issue
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.
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)
- master CI broken
- intellij 2020.1 support HOT 1
- use .python-version on project import
- intellij plugin uses --target-spec-file which was removed HOT 2
- import failed for Pants 1.25.0 when global python is not equal to local HOT 2
- Can't run pants on Mac with IntelliJ 2020.1.1
- No target roots found in build graph HOT 3
- Plugin incompatible with Intellij 2020.2 HOT 13
- "Rerun failed tests" for Scala crashes
- Detect and use Python virtual environment HOT 1
- Pants and Intellij 2020.3 HOT 6
- Travis CI is broken
- Propagate scalac plugin to IntelliJ module
- Incorrect module sources path HOT 1
- Import Project Failure, InvalidLocaleError: Your system's preferred encoding is `US-ASCII`, but Pants requires `UTF-8`
- Update for IntelliJ 2021.1 HOT 6
- Can't find Scala SDK for org.scala-lang:scala-library:2.13.5
- Cleanup scripts
- Investigate long runninf t
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-pants-plugin.