Skip to content
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

Can't use system wide python with a CudaText-Qt5 flatpak install (limits use of cudatext plugins that require additional python packages) #4357

Closed
bogen85 opened this issue Sep 10, 2022 · 5 comments

Comments

@bogen85
Copy link
Contributor

bogen85 commented Sep 10, 2022

This may be a flatpak limitation.

Also, the URL for io.github.cudatext.CudaText-Qt5 https://flathub.org/apps/details/io.github.cudatext.CudaText-Qt5 points back to here (indirectly), rather than somewhere on https://github.com/JordanL2 ( Per #3641 )

For the most part the flatpak install of CudaText-Qt5 works great. I have been using for several months now on multiple Linux distributions.

However, there is no straight forward to use cudatext plugins (such as the ftp one that depends on the paramiko python package) that depend on more than just a generic python install.

CudaText ftp plugin: https://github.com/pohmelie/cuda_ftp

I'm not sure how this can be remedied (or if there is any possible solution for this), as I'm not familiar with making flatpak packages.

@bogen85
Copy link
Contributor Author

bogen85 commented Sep 10, 2022

OK, there is this page https://github.com/flathub/io.github.cudatext.CudaText-Qt5/issues but I'm not sure of issues like this should be filed here or on that page. (As no issues have been filed there).

@Alexey-T
Copy link
Owner

Alexey-T commented Sep 10, 2022

I don't understand, what python path do you use in Flatpak version? does this python path point to a dir which has 'site-packages' dir?

I use "pylib__linux" : "/usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0", which has /usr/lib/python3.8/site-packages

to get this dir, run "python3" and enter there:

import re
re.__file__

@jpgpng
Copy link

jpgpng commented Sep 10, 2022

I don't understand, what python path do you use in Flatpak version? does this python path point to a dir which has 'site-packages' dir?

I use "pylib__linux" : "/usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0", which has /usr/lib/python3.8/site-packages

to get this dir, run "python3" and enter there:

import re
re.__file__

This is the limitation of technologies like flatpak and snap so CudaText can't do anything with it. It's not CudaText's fault. The solution is have the CudaText flatpak package maintainer include the python engine with his package. He reported the issue the wrong place.

Update: to be more clear, the flatpak and snap applications running in their own isolated container that isolated from the host system, so they can't see the host system's python. This is by design of these technologies, you can't do anything about it @Alexey-T

@Alexey-T
Copy link
Owner

Okay, sounds logical, so this is not Cud issue.

@Alexey-T
Copy link
Owner

Wrote the issue flathub/io.github.cudatext.CudaText-Qt5#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants