-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems unable to use Python 3.6 #14
Comments
It might be worth having an extension point for newer python versions that you can optionally install. |
I think it would make sense to include any actively supported version of CPython. So currently 3.5, 3.6, and 3.7. Support for 2.7 is debatable as that's obviously EOL in about six months. |
I don't think that |
@Red-Eyed PyCharm itself doesn't. However, it needs access to python available at runtime, even if a user wants to create a virtualenv. |
Didn't get it. I guess the issue is that the virtual env was created (don't know in which way) with python version 3.6, and depends on
So, how can Or you just want to add all python version into |
I'm not an expert on this, but it seems like extensions would be a great route. This would allow users to optionally add the python versions they need, correct? Including python runtimes like pypy? |
But there is tools for this: conda and pyenv. That tools have big community and growing. You could add |
So the problem is that users of So, in general: there always will be issues like that: "it worked at my host system, but doesn't at flatpacked IDE. flatpak sucks, fix it guys." |
What will save us from such issues is something like |
Just to be clear, no one here is saying flatpak sucks. We are trying to use the tool, PyCharm the way we are used to. I will test pyenv and see if it works with the intended use cases in the PyCharm flatpak, and also see if it works with tools like tox, etc. |
Sorry for that, I meant that users compare Thanks for understanding my point. |
Unfortunately, pyenv doesn't seem to be fairing any better. Just trying to get the version from a pyenv interpreter results in this:
And I'm not sure what would happen when trying to use a tool like tox to test multiple versions at once. |
How did u install it? |
Can you show output of |
I guess I've the same issue. Running PyCharm 2020.1 Flatpak with Fedora 32. The fedora system installed Python-3.8.2. The venv is than also a 3.8.2 but PyCharm ships with Python 3.7. That wontj work together. I've no influence on either of these Python versions. What can I do except not using the flatpak version of Pycharm? IntelliJ Idea for Java has the same issue. But for Java there are pre-built binaries available. I can simply put them to /opt/java/version-xyz and add them as sdk to IntelliJ. |
This comment has been minimized.
This comment has been minimized.
@Red-Eyed If you want to use snap packages just do so. No one is forcing you to use flatpaks and I'm happy they work like you want them to. But it is not a solution to any of the bugs of the flatpak version. |
@b1oki Python 2.7 is already included in the flatpak. It's at |
@FakeShemp But I just saying, that sandboxing and IDE is not compatible things. I like flatpak and os-tree, but permanent sandboxing forces me and other people (who just wants to use app distribution) to not use flatpaked packages that requires full host access. |
@Red-Eyed |
@FakeShemp |
Thank you, @FakeShemp!
It is JetBrains recommendation: |
Oh all night. I'll just stop updating this flatpak then since the solution to any bug in the flatpak version is instantly solved by not using the flatpak version. Jetbrains approves. Wow folks, we solved all bugs ever. |
@FakeShemp thanks for the hint about
I'm using a virtualenv via Can this be added by default to the PyCharm flatpaks? For simplicity, |
I'm not familiar with how Flatpak sets up the dynamic linker (ld), but adding the app and platform/runtime lib dirs before the host lib dir might be a more robust approach:
Given that the lib paths can be architecture-dependent (e.g. |
Sadly adding the directive to modify LD_LIBRARY_PATH just causes the PyCharm flatpak to crash:
I am running on Arch Linux though so maybe that is making a difference because it is so bleeding edge? |
More efforts on this today. I need to expose libffi.so.7 to allow my local pipenv (~/.local/bin/pipenv) to work with my Python 3.8 from pyenv (~/.pyenv/versions/3.8.5/bin/python). This is the error I get, which is similar to all the others: I get the same error if I try to use the pipenv executable that is included in the flatpak image, but try to use my Python 3.8.5. Pipenv does work if I allow it to use the Python 3.7 included in the flatpak image. So yesterday on Arch I added the directory to the flatpak and set LD_LIBRARY_PATH. Pycharm crashed. Today I tried Ubuntu 20.04 and once the flatpak had access to /var/run/host/usr/lib/x86_64-linux-gnu where libffi.so.7 resides it crashes.
It seems fundamentally that exposing the system's /usr/lib/* directories to the flatpak might not be the best approach? Being stuck on only using the included 3.7 is the problem for me. If this image included the latest stable versions of Python, 3.7, 3.8, and 3.9 when it ships I could use it, but I do not want to be stuck on 3.7. I think this could be made to work! |
I have a Python 3.6 virtualenv in my home directory, I can use it with PyCharm when installed locally but with flatpack version it reports:
Looks like Python3.6 should be shipped with PyCharm image?
The text was updated successfully, but these errors were encountered: