Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing python-dateutil & docutils python packages #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Leibniz137
Copy link

When running brew test flocker-1.9.0, I received the following error:

Testing clusterhq/tap/flocker-1.9.0
==> Using the sandbox
==> /usr/local/Cellar/flocker-1.9.0/1.9.0/bin/flocker-deploy --version
Last 15 lines from /Users/ngentile/Library/Logs/Homebrew/flocker-1.9.0/01.flocker-deploy:
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/bin/flocker-deploy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
    @_call_aside
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 651, in _build_master
    ws.require(__requires__)
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 952, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'docutils>=0.10' distribution was not found and is required by botocore
Error: clusterhq/tap/flocker-1.9.0: failed
Failed executing: /usr/local/Cellar/flocker-1.9.0/1.9.0/bin/flocker-deploy --version
/usr/local/Library/Homebrew/formula.rb:1477:in `block in system'
/usr/local/Library/Homebrew/formula.rb:1414:in `open'
/usr/local/Library/Homebrew/formula.rb:1414:in `system'
/usr/local/Library/Taps/clusterhq/homebrew-tap/flocker-1.9.0.rb:377:in `block in <class:Flocker190>'
/usr/local/Library/Homebrew/formula.rb:1323:in `block in run_test'
/usr/local/Library/Homebrew/extend/fileutils.rb:17:in `mktemp'
/usr/local/Library/Homebrew/formula.rb:1319:in `run_test'
/usr/local/Library/Homebrew/test.rb:28:in `block in <main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
/usr/local/Library/Homebrew/test.rb:27:in `<main>'

This was fixed by adding docutils resource to flocker-1.9.0.rb

Once that was added and I ran brew test flocker-1.9.0 again, I received another traceback:

Testing clusterhq/tap/flocker-1.9.0
==> Using the sandbox
==> /usr/local/Cellar/flocker-1.9.0/1.9.0/bin/flocker-deploy --version
Last 15 lines from /Users/ngentile/Library/Logs/Homebrew/flocker-1.9.0/01.flocker-deploy:
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/bin/flocker-deploy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
    @_call_aside
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/Cellar/flocker-1.9.0/1.9.0/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-dateutil<3.0.0,>=2.1' distribution was not found and is required by botocore
Error: clusterhq/tap/flocker-1.9.0: failed
Failed executing: /usr/local/Cellar/flocker-1.9.0/1.9.0/bin/flocker-deploy --version
/usr/local/Library/Homebrew/formula.rb:1477:in `block in system'
/usr/local/Library/Homebrew/formula.rb:1414:in `open'
/usr/local/Library/Homebrew/formula.rb:1414:in `system'
/usr/local/Library/Taps/clusterhq/homebrew-tap/flocker-1.9.0.rb:367:in `block in <class:Flocker190>'
/usr/local/Library/Homebrew/formula.rb:1323:in `block in run_test'
/usr/local/Library/Homebrew/extend/fileutils.rb:17:in `mktemp'
/usr/local/Library/Homebrew/formula.rb:1319:in `run_test'
/usr/local/Library/Homebrew/test.rb:28:in `block in <main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
/usr/local/Library/Homebrew/test.rb:27:in `<main>'

This too was fixed by added the appropriate python package resource (python-dateutil) to flocker-1.9.0.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant