-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Linux AppImage Python extension path problem #253
Comments
@probonopd would you have any insight here? I'm not familiar with what kind of isolation AppImage might be doing. |
Do you want to use the Python that may or may not be on the system? Then do not use the |
To the authors of VSCodium: Do you want to use the Python that may or may not be on the system, or do you want to bundle a private copy of Python? |
It's better to use the Python that exists in user's machine rather than packaging them inside the AppImage. Removed two environment variables, PYTHONPATH and PYTHONHOME would fix the problem. Python interpreter and pip modules worked. Tried on my Ubuntu & Solus. I used custom AppRun which not specify both env variables, but so far I have to explicitly use appimagetool to package the AppDir. Is there any way to use custom AppRun with pkg2appimage in one go? |
If you want to do this, then as you write you need to use an |
While I wait for the pull request to merge, is there a workaround? I can't debug c++ at the moment due to the same issue, and have a shortened time on my current project. |
@zombiepigdragon do you have to have VSCodium installed through AppImage? As far as I know, this is an AppImage specific issue we're running into. |
@stripedpajamas Unfortunately, yes, at least at this time. |
Apologise for the wait. I was able to get back to this few days ago. Now I'm trying to make pkg2appimage works with modified functions.sh included alongside instead of download the original functions.sh. |
The latest PR is here. |
Thanks so much for this fork and for have solved this issue, but in the last release the AppImage file it's not included in the "assets", is there any problem? |
I think there is a bug in the AppImage logic; error during build:
I'm not sure, but I'm thinking it should be What do you think @tyu1996 |
I forgot to change back to '../vscode/.build/...' after I built it successfully on my local machine, my bad. Changed back to '../vscode/.build/...', fixed that area, but it has another issue afterwards: This didn't happen on my machine, but on my fork the travis-ci has this issue. The reference build log: https://travis-ci.org/tyu1996/vscodium/jobs/618049483 |
Usually this means that files for more than one architecture are in the AppDir. Supplying |
@stripedpajamas Thank you for helping to fix the appimage building bug. |
Please confirm that this problem is VSCodium-specific
It is APPIMAGE specific!
Please confirm that the issue/resolution isn't already documented
To Reproduce
The error is "ModuleNotFoundError: No module named 'encodings'"
Expected behavior
Python works.
Temporary fix
Remove AppRun and replace it with a symlink to usr/bin/codium
The text was updated successfully, but these errors were encountered: