Need to work on RPI project using PYCHARM

Answered

Hello:

I've been developing my new app on the RPi itself using the built-in Geany editor.  Now I decided I need something better & want to use PYCHARM pro from my PC to manage the poject.  I set up the ip addresses, remote compiler (python3 on my rpi), and this seems fine.  However, when I try to set up an rpi PYCHARM project, I can't seem to use the folder on my rpi  (home/pi/Desktop/pump_controller) for creating a Pycharm project.  There are presently 5 python3 .py files in there that together form the project.   I can use pycharm to "browse" the rpi  (tools/deployment/browse_remote_host) & see & edit the remote files, but not as a PROJECT (they are being treated as independent files, rather than a project "tree").

Is this the limitation of PYCHARM?  I was expecting to configure PYCHARM to remotely work on this project, as a project, not just as unrelated "files".

 

Please advise

 

 

 

 

5 comments
Comment actions Permalink

Hi Charmster,

Thank you for contacting PyCharm support.

As far as I know you should be able to import project created in another IDE https://www.jetbrains.com/help/pycharm/importing-project-from-existing-source-code.html

Doesn't it work for you?

Looking forward to your reply.

Kind regards,

Sergey

https://www.jetbrains.com

The Drive to Develop

0
Comment actions Permalink

Thanks for the tip..HOWEVER, when I try to do that (file, new project, pure python), the locations listed for possible selection are only on my PC.

The directory containing my python files is on the remote raspberry pi.

I can see the files using tools...deployment...browse remote host, so it is not a connectivity issue.

I can even open & edit them in PYCHARM, but only as files, not a "project"

How do I set these files as a project, now desiring to use PYCHARM as remote development? 

Maybe I am missing some steps?

 

0
Comment actions Permalink

Oh, I see.

Please have a look at this solution https://stackoverflow.com/questions/31723140/opening-remote-project-in-pycharm

So you mount the drive and then open project from within PyCharm.

Thus you will be able to browse this remote folder and then open it as a project.

Please let me know if you have any questions.

Kind regards,

Sergey

https://www.jetbrains.com

The Drive to Develop

0
Comment actions Permalink

So you are saying pycharm can't work with project files that are located on my rpi?

If I need to mount them onto my PC, what is the purpose of remote--I though it was so PYCHARM could access those files

Maybe I am misunderstanding remote.

0
Comment actions Permalink

PyCharm cannot browse to the remote directory when you want to open it as a project. But it definitely can work with remote hosts. 

In such case as yours, you could create a new project in PyCharm, then add remote interpreter (located on rpi), set mappings of your local directories and remote ones and then go to `Tools | Deployment` and download your project from remote host.

Please let me know if I am missing some usecase.

 

0

Please sign in to leave a comment.