Recent Docker Compose Intellij Python bug

已回答

When attempting to run my python code via a docker compose python interpreter I get the following error.
Can't run remote python Interperter: Docker Account not specified

I initially had a slight bug with a python pytest, so I figured I would update intellij and my plugins in the hopes it would fix my minor issue.
Big mistake, in a much worst place now as I can't even run anything anymore.
I now when running the same exact configuration as prior get the above error.
The real kicker is nothing in the project requires a docker account, never did.

I updated to the latest intellij (can't remember which version from (couldn't have been more than 3 months old),
and a few plugins one of which was docker (which was also no more than 1-2 months old).

 

Also Important to note, docker-compose up works 100% fine still via terminal


Additional Info:
IntelliJ IDEA 2018.2.2 (Ultimate Edition)
Build #IU-182.4129.33, built on August 21, 2018
Subscription is active until June 5, 2019
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 8.1 6.3

Seemingly Relevant Plugins:
Python 2018.2.182.4129.33
Docker Version: 182.3684.90

Running Docker via docker machine to windows docker toolbox

 docker version = 18.03.0-ce build 0520e24302

1

Hello,

Could you please try to open "PyCharm menu Settings > Project Interpreter > "gear" icon > More... > Edit" and check that Server field is set (click OK in the dialog to ensure that).

0

I just updated to intellij: 2018.2.3 and I was able to get parts of the application running again.

Interesting that they note that there was some docker changes in the minor release. I'll post back if I hit any issues, but everything seems to be fine right now.

 

In any case I cleared out all of my docker containers, stopped all of them, docker system prune.

Removed all of my python remote interpreters (File -> project structure, then under SDK's deleting all python interpers).

Rebooted entire system, relaunched docker toolbox, relaunched intellij, setup a fresh remote docker-compose interpreter.

 

 

0
Avatar
Permanently deleted user

Same bug for

IntelliJ IDEA 2018.3.6 (Ultimate Edition)
Build #IU-183.6156.11, built on March 25, 2019
Licensed to Pavel Vyazankin
You have a perpetual fallback license for this version
Subscription is active until April 11, 2020
JRE: 1.8.0_152-release-1343-b28 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.5

0

@Pavel Vyazankin

We had a known issue in 2018 version, here's a possible workaround: https://youtrack.jetbrains.com/issue/PY-25230#focus=streamItem-27-3172340.0-0

But I strongly suggest to update to 2019.2

0

请先登录再写评论。