[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#886827: RFS: youtube-dl-gui/0.4-1 [ITP]



Hi Félix,

I'm sure youtube-dl is working when invoked from command line for
downloading an youtube video. However youtube-dl-gui doesn't work
with the same URL.

I got this from youtube-dl-gui's log, and it seems to be the reason why
youtube-dlg doesn't work for me:

[Sun Mar 25 07:35:30 2018] Traceback (most recent call last):
[Sun Mar 25 07:35:30 2018]   File "/usr/bin/youtube-dl", line 6, in <module>
[Sun Mar 25 07:35:30 2018]     from pkg_resources import load_entry_point
[Sun Mar 25 07:35:30 2018]   File
"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
3195, in <module>
[Sun Mar 25 07:35:30 2018]     @_call_aside
[Sun Mar 25 07:35:30 2018]   File
"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
3179, in _call_aside
[Sun Mar 25 07:35:30 2018]     f(*args, **kwargs)
[Sun Mar 25 07:35:30 2018]   File
"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
3208, in _initialize_master_working_set
[Sun Mar 25 07:35:30 2018]     working_set = WorkingSet._build_master()
[Sun Mar 25 07:35:30 2018]   File
"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
681, in _build_master
[Sun Mar 25 07:35:30 2018]     ws.require(__requires__)
[Sun Mar 25 07:35:30 2018]   File
"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
999, in require
[Sun Mar 25 07:35:30 2018]     needed =
self.resolve(parse_requirements(requirements))
[Sun Mar 25 07:35:30 2018]   File
"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
885, in resolve
[Sun Mar 25 07:35:30 2018]     raise DistributionNotFound(req, requirers)
[Sun Mar 25 07:35:30 2018] pkg_resources.DistributionNotFound: The
'youtube-dl==2018.3.14' distribution was not found and is required by
the application

The root of problem turns to be clear if you take a look at the package
content of youtube-dl provided by debian:

$ dpkg -L youtube-dl
...
/usr/lib/python3/dist-packages/youtube_dl-2018.3.14.egg-info
...

It has been migrated to python3. So tt is impossible for youtube-dl-gui
to import any python2 resource of youtube-dl. This GUI package only
works when user have installed youtube-dl with python2 version of pip
or some other methods alike.

Unfortunately, I guess this package would get stuck before its
transition to python3. Unless there is a simple way to use
python3 version of youtube-dl from python2 version of gui.
I'm not sure whether it's possible since I didn't look into the code.

Regards,
Lumin.


On 22 February 2018 at 09:51, Félix Sipma <felix+debian@gueux.org> wrote:
> On 2018-02-22 03:27+0000, Lumin wrote:
>> I built the package locally, but I did not get it working correctly
>> With a YouTube URL. It downloads nothing.
>> Could you please provide a url for test so I can make sure
>> it is working?
>>
>> I will look into this problem later.
>
> It definitely works here... Are you sure entered your urls, selected the output
> format and directory, clicked "add", and then clicked "start"?



-- 
Best,


Reply to: