Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5968 closed defect (fixed)

DRM4G intallation problem

Reported by: antonio Owned by: minondoa
Priority: blocker Milestone: DRM4G-2.5.0
Component: DRM4G Keywords: install pip
Cc: carlos

Description

I'm just tried to install DRM4G in my Ubuntu box, but I'm getting this error

antonio@xps:~$ pip install drm4g
Downloading/unpacking drm4g
  Could not find a version that satisfies the requirement drm4g (from versions: 2.5.0b1)
Cleaning up...
No distributions matching the version for drm4g
Storing debug log for failure in /home/antonio/.pip/pip.log

Attachments (1)

pip.log (1.8 KB) - added by antonio 5 years ago.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by antonio

comment:1 Changed 5 years ago by minondoa

I had the same error. I solved it by updating pip:

sudo pip install --upgrade pip

And remember that if you're not adding any installation options or doing it in a virtual environment you need to run sudo pip install drm4g.

Last edited 5 years ago by minondoa (previous) (diff)

comment:2 Changed 5 years ago by antonio

I have made a sudo installation, and it said Success, but I'm getting some error messages:

antonio@xps:~$ sudo pip install drm4g
The directory '/home/antonio/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/antonio/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting drm4g
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading drm4g-2.5.0b1.tar.gz (1.1MB)
    100% |████████████████████████████████| 1.1MB 1.1MB/s 
Collecting paramiko<2.0 (from drm4g)
  Downloading paramiko-1.17.2-py2.py3-none-any.whl (172kB)
    100% |████████████████████████████████| 174kB 3.9MB/s 
Collecting docopt (from drm4g)
  Downloading docopt-0.6.2.tar.gz
Collecting ecdsa<2.0,>=0.11 (from paramiko<2.0->drm4g)
  Downloading ecdsa-0.13-py2.py3-none-any.whl (86kB)
    100% |████████████████████████████████| 92kB 8.2MB/s 
Requirement already satisfied (use --upgrade to upgrade): pycrypto!=2.4,<3.0,>=2.1 in /usr/lib/python2.7/dist-packages (from paramiko<2.0->drm4g)
Installing collected packages: ecdsa, paramiko, docopt, drm4g
  Running setup.py install for docopt ... done
  Running setup.py install for drm4g ... done
Successfully installed docopt-0.6.2 drm4g-2.5.0b1 ecdsa-0.13 paramiko-1.17.2
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

comment:3 Changed 5 years ago by minondoa

The problems you're having are related with your versions of python and your virtual environment. They can be ignored since they don't affect the installation process.

To solve the problem about not owning the directory, just follow their indications, use sudo's -H flag, and choose a directory owned by you.

One solution for solving the SNIMissingWarning and InsecurePlatformWarning warnings is to upgrade to a more recent version of Python..

If for any reason you are not able to upgrade, you can also run pip install 'requests[security]' as explained here.

You can also check here for a bit more information about those warnings.

comment:4 Changed 5 years ago by minondoa

We'll create a section in the wiki addressing this problems just in case someone has the same doubts.

comment:5 Changed 5 years ago by minondoa

  • Resolution set to fixed
  • Status changed from new to closed

comment:6 Changed 5 years ago by minondoa

  • Milestone set to DRM4G-2.5.0
Note: See TracTickets for help on using tickets.