Pycharm taking too long to update skeletons
Answered
Hello,
I'm working with Pycharm for OS X with Docker, and since I updated to v2018.1 (still happens in v2018.1.1) in some projects skeleton updating takes a really long time - more than an hour -, and what's worse, if I try to launch the Django server during that process, the application will freeze and stop responding.
What I've seen is that in all of the projects, the problem seems to be with the Crypto library, because if I click the progress bar next to the message in the bottom of the window, it always seems to be loading Crypto.Cipher._ARC4 (see attached image)
Is there any solution to this?
Thanks
Please sign in to leave a comment.
Hi! Sounds similar to PY-29673, could you please attach idea.log from Help | Show Log in ... there or file a new issue in our bug tracker?
Hi Pavel! thanks for the quick response.
I've created a new issue in the bug tracker. Here's the link: https://youtrack.jetbrains.com/issue/PY-29757
Is there any news for this issue?
I have the same problem trying to run docker-compose over Docker Toolbox for Windows.
PyCharm 2018.3.4 (Professional Edition)
Build #PY-183.5429.31, built on January 29, 2019
Subscription is active until January 4, 2020
JRE: 1.8.0_152-release-1343-b26 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
@Pedro17lopes
Your issue might not be related to thread starter (it should be fixed in your version, and was on MacOS). Your issue is probably specific to Windows. Can you please submit a support request at https://intellij-support.jetbrains.com/hc/en-us/?pycharm or from within PyCharm's Help menu, providing the steps to reproduce and the logs according to https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
?
I'm experiencing this too. Updating skeletons just hangs forever.
@Blake
Do you use Docker Machine?
@Sergey Not sure I understand the question. I use docker-compose to run my environment-- and the run configuration that generated the log file above was using docker-compose. I have docker-machine installed on my computer, fwiw-- but I don't really know the particulars of how all the moby pieces fit together, so I'm not sure I know how to answer your question.
Sorry, I should have been more specific.
I mean in PyCharm settings File | Settings | Build, Execution, Deployment | Docker
Which option is used?
@Sergey Karpov, this happens to me. I use Docker for Mac. 2018 15" MBP 6-core i7 2.6GHz 16GB. It only happens when I pull a new version of the image. I have uploaded logs here, as you can see the process took about 13 minutes this time: https://pastebin.com/wdvakZ5E
Hi Sepbot,
Do you use Docker Machine in Preferences | Build, Execution, Deployment | Docker?
@Sergey Karpov, No I use Docker for Mac. See screenshot below:
Could you please specify the steps for reproducing?
Which docker image(s) do you use when the problem appears?
Sergey Karpov,
I have created the following Docker image: https://hub.docker.com/r/sepbot/pycharm/tags
These are the required files to create the container for yourself:
Dockerfile: https://pastebin.com/v4GahVpE
requirements.txt: https://pastebin.com/FiErnfrM
You can reproduce the problem by adding a new Python Docker interpreter and setting it to the provided image and the interpreter path needs to be python3.
I have confirmed the slowness on Mac using Docker for Mac and on Linux (ubuntu 18.04) using Unix Socket.
Thanks a lot for providing me with a docker image!
I can reproduce it on my side. Here is a corresponding bug report https://youtrack.jetbrains.com/issue/PY-35979 , please upvote and follow for updates.
We checked with docker-compose and it seems to be much faster. So you may want to use it as a workaround.
I've had a similar issue with 2021.2, with no Docker, couldn't find the answer. Finally - my antivirus was guilty.