Skip to main content

Solving PyCharm bug: "Python helpers are not copied yet..."

I have been using PyCharm Professional to run and debug Python code from my Windows machine to a remote Linux device. There are some other tools available for the same purpose (e.g. Python Tool for Visual Studio 2017). But in my opinion, PyCharm Professional stands out among its counterparts as it comes with a "All Batteries Included" setup. Once you configure remote Python interpreter in PyCharm, then it works out of the box.

However, today after upgrading to PyCharm Professional 2018.2.1, I could not run my Python script on remote device. The execution always failed with below error -

"Error running 'hello': Python helpers are not copied yet to the remote host. Please wait until remote interpreter initialization finishes."

To solve this issue, I had to remove the ".pycharm_helpers" folder from the remove device and then restart PyCharm so that the folder is re-created and files are copied again.

Here are the steps with commands - 

1. Connect to the remote device using ssh 
    ssh <user_name>@<device_ip>

2. Run the below commands (In my case, ".pycharm_helpers" folder was created in remote Linux  device under "/home/root/" path)
    cd /home/root/
    cd ./.pycharm_helpers/
    rm -rf check_all_test_suite.py
    tar -xvzf helpers.tar.gz

3. Restart PyCharm and wait a little bit for the progress bar at bottom right to complete.
 

Comments

hema said…
Excellent Blog, I like your blog and It is very informative. Thank you
Python online training
Rejina said…
Very informative and the bug is solved. Thanks !
rinjuesther said…
This comment has been removed by a blog administrator.
zohaib said…
This comment has been removed by a blog administrator.
Biya said…
My response on my own website. Appreciation is a wonderful thing...thanks for sharing keep it up. PyCharm Crack
Unknown said…
I faced similar issue, but with running Python inside a Docker container. It turned out container doesn't have the tar command. Everything started working just after I installed tar command.
Software Hub said…
Great work with the hard work you have done I appreciate your work thanks for sharing it...
pycharm
nitro-pro-enterprise
Anonymous said…
I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Easy to Direct Download All Software With Full Activation Key But thankfully, I recently visited a website named vstpirate
PyCharm Pro Crack

Popular posts from this blog

Customized Crosshair with OxyPlot charting library

I am using Oxyplot to draw heatmap for a WPF project and needed to draw a crosshair that moves according to user clicks. Since I couldn't find any good example or documentation on the topic, I made a small hack by using LineAnnotations and by over-riding Oxyplot mouse click event. Here is the sample code using WPF with MVVM pattern- MainWindow.xaml <Grid>         <oxy:Plot x:Name="CrossHairPlot">             <oxy:Plot.Axes>                 <oxy:LinearAxis Key="MyXAxis" Position="Bottom" IsZoomEnabled="False"/>                 <oxy:LinearAxis Key="MyYAxis" Position="Left" IsZoomEnabled="False"/>                 <oxy:LinearColorAxis Key="...

Collect Python project dependencies

Sometimes we need to figure out dependencies of our Python project. I have been using the below two approaches to get it done: Using pipreqs If we want to collect all the dependencies and store them in a project-level 'requirement.txt' file, then pipreqs is an easy and simple solution. This library analyzes the import statements in the project to gather dependencies. First, we need to install pipreqs: pip install pipreqs In order to generate project-level requirement.txt file, run the below command: pipreqs /path/to/your/project/ requirements file would be saved as- ' /path/to/your/project/ requirements.txt ' To read about more advantages of pipreqs over pip freeze , read it from here Using pipdeptree     I have written a more detailed post about visual representation of python packages using 'pipdeptree' library in this blog . 'pipdeptree' provides more advanced options such as listing the dependencies in html format o...