Bug 213893 - devel/py-fabric: Fails to run: Requires paramiko < 2.0, port has >= 2.0.0
Summary: devel/py-fabric: Fails to run: Requires paramiko < 2.0, port has >= 2.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Li-Wen Hsu
URL:
Keywords: regression
Depends on:
Blocks: 214379
  Show dependency treegraph
 
Reported: 2016-10-29 18:09 UTC by Simeon Simeonov
Modified: 2016-11-10 07:19 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback+


Attachments
fabric.diff (3.96 KB, patch)
2016-10-30 15:37 UTC, Li-Wen Hsu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Simeonov 2016-10-29 18:09:44 UTC
The following error occurs after upgrading to py27-fabric-1.12.0,1

Traceback (most recent call last):
  File "/usr/local/bin/fab", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2991, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2977, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3004, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 664, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 677, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 856, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'paramiko<2.0,>=1.10' distribution was not found and is required by Fabric
Comment 1 Simeon Simeonov 2016-10-29 18:17:12 UTC

*** This bug has been marked as a duplicate of bug 211589 ***
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2016-10-30 01:11:33 UTC
Not a duplicate, bug 211589 was for the update, this is for the regression after the fact. 

Assign last committer for resolution
Comment 3 Li-Wen Hsu freebsd_committer freebsd_triage 2016-10-30 15:37:55 UTC
Created attachment 176312 [details]
fabric.diff
Comment 4 Li-Wen Hsu freebsd_committer freebsd_triage 2016-10-30 15:39:43 UTC
(In reply to Li-Wen Hsu from comment #3)
I think the fastest way to solve this is adding security/py-paramiko1 and change the dependency of devel/py-fabric .  How do you think of this?
Comment 5 Simeon Simeonov 2016-10-30 15:42:04 UTC
I think that it is definitely the fastest solution.
I don't have any better suggestions myself.
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2016-10-31 00:39:50 UTC
Another possibility is run the test suite with >= 2.0.0 to see if it passes to prove function. If so, patch the dependency to >= 2.0.0 only and submit a PR/issue upstream for them to not lock it to major versions, but instead latest versions all the time to get in front of potential issues
Comment 7 Li-Wen Hsu freebsd_committer freebsd_triage 2016-11-03 06:56:13 UTC
(In reply to Kubilay Kocak from comment #6)
After some research, I found this might be risky:

http://bitprophet.org/blog/2016/04/23/paramiko-2.0-is-coming/
https://github.com/fabric/fabric/issues/1461

So I suggest adding security/py-paramiko1 for now.
Comment 8 Simeon Simeonov 2016-11-03 08:37:20 UTC
Let's do it!
Comment 9 commit-hook freebsd_committer freebsd_triage 2016-11-08 05:46:29 UTC
A commit references this bug:

Author: lwhsu
Date: Tue Nov  8 05:46:17 UTC 2016
New revision: 425685
URL: https://svnweb.freebsd.org/changeset/ports/425685

Log:
  Add security/py-paramiko1, for ports that require paramiko 1.x

  PR:		213893

Changes:
  head/security/Makefile
  head/security/py-paramiko1/
  head/security/py-paramiko1/Makefile
  head/security/py-paramiko1/distinfo
Comment 10 commit-hook freebsd_committer freebsd_triage 2016-11-08 05:48:31 UTC
A commit references this bug:

Author: lwhsu
Date: Tue Nov  8 05:48:03 UTC 2016
New revision: 425687
URL: https://svnweb.freebsd.org/changeset/ports/425687

Log:
  - Use security/py-paramiko1

  PR:		213893

Changes:
  head/devel/py-fabric/Makefile