Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 55

Thread: Unable to run pip/pip3 without root access

  1. #21
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,213
    Blog Entries
    15

    Default Re: Unable to run pip/pip3 without root access

    Hi
    In your user .cache dir is there a pip folder? If so, is it owned by you or root?

    If so remove it and see if that helps. It will get recreated if you run pip3 list etc, but it may have some install info which should only be for root....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  2. #22

    Default Re: Unable to run pip/pip3 without root access

    I have my ~/.cache deliberately mapped to tmpfs, i.e. it is in RAM, so on each reboot it is recreated.

  3. #23
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,213
    Blog Entries
    15

    Default Re: Unable to run pip/pip3 without root access

    Quote Originally Posted by heyjoe View Post
    I have my ~/.cache deliberately mapped to tmpfs, i.e. it is in RAM, so on each reboot it is recreated.
    Hi
    OK, so if you run pip3 list as your user, does that work?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  4. #24

    Default Re: Unable to run pip/pip3 without root access

    Code:
    [~]: pip3
    
    Usage:
      pip <command> [options]
    
    Commands:
      install                     Install packages.
      uninstall                   Uninstall packages.
      freeze                      Output installed packages in requirements format.
      list                        List installed packages.
      show                        Show information about installed packages.
      search                      Search PyPI for packages.
      wheel                       Build wheels from your requirements.
      help                        Show help for commands.
    
    General Options:
      -h, --help                  Show help.
      --isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration.
      -v, --verbose               Give more output. Option is additive, and can be used up to 3 times.
      -V, --version               Show version and exit.
      -q, --quiet                 Give less output.
      --log <path>                Path to a verbose appending log.
      --proxy <proxy>             Specify a proxy in the form [user:passwd@]proxy.server:port.
      --retries <retries>         Maximum number of retries each connection should attempt (default 5 times).
      --timeout <sec>             Set the socket timeout (default 15 seconds).
      --exists-action <action>    Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup.
      --trusted-host <hostname>   Mark this host as trusted, even though it does not have valid or any HTTPS.
      --cert <path>               Path to alternate CA bundle.
      --client-cert <path>        Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
      --cache-dir <dir>           Store the cache data in <dir>.
      --no-cache-dir              Disable the cache.
      --disable-pip-version-check
                                  Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.
    [~]: pip3 install -I mps-youtube youtube-dl
    Collecting mps-youtube
      Downloading mps_youtube-0.2.7.1-py3-none-any.whl (74kB)
        100% |████████████████████████████████| 77kB 2.3MB/s
    Collecting youtube-dl
      Downloading youtube_dl-2018.1.21-py2.py3-none-any.whl (1.7MB)
        100% |████████████████████████████████| 1.7MB 332kB/s
    Collecting pafy!=0.4.0,!=0.4.1,!=0.4.2,>=0.3.82 (from mps-youtube)
      Downloading pafy-0.5.3.1.tar.gz
    Installing collected packages: pafy, mps-youtube, youtube-dl
      Running setup.py install for pafy
        Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-nlya9t8z/pafy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-h8v7hrox-record/install-record.txt --single-version-externally-managed --compile:
        running install
        running build
        running build_py
        creating build
        creating build/lib
        creating build/lib/pafy
        copying pafy/backend_shared.py -> build/lib/pafy
        copying pafy/playlist.py -> build/lib/pafy
        copying pafy/backend_youtube_dl.py -> build/lib/pafy
        copying pafy/util.py -> build/lib/pafy
        copying pafy/g.py -> build/lib/pafy
        copying pafy/__init__.py -> build/lib/pafy
        copying pafy/pafy.py -> build/lib/pafy
        copying pafy/jsinterp.py -> build/lib/pafy
        copying pafy/backend_internal.py -> build/lib/pafy
        running egg_info
        writing pafy.egg-info/PKG-INFO
        writing top-level names to pafy.egg-info/top_level.txt
        writing dependency_links to pafy.egg-info/dependency_links.txt
        writing requirements to pafy.egg-info/requires.txt
        warning: manifest_maker: standard file '-c' not found
    
        reading manifest file 'pafy.egg-info/SOURCES.txt'
        writing manifest file 'pafy.egg-info/SOURCES.txt'
        running build_scripts
        creating build/scripts-3.4
        copying and adjusting scripts/ytdl -> build/scripts-3.4
        changing mode of build/scripts-3.4/ytdl from 600 to 755
        running install_lib
        copying build/lib/pafy/backend_internal.py -> /usr/lib/python3.4/site-packages/pafy
        error: could not create '/usr/lib/python3.4/site-packages/pafy/backend_internal.py': Permission denied
    
        ----------------------------------------
    Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-nlya9t8z/pafy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-h8v7hrox-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nlya9t8z/pafy
    You are using pip version 7.1.2, however version 9.0.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.

  5. #25
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,213
    Blog Entries
    15

    Default Re: Unable to run pip/pip3 without root access

    Hi
    You can't ever run install as user as it can't write to the system directories.... permission will always be denied.

    Don't install as your user.... I asked you to run the command pip3 list as your user... nothing else?

    Code:
    pip3 list
    I want to compare your list with mine....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #26

    Default Re: Unable to run pip/pip3 without root access

    Quote Originally Posted by malcolmlewis View Post
    Hi
    You can't ever run install as user as it can't write to the system directories.... permission will always be denied.
    It was the same for me before you told me to forcefully update the packages. So perhaps if you do the same - it will be the same for you too.

    Code:
    [~]: pip3 list
    apparmor (2.10.3)
    bottle (0.12.8)
    coverage (4.3.4)
    cupshelpers (1.0)
    LibAppArmor (2.10.3)
    mps-youtube (0.2.7.1)
    nose (1.3.7)
    numpy (1.9.3)
    pafy (0.5.3.1)
    Pillow (2.9.0)
    pip (7.1.2)
    py (1.4.30)
    pycups (1.9.72)
    pycurl (7.19.5.1)
    pygobject (3.20.1)
    pysmbc (1.0.15.4)
    pyxdg (0.25)
    PyYAML (3.11)
    requests (2.7.0)
    setuptools (18.3.2)
    simplejson (3.8.0)
    youtube-dl (2018.1.18)
    You are using pip version 7.1.2, however version 9.0.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.

  7. #27
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,213
    Blog Entries
    15

    Default Re: Unable to run pip/pip3 without root access

    Hi
    You have a few more than me...
    Code:
     pip3 list
    apparmor (2.10.3)
    bottle (0.12.8)
    Brlapi (0.6.3)
    coverage (4.3.4)
    cupshelpers (1.0)
    LibAppArmor (2.10.3)
    louis (2.6.4)
    mps-youtube (0.2.7.1)
    nose (1.3.7)
    pafy (0.5.3.1)
    pip (7.1.2)
    py (1.4.30)
    pycups (1.9.72)
    pycurl (7.19.5.1)
    pygobject (3.20.1)
    pysmbc (1.0.15.4)
    requests (2.7.0)
    setuptools (18.3.2)
    simplejson (3.8.0)
    youtube-dl (2018.1.18)
    So I have Brlapi (0.6.3) python3-brlapi installed... how where your ones installed, all via system rpm's of via pip3? Except of course mps-youtube, pafy and youtube-dl.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #28

    Default Re: Unable to run pip/pip3 without root access

    The different ones which I notice are these 3: numpy, pyxdg, PyYAML. I don't remember how they were installed but I checked this:
    Code:
    [~]: rpm -q python-numpy python3-pyxdg python3-PyYAML 
    python-numpy-1.8.0-7.1.x86_64
    python3-pyxdg-0.25-3.2.noarch
    python3-PyYAML-3.11-9.4.x86_64
    Considering the suggestion in this comment (the code snippet in the post) which made it possible to run mpsyt, what might be the problem?

  9. #29
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,213
    Blog Entries
    15

    Default Re: Unable to run pip/pip3 without root access

    On Sun 21 Jan 2018 06:36:01 PM CST, heyjoe wrote:

    The different ones which I notice are these 3: numpy, pyxdg, PyYAML. I
    don't remember how they were installed but I checked this:

    Code:
    --------------------

    [~]: rpm -q python-numpy python3-pyxdg python3-PyYAML
    python-numpy-1.8.0-7.1.x86_64
    python3-pyxdg-0.25-3.2.noarch
    python3-PyYAML-3.11-9.4.x86_64

    --------------------


    Considering the suggestion in 'this comment'
    (http://tinyurl.com/ya8qte6a) (the code snippet in the post) which made
    it possible to run mpsyt, what might be the problem?


    Hi
    So your running the standard file permissions or one of the others?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.3|GNOME 3.20.2|4.4.104-39-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  10. #30

    Default Re: Unable to run pip/pip3 without root access

    Quote Originally Posted by malcolmlewis View Post
    Hi
    So your running the standard file permissions or one of the others?
    Long ago I decided to set:
    YaST > Miscellaneous settings > File Permissions = Secure.

Page 3 of 6 FirstFirst 12345 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •