Bug 204729 - www/py-flexget: doesn't work after r401600 and r401602 (guessit 0.11.0 update)
Summary: www/py-flexget: doesn't work after r401600 and r401602 (guessit 0.11.0 update)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords: easy, needs-patch, regression
Depends on:
Blocks:
 
Reported: 2015-11-22 03:29 UTC by Jan Beich
Modified: 2016-07-10 16:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2015-11-22 03:29:25 UTC
$ flexget
Traceback (most recent call last):
  File "/usr/local/bin/flexget", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3074, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3060, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3087, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 647, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 660, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 833, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'guessit<0.10.4,>=0.9.3' distribution was not found and is required by FlexGet

and after downgrading py-guessit

$ flexget execute
Traceback (most recent call last):
  File "/usr/local/bin/flexget", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3074, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3060, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3087, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 647, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 660, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 833, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'beautifulsoup4!=4.2.0,<4.4,>=4.1' distribution was not found and is required by FlexGet
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-22 03:45:22 UTC
@Jan Thanks for the report, the requirements for flexget either need to be patches to remove "<0.10.4,", or flexget upstream needs to ensure they can support an always >=x.y dependency version.

Doing the former doesn't guarantee run-time will work (0.11.x may be API incompatible), so its worth running flexget tests if it has any)

Also, please include error/large logs  as attachments instead of comments, thanks!
Comment 2 Jan Beich freebsd_committer freebsd_triage 2015-11-22 05:26:28 UTC
(In reply to Kubilay Kocak from comment #1)
> @Jan Thanks for the report, the requirements for flexget either need to be
> patches to remove "<0.10.4,", or flexget upstream needs to ensure they can
> support an always >=x.y dependency version.

After adjusting versions flexget stops hitting errors and appears to work fine here.

> Doing the former doesn't guarantee run-time will work (0.11.x may be API
> incompatible), so its worth running flexget tests if it has any)

From pavement.py:

  # There is a bug in beautifulsoup 4.2.0 that breaks imdb parsing, see http://flexget.com/ticket/2091
  # guessit 0.10.4 stops supporting python 2.6, the tests also start failing on 2.7

|make test| is broken since ports r396119 as tests/ directory disappeared from PyPI package but still present on GitHub.

Upstream (at 1.2.393 currently) guessit/beautifulsoup requirements haven't changed but others have:

  $ make
  py27-flexget-1.2.393,1: "www/py-flask-assets" non-existent -- dependency list incomplete
  py27-flexget-1.2.393,1: "www/py-flask-compress" non-existent -- dependency list incomplete
  py27-flexget-1.2.393,1: "www/py-flask-login" non-existent -- dependency list incomplete
  py27-flexget-1.2.393,1: "www/py-flask-restplus" non-existent -- dependency list incomplete
  py27-flexget-1.2.393,1: "devel/py-pytvmaze" non-existent -- dependency list incomplete
  [...]
  ===>  Staging for py27-flexget-1.2.393,1
  ===>   py27-flexget-1.2.393,1 depends on package: py27-feedparser>=5.2.1 - not found
  ===>   py27-flexget-1.2.393,1 depends on package: py27-cherrypy>=3.7.0 - not found
  ===>   py27-flexget-1.2.393,1 depends on package: py27-pyscss==1.3.4 - not found
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-07-10 16:33:08 UTC
A commit references this bug:

Author: jbeich
Date: Sun Jul 10 16:32:22 UTC 2016
New revision: 418328
URL: https://svnweb.freebsd.org/changeset/ports/418328

Log:
  www/py-flexget: unbreak runtime after r401600 and r401602

  PR:		204729
  Submitted by:	koobs
  Approved by:	portmgr's bustage blanket

Changes:
  head/www/py-flexget/Makefile
  head/www/py-flexget/files/
  head/www/py-flexget/files/patch-pavement.py
Comment 4 commit-hook freebsd_committer freebsd_triage 2016-07-10 16:35:10 UTC
A commit references this bug:

Author: jbeich
Date: Sun Jul 10 16:34:20 UTC 2016
New revision: 418329
URL: https://svnweb.freebsd.org/changeset/ports/418329

Log:
  MFH: r418328

  www/py-flexget: unbreak runtime after r401600 and r401602

  PR:		204729
  Submitted by:	koobs
  Approved by:	portmgr's bustage blanket
  Approved by:	ports-secteam' bustage blanket

Changes:
_U  branches/2016Q3/
  branches/2016Q3/www/py-flexget/Makefile
  branches/2016Q3/www/py-flexget/files/