Skip to content

Output AppImage prefers ~/.local for pip packages #6

Open

Description

@TheLastProject

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.

Activity

  1. TheAssassin commented on Oct 13, 2018

    @TheAssassin
    Member

    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.

  2. TheLastProject commented on Oct 13, 2018

    @TheLastProject
    ContributorAuthor

    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.

  3. TheAssassin commented on Oct 13, 2018

    @TheAssassin
    Member

    @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']
  4. TheLastProject commented on Oct 13, 2018

    @TheLastProject
    ContributorAuthor

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

  5. TheAssassin commented on Oct 13, 2018

    @TheAssassin
    Member

    How could $PATH have any influence on this?

  6. TheLastProject commented on Oct 13, 2018

    @TheLastProject
    ContributorAuthor

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

  7. TheAssassin commented on Oct 14, 2018

    @TheAssassin
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions