pycharm always “uploading pycharm helpers” to same remote python interpreter when starts












17















When I start PyCharm for remote python interpreter, it always performs "Uploading PyCharm helpers", even when the remote machine IP is the same and already containing previously uploaded helpers. Is the behaviour correct?










share|improve this question





























    17















    When I start PyCharm for remote python interpreter, it always performs "Uploading PyCharm helpers", even when the remote machine IP is the same and already containing previously uploaded helpers. Is the behaviour correct?










    share|improve this question



























      17












      17








      17


      2






      When I start PyCharm for remote python interpreter, it always performs "Uploading PyCharm helpers", even when the remote machine IP is the same and already containing previously uploaded helpers. Is the behaviour correct?










      share|improve this question
















      When I start PyCharm for remote python interpreter, it always performs "Uploading PyCharm helpers", even when the remote machine IP is the same and already containing previously uploaded helpers. Is the behaviour correct?







      python pycharm remote-debugging






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 15 '17 at 5:22









      utapyngo

      4,23423057




      4,23423057










      asked Dec 7 '16 at 17:16









      user155322user155322

      342613




      342613
























          5 Answers
          5






          active

          oldest

          votes


















          8














          This is a well known problem that can be a major obstacle in productivity especially if you use disposable instances in your workflow. It leads to a forced coffee break of 20 minutes every time you want to connect to a remote system. Unacceptable.



          Seems like PyCharm creates a build.txt file in the remote helper folder that just has the current PyCharm build number as its contents, for instance:



          PY-171.4694.38


          So it's possible to upload the helpers manually by using rsync on /Applications/PyCharm.app/Contents/helpers/ and finally manually creating a build.txt file with your current build number. After that, PyCharm should not attempt to re-upload them.



          Example:



           $ rsync -avz /Applications/PyCharm.app/Contents/helpers/ cluster:/home/xapple/.pycharm_helpers/
          $ echo "PY-171.4694.38" > /home/xapple/.pycharm_helpers/build.txt
          $ python /home/xapple/.pycharm_helpers/pydev/setup_cython.py build_ext --inplace





          share|improve this answer

































            0














            According to the docs,




            PyCharm checks remote helpers version on every remote run, so if you update your PyCharm version, the new helpers will be uploaded automatically and you don't need to recreate remote interpreter.







            share|improve this answer































              0














              fast (less than 3 second between me an digitalocean) solution inspired by excellent xApple's answer

              on remote server:



              export SOURCE=<your ip>
              export PORT=9000
              export HELPERS=$HOME/.pycharm_helpers
              # PyCharm Help -> About
              export BUILD=PY-172.4343.24 # 2017/10/11
              cd $HELPERS
              rm -fr *
              # my OS - ubuntu, change firewall rules to yours if you're not so lucky
              sudo ufw allow from $SOURCE proto tcp to any port $PORT
              netcat -l -v -p $PORT | tar xz # here you waiting for connection
              # after finish
              sudo ufw delete allow from $SOURCE proto tcp to any port $PORT
              echo -n $BUILD > build.txt
              python $HELPERS/pydev/setup_cython.py build_ext --inplace


              on your workstation:



              export TARGET=<remote server ip>
              export PORT=9000
              export HELPERS=<path to helpers> # for me it's $HOME/opt/pycharm-2016.3/helpers
              cd $HELPERS
              tar cfz - . | netcat -v $TARGET $PORT





              share|improve this answer































                0














                Turning off the firewall addressed the problem in my case (macOS - Mojave). Note that this is not a general solution as it was not tested in any other environments/OS.






                share|improve this answer


























                • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

                  – Sankumarsingh
                  Nov 23 '18 at 6:46











                • edited to accommodate the above comment. This is a solution to at least some users (which includes myself) and doesn't require any further clarifications.

                  – chunjy92
                  Nov 24 '18 at 1:44



















                0














                Note that -- at least as late as version 2018.3.x -- PyCharm also appears to require re-uploading of the helpers when the local network connection changes as well, for some reason.



                What I've observed in my case is that if, while PyCharm remains running, I relocate my laptop and connect to a different LAN, the next remote debugging session I initiate will trigger the lengthy helper upload. It turns out that the contents of the helpers directory actually uploaded in this case are exactly identical to the contents already present in that directory on the remote system (I compared them), so this upload is entirely superfluous, but PyCharm isn't able to detect this.



                As there's no way I know of in PyCharm to bypass or cancel automatic helpers upload, the only recourse is to completely exit from PyCharm (close all open project windows) after each change of network connection and restart the IDE. In my experience, this will cause the helper upload to succeed in the "checking remote helpers" phase, before actually uploading all the helpers again. Of course, this is major annoyance if you have multiple projects open, but it's faster than waiting the (tens of) minutes for the agonizingly slow helpers upload to complete.



                All of what other responders describe for the course of action to take when changing PyCharm versions is true. It is sufficient to use rsync, ftp, scp, or whatever to transfer the contents of the new local helpers directory (on Linux, a subdirectory of where the app is installed) to the remote system (on Linux, ~/.pycharm_helpers, where ~ is the home directory of the user name used for the remote debugging session), and update the remote build.txt in the helpers directory with the new PyCharm version.






                share|improve this answer























                  Your Answer






                  StackExchange.ifUsing("editor", function () {
                  StackExchange.using("externalEditor", function () {
                  StackExchange.using("snippets", function () {
                  StackExchange.snippets.init();
                  });
                  });
                  }, "code-snippets");

                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "1"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f41023513%2fpycharm-always-uploading-pycharm-helpers-to-same-remote-python-interpreter-whe%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  5 Answers
                  5






                  active

                  oldest

                  votes








                  5 Answers
                  5






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  8














                  This is a well known problem that can be a major obstacle in productivity especially if you use disposable instances in your workflow. It leads to a forced coffee break of 20 minutes every time you want to connect to a remote system. Unacceptable.



                  Seems like PyCharm creates a build.txt file in the remote helper folder that just has the current PyCharm build number as its contents, for instance:



                  PY-171.4694.38


                  So it's possible to upload the helpers manually by using rsync on /Applications/PyCharm.app/Contents/helpers/ and finally manually creating a build.txt file with your current build number. After that, PyCharm should not attempt to re-upload them.



                  Example:



                   $ rsync -avz /Applications/PyCharm.app/Contents/helpers/ cluster:/home/xapple/.pycharm_helpers/
                  $ echo "PY-171.4694.38" > /home/xapple/.pycharm_helpers/build.txt
                  $ python /home/xapple/.pycharm_helpers/pydev/setup_cython.py build_ext --inplace





                  share|improve this answer






























                    8














                    This is a well known problem that can be a major obstacle in productivity especially if you use disposable instances in your workflow. It leads to a forced coffee break of 20 minutes every time you want to connect to a remote system. Unacceptable.



                    Seems like PyCharm creates a build.txt file in the remote helper folder that just has the current PyCharm build number as its contents, for instance:



                    PY-171.4694.38


                    So it's possible to upload the helpers manually by using rsync on /Applications/PyCharm.app/Contents/helpers/ and finally manually creating a build.txt file with your current build number. After that, PyCharm should not attempt to re-upload them.



                    Example:



                     $ rsync -avz /Applications/PyCharm.app/Contents/helpers/ cluster:/home/xapple/.pycharm_helpers/
                    $ echo "PY-171.4694.38" > /home/xapple/.pycharm_helpers/build.txt
                    $ python /home/xapple/.pycharm_helpers/pydev/setup_cython.py build_ext --inplace





                    share|improve this answer




























                      8












                      8








                      8







                      This is a well known problem that can be a major obstacle in productivity especially if you use disposable instances in your workflow. It leads to a forced coffee break of 20 minutes every time you want to connect to a remote system. Unacceptable.



                      Seems like PyCharm creates a build.txt file in the remote helper folder that just has the current PyCharm build number as its contents, for instance:



                      PY-171.4694.38


                      So it's possible to upload the helpers manually by using rsync on /Applications/PyCharm.app/Contents/helpers/ and finally manually creating a build.txt file with your current build number. After that, PyCharm should not attempt to re-upload them.



                      Example:



                       $ rsync -avz /Applications/PyCharm.app/Contents/helpers/ cluster:/home/xapple/.pycharm_helpers/
                      $ echo "PY-171.4694.38" > /home/xapple/.pycharm_helpers/build.txt
                      $ python /home/xapple/.pycharm_helpers/pydev/setup_cython.py build_ext --inplace





                      share|improve this answer















                      This is a well known problem that can be a major obstacle in productivity especially if you use disposable instances in your workflow. It leads to a forced coffee break of 20 minutes every time you want to connect to a remote system. Unacceptable.



                      Seems like PyCharm creates a build.txt file in the remote helper folder that just has the current PyCharm build number as its contents, for instance:



                      PY-171.4694.38


                      So it's possible to upload the helpers manually by using rsync on /Applications/PyCharm.app/Contents/helpers/ and finally manually creating a build.txt file with your current build number. After that, PyCharm should not attempt to re-upload them.



                      Example:



                       $ rsync -avz /Applications/PyCharm.app/Contents/helpers/ cluster:/home/xapple/.pycharm_helpers/
                      $ echo "PY-171.4694.38" > /home/xapple/.pycharm_helpers/build.txt
                      $ python /home/xapple/.pycharm_helpers/pydev/setup_cython.py build_ext --inplace






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jun 19 '17 at 13:30

























                      answered Jun 19 '17 at 11:49









                      xApplexApple

                      2,68273141




                      2,68273141

























                          0














                          According to the docs,




                          PyCharm checks remote helpers version on every remote run, so if you update your PyCharm version, the new helpers will be uploaded automatically and you don't need to recreate remote interpreter.







                          share|improve this answer




























                            0














                            According to the docs,




                            PyCharm checks remote helpers version on every remote run, so if you update your PyCharm version, the new helpers will be uploaded automatically and you don't need to recreate remote interpreter.







                            share|improve this answer


























                              0












                              0








                              0







                              According to the docs,




                              PyCharm checks remote helpers version on every remote run, so if you update your PyCharm version, the new helpers will be uploaded automatically and you don't need to recreate remote interpreter.







                              share|improve this answer













                              According to the docs,




                              PyCharm checks remote helpers version on every remote run, so if you update your PyCharm version, the new helpers will be uploaded automatically and you don't need to recreate remote interpreter.








                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered May 15 '17 at 5:21









                              utapyngoutapyngo

                              4,23423057




                              4,23423057























                                  0














                                  fast (less than 3 second between me an digitalocean) solution inspired by excellent xApple's answer

                                  on remote server:



                                  export SOURCE=<your ip>
                                  export PORT=9000
                                  export HELPERS=$HOME/.pycharm_helpers
                                  # PyCharm Help -> About
                                  export BUILD=PY-172.4343.24 # 2017/10/11
                                  cd $HELPERS
                                  rm -fr *
                                  # my OS - ubuntu, change firewall rules to yours if you're not so lucky
                                  sudo ufw allow from $SOURCE proto tcp to any port $PORT
                                  netcat -l -v -p $PORT | tar xz # here you waiting for connection
                                  # after finish
                                  sudo ufw delete allow from $SOURCE proto tcp to any port $PORT
                                  echo -n $BUILD > build.txt
                                  python $HELPERS/pydev/setup_cython.py build_ext --inplace


                                  on your workstation:



                                  export TARGET=<remote server ip>
                                  export PORT=9000
                                  export HELPERS=<path to helpers> # for me it's $HOME/opt/pycharm-2016.3/helpers
                                  cd $HELPERS
                                  tar cfz - . | netcat -v $TARGET $PORT





                                  share|improve this answer




























                                    0














                                    fast (less than 3 second between me an digitalocean) solution inspired by excellent xApple's answer

                                    on remote server:



                                    export SOURCE=<your ip>
                                    export PORT=9000
                                    export HELPERS=$HOME/.pycharm_helpers
                                    # PyCharm Help -> About
                                    export BUILD=PY-172.4343.24 # 2017/10/11
                                    cd $HELPERS
                                    rm -fr *
                                    # my OS - ubuntu, change firewall rules to yours if you're not so lucky
                                    sudo ufw allow from $SOURCE proto tcp to any port $PORT
                                    netcat -l -v -p $PORT | tar xz # here you waiting for connection
                                    # after finish
                                    sudo ufw delete allow from $SOURCE proto tcp to any port $PORT
                                    echo -n $BUILD > build.txt
                                    python $HELPERS/pydev/setup_cython.py build_ext --inplace


                                    on your workstation:



                                    export TARGET=<remote server ip>
                                    export PORT=9000
                                    export HELPERS=<path to helpers> # for me it's $HOME/opt/pycharm-2016.3/helpers
                                    cd $HELPERS
                                    tar cfz - . | netcat -v $TARGET $PORT





                                    share|improve this answer


























                                      0












                                      0








                                      0







                                      fast (less than 3 second between me an digitalocean) solution inspired by excellent xApple's answer

                                      on remote server:



                                      export SOURCE=<your ip>
                                      export PORT=9000
                                      export HELPERS=$HOME/.pycharm_helpers
                                      # PyCharm Help -> About
                                      export BUILD=PY-172.4343.24 # 2017/10/11
                                      cd $HELPERS
                                      rm -fr *
                                      # my OS - ubuntu, change firewall rules to yours if you're not so lucky
                                      sudo ufw allow from $SOURCE proto tcp to any port $PORT
                                      netcat -l -v -p $PORT | tar xz # here you waiting for connection
                                      # after finish
                                      sudo ufw delete allow from $SOURCE proto tcp to any port $PORT
                                      echo -n $BUILD > build.txt
                                      python $HELPERS/pydev/setup_cython.py build_ext --inplace


                                      on your workstation:



                                      export TARGET=<remote server ip>
                                      export PORT=9000
                                      export HELPERS=<path to helpers> # for me it's $HOME/opt/pycharm-2016.3/helpers
                                      cd $HELPERS
                                      tar cfz - . | netcat -v $TARGET $PORT





                                      share|improve this answer













                                      fast (less than 3 second between me an digitalocean) solution inspired by excellent xApple's answer

                                      on remote server:



                                      export SOURCE=<your ip>
                                      export PORT=9000
                                      export HELPERS=$HOME/.pycharm_helpers
                                      # PyCharm Help -> About
                                      export BUILD=PY-172.4343.24 # 2017/10/11
                                      cd $HELPERS
                                      rm -fr *
                                      # my OS - ubuntu, change firewall rules to yours if you're not so lucky
                                      sudo ufw allow from $SOURCE proto tcp to any port $PORT
                                      netcat -l -v -p $PORT | tar xz # here you waiting for connection
                                      # after finish
                                      sudo ufw delete allow from $SOURCE proto tcp to any port $PORT
                                      echo -n $BUILD > build.txt
                                      python $HELPERS/pydev/setup_cython.py build_ext --inplace


                                      on your workstation:



                                      export TARGET=<remote server ip>
                                      export PORT=9000
                                      export HELPERS=<path to helpers> # for me it's $HOME/opt/pycharm-2016.3/helpers
                                      cd $HELPERS
                                      tar cfz - . | netcat -v $TARGET $PORT






                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Nov 10 '17 at 20:47









                                      El RusoEl Ruso

                                      2,43621833




                                      2,43621833























                                          0














                                          Turning off the firewall addressed the problem in my case (macOS - Mojave). Note that this is not a general solution as it was not tested in any other environments/OS.






                                          share|improve this answer


























                                          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

                                            – Sankumarsingh
                                            Nov 23 '18 at 6:46











                                          • edited to accommodate the above comment. This is a solution to at least some users (which includes myself) and doesn't require any further clarifications.

                                            – chunjy92
                                            Nov 24 '18 at 1:44
















                                          0














                                          Turning off the firewall addressed the problem in my case (macOS - Mojave). Note that this is not a general solution as it was not tested in any other environments/OS.






                                          share|improve this answer


























                                          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

                                            – Sankumarsingh
                                            Nov 23 '18 at 6:46











                                          • edited to accommodate the above comment. This is a solution to at least some users (which includes myself) and doesn't require any further clarifications.

                                            – chunjy92
                                            Nov 24 '18 at 1:44














                                          0












                                          0








                                          0







                                          Turning off the firewall addressed the problem in my case (macOS - Mojave). Note that this is not a general solution as it was not tested in any other environments/OS.






                                          share|improve this answer















                                          Turning off the firewall addressed the problem in my case (macOS - Mojave). Note that this is not a general solution as it was not tested in any other environments/OS.







                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited Nov 24 '18 at 1:42

























                                          answered Nov 23 '18 at 5:52









                                          chunjy92chunjy92

                                          144




                                          144













                                          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

                                            – Sankumarsingh
                                            Nov 23 '18 at 6:46











                                          • edited to accommodate the above comment. This is a solution to at least some users (which includes myself) and doesn't require any further clarifications.

                                            – chunjy92
                                            Nov 24 '18 at 1:44



















                                          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

                                            – Sankumarsingh
                                            Nov 23 '18 at 6:46











                                          • edited to accommodate the above comment. This is a solution to at least some users (which includes myself) and doesn't require any further clarifications.

                                            – chunjy92
                                            Nov 24 '18 at 1:44

















                                          This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

                                          – Sankumarsingh
                                          Nov 23 '18 at 6:46





                                          This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

                                          – Sankumarsingh
                                          Nov 23 '18 at 6:46













                                          edited to accommodate the above comment. This is a solution to at least some users (which includes myself) and doesn't require any further clarifications.

                                          – chunjy92
                                          Nov 24 '18 at 1:44





                                          edited to accommodate the above comment. This is a solution to at least some users (which includes myself) and doesn't require any further clarifications.

                                          – chunjy92
                                          Nov 24 '18 at 1:44











                                          0














                                          Note that -- at least as late as version 2018.3.x -- PyCharm also appears to require re-uploading of the helpers when the local network connection changes as well, for some reason.



                                          What I've observed in my case is that if, while PyCharm remains running, I relocate my laptop and connect to a different LAN, the next remote debugging session I initiate will trigger the lengthy helper upload. It turns out that the contents of the helpers directory actually uploaded in this case are exactly identical to the contents already present in that directory on the remote system (I compared them), so this upload is entirely superfluous, but PyCharm isn't able to detect this.



                                          As there's no way I know of in PyCharm to bypass or cancel automatic helpers upload, the only recourse is to completely exit from PyCharm (close all open project windows) after each change of network connection and restart the IDE. In my experience, this will cause the helper upload to succeed in the "checking remote helpers" phase, before actually uploading all the helpers again. Of course, this is major annoyance if you have multiple projects open, but it's faster than waiting the (tens of) minutes for the agonizingly slow helpers upload to complete.



                                          All of what other responders describe for the course of action to take when changing PyCharm versions is true. It is sufficient to use rsync, ftp, scp, or whatever to transfer the contents of the new local helpers directory (on Linux, a subdirectory of where the app is installed) to the remote system (on Linux, ~/.pycharm_helpers, where ~ is the home directory of the user name used for the remote debugging session), and update the remote build.txt in the helpers directory with the new PyCharm version.






                                          share|improve this answer




























                                            0














                                            Note that -- at least as late as version 2018.3.x -- PyCharm also appears to require re-uploading of the helpers when the local network connection changes as well, for some reason.



                                            What I've observed in my case is that if, while PyCharm remains running, I relocate my laptop and connect to a different LAN, the next remote debugging session I initiate will trigger the lengthy helper upload. It turns out that the contents of the helpers directory actually uploaded in this case are exactly identical to the contents already present in that directory on the remote system (I compared them), so this upload is entirely superfluous, but PyCharm isn't able to detect this.



                                            As there's no way I know of in PyCharm to bypass or cancel automatic helpers upload, the only recourse is to completely exit from PyCharm (close all open project windows) after each change of network connection and restart the IDE. In my experience, this will cause the helper upload to succeed in the "checking remote helpers" phase, before actually uploading all the helpers again. Of course, this is major annoyance if you have multiple projects open, but it's faster than waiting the (tens of) minutes for the agonizingly slow helpers upload to complete.



                                            All of what other responders describe for the course of action to take when changing PyCharm versions is true. It is sufficient to use rsync, ftp, scp, or whatever to transfer the contents of the new local helpers directory (on Linux, a subdirectory of where the app is installed) to the remote system (on Linux, ~/.pycharm_helpers, where ~ is the home directory of the user name used for the remote debugging session), and update the remote build.txt in the helpers directory with the new PyCharm version.






                                            share|improve this answer


























                                              0












                                              0








                                              0







                                              Note that -- at least as late as version 2018.3.x -- PyCharm also appears to require re-uploading of the helpers when the local network connection changes as well, for some reason.



                                              What I've observed in my case is that if, while PyCharm remains running, I relocate my laptop and connect to a different LAN, the next remote debugging session I initiate will trigger the lengthy helper upload. It turns out that the contents of the helpers directory actually uploaded in this case are exactly identical to the contents already present in that directory on the remote system (I compared them), so this upload is entirely superfluous, but PyCharm isn't able to detect this.



                                              As there's no way I know of in PyCharm to bypass or cancel automatic helpers upload, the only recourse is to completely exit from PyCharm (close all open project windows) after each change of network connection and restart the IDE. In my experience, this will cause the helper upload to succeed in the "checking remote helpers" phase, before actually uploading all the helpers again. Of course, this is major annoyance if you have multiple projects open, but it's faster than waiting the (tens of) minutes for the agonizingly slow helpers upload to complete.



                                              All of what other responders describe for the course of action to take when changing PyCharm versions is true. It is sufficient to use rsync, ftp, scp, or whatever to transfer the contents of the new local helpers directory (on Linux, a subdirectory of where the app is installed) to the remote system (on Linux, ~/.pycharm_helpers, where ~ is the home directory of the user name used for the remote debugging session), and update the remote build.txt in the helpers directory with the new PyCharm version.






                                              share|improve this answer













                                              Note that -- at least as late as version 2018.3.x -- PyCharm also appears to require re-uploading of the helpers when the local network connection changes as well, for some reason.



                                              What I've observed in my case is that if, while PyCharm remains running, I relocate my laptop and connect to a different LAN, the next remote debugging session I initiate will trigger the lengthy helper upload. It turns out that the contents of the helpers directory actually uploaded in this case are exactly identical to the contents already present in that directory on the remote system (I compared them), so this upload is entirely superfluous, but PyCharm isn't able to detect this.



                                              As there's no way I know of in PyCharm to bypass or cancel automatic helpers upload, the only recourse is to completely exit from PyCharm (close all open project windows) after each change of network connection and restart the IDE. In my experience, this will cause the helper upload to succeed in the "checking remote helpers" phase, before actually uploading all the helpers again. Of course, this is major annoyance if you have multiple projects open, but it's faster than waiting the (tens of) minutes for the agonizingly slow helpers upload to complete.



                                              All of what other responders describe for the course of action to take when changing PyCharm versions is true. It is sufficient to use rsync, ftp, scp, or whatever to transfer the contents of the new local helpers directory (on Linux, a subdirectory of where the app is installed) to the remote system (on Linux, ~/.pycharm_helpers, where ~ is the home directory of the user name used for the remote debugging session), and update the remote build.txt in the helpers directory with the new PyCharm version.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Jan 17 at 18:15









                                              trenchanttrenchant

                                              82




                                              82






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Stack Overflow!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f41023513%2fpycharm-always-uploading-pycharm-helpers-to-same-remote-python-interpreter-whe%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  Tonle Sap (See)

                                                  I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

                                                  Guatemaltekische Davis-Cup-Mannschaft