PyCharm 2020.1 Flatpak Install on Pop_OS 20.04 not seeing the new python3.8 interpreter

I've recently upgraded to Pop_OS 20.04. I've installed PyCharm Professional using Flatpak and whenever I create an interpreter, it's always showing what I assume to be the flatpak packaged 3.7 and will not see my actual system interpreter. I can create a virtual environment manually on the terminal, everything works fine. I see the folder in pycharm but pycharm is not seeing any of the packages I have installed in that virtual environment. I can pip list on the terminal and they are all there, I can run the project no problem and it works just fine. I just can't get PyCharm on the flatpak install to see the same things the rest of my system is seeing. I am also unable to use on the terminal the venv that is created within pycharm. I just get a ModuleNotFound Error when I try to run pip.

This was not an issue on Pop_OS 19.10. When I attempt to select the system interpreter within pycharm, the /usr/bin/python* output I see does not match what is actually on the system.

 

Any tips? Do I need to wait for an updated Pycharm flatpak? The snap version of PyCharm Professional doesn't have this problem, but it has some other quirks that I am not looking to deal with. I prefer the flatpak.

6 comments
Comment actions Permalink

I have this exact same problem. I also discovered that WebStorm can't find my web browser when I give it the full path.

 

My solution for both has been to download them from JetBrains, and launch them from the command line.

I am also running Pop_OS 20.04, as I have a brand new Lemur Pro.

0
Comment actions Permalink

Had the same issue, among others. Built-in terminal also defaulted to sh and failed to read .bashrc even after manually changing it to bash. Ended up uninstalling the flatpak version and downloaded a release from Jetbrains website.

0
Comment actions Permalink

Same issue w/ Pycharm 2021 on Clear Linux's most recent release. This is a flatpak problem and has something to do with the 'shadow filesystem' that the flatpak is seeing, if I'm understanding correctly. I was truly flabbergasted when I created a Python 3.9 venv outside of Pycharm only to have Pycharm load it and use it all-the-while claiming (and acting) as if it was 3.7.4. I'm pretty astonished this is an ongoing issue, but yes, the easiest way is to install directly using the packaged tar file available from JetBrains -- it's worth noting you can get it to run from the Gnome launcher window (for some Profession versions) by going to Tools > Create Desktop Entry.

0
Comment actions Permalink

I still see this problem with flatpak-installed Intellij Ultimate. Running `flatpak override com.jetbrains.IntelliJ-IDEA-Ultimate --filesystem=host` might work if you installed it via flatpak.

Edit: probably it's best not to use flatpak. This is varying degrees of troubling to horrifying: http://flatkill.org/

0
Comment actions Permalink

PyCharm is not officially distributed via Flatpack. The official sources are:

- JetBrains website

- Toolbox app

- Snap package

Please try installing from one of those and see if it helps.

0
Comment actions Permalink

Yes. Installing via snap fixes the problem.

0

Please sign in to leave a comment.