linuxdeploy-plugin-conda icon indicating copy to clipboard operation
linuxdeploy-plugin-conda copied to clipboard

Output AppImage prefers ~/.local for pip packages

Open TheLastProject opened this issue 7 years ago • 7 comments

This one confused me for a long time: Why was my Pext 0.20 AppImage stating it was Pext-0.19+18.g11a6dea?

Well, I found it when I looked at the logs:

file:///home/sylvia/.local/lib/python3.6/site-packages/pext/qml/AboutDialog.qml:87:17: QML Text: Binding loop detected for property "width"                               

After doing a "pip3 uninstall pext", it started working fine.

The output AppImages probably need some $PATH changes to prefer bundled libraries over the system ones to prevent really weird issues.

TheLastProject avatar Oct 13 '18 13:10 TheLastProject

Any suggestions which ones to set? Even if $PYTHONPATH is set, the system directories will be used as a fallback. And I'm pretty sure that miniconda internally sets sys.path to its own directories.

TheAssassin avatar Oct 13 '18 17:10 TheAssassin

I'm not sure, just the AppImage one probably should be at the start of the $PYTHONPATH. Falling back seems okay-ish, just not having things overwritten by the system by default.

TheLastProject avatar Oct 13 '18 17:10 TheLastProject

@TheLastProject that is actually the case, as mentioned above:

# create new env
$ source conda-env/bin/activate
$ python
Python 3.7.0 (default, Jun 28 2018, 13:15:42) 
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '.../conda-env/lib/python37.zip', '.../conda-env/lib/python3.7', '...conda-env/lib/python3.7/lib-dynload', '.../conda-env/lib/python3.7/site-packages']

TheAssassin avatar Oct 13 '18 20:10 TheAssassin

Maybe it's $PATH being the issue here then?

TheLastProject avatar Oct 13 '18 20:10 TheLastProject

How could $PATH have any influence on this?

TheAssassin avatar Oct 13 '18 20:10 TheAssassin

I honestly don't know, just guessing for some explanation of the behaviour I observed

TheLastProject avatar Oct 13 '18 20:10 TheLastProject

I can reproduce the issue. Seems like an issue within PyQt5.

TheAssassin avatar Oct 14 '18 21:10 TheAssassin