Bug 21812

Summary: bash: /usr/bin/svtplay-dl: /usr/local/opt/python/bin/python2.7: invalid interpreter: File or directory does not exist is seen when trying to download a clip using svtplay-dl
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: Normal CC: lovaren, marja11
Version: 6   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: svtplay-dl CVE:
Status comment:

Description Kristoffer Grundström 2017-10-07 03:59:50 CEST
Description of problem: I use a tool called svtplay-dl (installed it without any errors using pip3.5) that downloads and merges parts of a program from SVT Play (On Demand service that we Swedish sitizens pay tax money to watch previous and older series and programs throughout TV's history.

Now, as I try to download a clip to my Video directory I get this error:

bash: /usr/bin/svtplay-dl: /usr/local/opt/python/bin/python2.7: invalid interpreter: File or directory does not exist

Version-Release number of selected component (if applicable): 1.9.6

How reproducible: All the time.

Steps to Reproduce:
1. Upgrade pip using pip3.5 install --upgrade pip as command runned as root.
2. Now run pip3.5 install svtplay-dl
3. Go to https://www.svtplay.se/ and copy the entire web URL to a longer clip.
4. Type svtplay-dl and paste the copied web URL for the clip and press Enter/Return button.
5. Voila! It won't work due to missing file or directory for python2.7 even though rpm -qa python shows me that python 2.7 is installed along with pyhon 3.
Comment 1 Kristoffer Grundström 2017-10-07 04:00:51 CEST
I used this command to download a program that was broadcasted not more than a day ago:

svtplay-dl https://www.svtplay.se/video/15419705/tillsammans-for-varldens-barn/tillsammans-for-varldens-barn-6-okt-20-00
Kristoffer Grundström 2017-10-07 04:01:35 CEST

CC: (none) => hamnisdude

Comment 2 Marja Van Waes 2017-10-07 16:05:19 CEST
(In reply to Kristoffer Grundström from comment #0)
> Description of problem: I use a tool called svtplay-dl (installed it without
> any errors using pip3.5) that downloads and merges parts of a program from
> SVT Play (On Demand service that we Swedish sitizens pay tax money to watch
> previous and older series and programs throughout TV's history.
> 
> Now, as I try to download a clip to my Video directory I get this error:
> 
> bash: /usr/bin/svtplay-dl: /usr/local/opt/python/bin/python2.7: invalid
> interpreter: File or directory does not exist
> 

Try creating a link from 

    /usr/local/opt/python/bin/python2.7 

to 

   /usr/bin/python2.7



Anyway, we don't package svtplay-dl, so this bug report is invalid

CC: (none) => marja11
Status: NEW => RESOLVED
Resolution: (none) => INVALID