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

Buildout fails with 'ValueError: ('No requirements found', '')' #115

Closed
tisto opened this issue Apr 30, 2015 · 5 comments
Closed

Buildout fails with 'ValueError: ('No requirements found', '')' #115

tisto opened this issue Apr 30, 2015 · 5 comments
Milestone

Comments

@tisto
Copy link
Sponsor Member

tisto commented Apr 30, 2015

It seems like this line works only for more recent zc.buildout/zc.recipe.egg versions:

eggs = self.egg.working_set(extra=self.extensions)[1]

My configuration:

  • zc.buildout 1.7.1
  • zc.recipe.egg 1.3.2
  • plone.recipe.codeanalysis 2.0a2

Trace (after running bin/buildout):

While:
  Installing code-analysis.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/home/timo/.buildout/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py", line 1866, in main
    getattr(buildout, command)(args)
  File "/home/timo/.buildout/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py", line 625, in install
    installed_files = self[part]._call(recipe.install)
  File "/home/timo/.buildout/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py", line 1345, in _call
    return f()
  File "/home/timo/.buildout/eggs/plone.recipe.codeanalysis-2.0a2-py2.7.egg/plone/recipe/codeanalysis/__init__.py", line 136, in install
    self.install_scripts()
  File "/home/timo/.buildout/eggs/plone.recipe.codeanalysis-2.0a2-py2.7.egg/plone/recipe/codeanalysis/__init__.py", line 169, in install_scripts
    eggs = self.egg.working_set(extra=self.extensions)[1]
  File "/home/timo/.buildout/eggs/zc.recipe.egg-1.3.2-py2.7.egg/zc/recipe/egg/egg.py", line 101, in working_set
    **kw)
  File "/home/timo/.buildout/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/easy_install.py", line 1079, in install
    return installer.install(specs, working_set)
  File "/home/timo/.buildout/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/easy_install.py", line 875, in install
    for spec in specs]
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2919, in parse
    raise ValueError("No requirements found", s)
ValueError: ('No requirements found', '')
@tisto tisto added this to the 2.0 milestone Apr 30, 2015
@tisto
Copy link
Sponsor Member Author

tisto commented Apr 30, 2015

Found the problem. I was using "flake8-extensions" instead of "flake8-extension". @saily can we amend the recipe to use "flake8-extensions"?

@tisto
Copy link
Sponsor Member Author

tisto commented Apr 30, 2015

Ok. I was wrong. flake8-extension just works because it is ignored. Will fix the README.

@saily
Copy link
Member

saily commented Apr 30, 2015

@tisto anything to do here?

@saily saily closed this as completed Apr 30, 2015
@tisto
Copy link
Sponsor Member Author

tisto commented May 1, 2015

@saily why did you close that issue? This is still a real regression.

@tisto tisto reopened this May 1, 2015
@saily
Copy link
Member

saily commented May 1, 2015

ok, sorry, thought you were wrong and i could close it. should we add a requirement to zc.bulidout>=2.0 or try to get it work in 1.7?

@saily saily closed this as completed in 508be12 May 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants