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

Error assert executable == sys.executable, (executable, sys.executable) #22

Open
guewen opened this issue Sep 8, 2014 · 0 comments · May be fixed by #23
Open

Error assert executable == sys.executable, (executable, sys.executable) #22

guewen opened this issue Sep 8, 2014 · 0 comments · May be fixed by #23

Comments

@guewen
Copy link

guewen commented Sep 8, 2014

Occurs when running bin/buildout.

The part:

[sphinxbuilder_connector]
recipe = collective.recipe.sphinxbuilder
source = ${buildout:directory}/parts/connector/connector/doc
build = docs
interpreter = ${buildout:directory}/bin/python_openerp

Traceback:

collective.recipe.sphinxbuilder: writing MAKEFILE..
collective.recipe.sphinxbuilder: writing BATCHFILE..
collective.recipe.sphinxbuilder: writing custom sphinx-builder script..
While:
  Updating sphinxbuilder_connector.

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/gbaconnier/.buildout/eggs/zc.buildout-2.2.1-py2.7.egg/zc/buildout/buildout.py", line 1942, in main
    getattr(buildout, command)(args)
  File "/home/gbaconnier/.buildout/eggs/zc.buildout-2.2.1-py2.7.egg/zc/buildout/buildout.py", line 592, in install
    installed_files = self[part]._call(update)
  File "/home/gbaconnier/.buildout/eggs/zc.buildout-2.2.1-py2.7.egg/zc/buildout/buildout.py", line 1366, in _call
    return f()
  File "/home/gbaconnier/.buildout/eggs/collective.recipe.sphinxbuilder-0.8.2-py2.7.egg/collective/recipe/sphinxbuilder/__init__.py", line 141, in install
    self.bin_dir, **egg_options)
  File "/home/gbaconnier/.buildout/eggs/zc.buildout-2.2.1-py2.7.egg/zc/buildout/easy_install.py", line 931, in scripts
    assert executable == sys.executable, (executable, sys.executable)
AssertionError: ('/usr/bin/python', '/home/gbaconnier/projects/openerp/sandbox/bin/python')

Reason is that this line: https://github.com/sdouche/collective.recipe.sphinxbuilder/blob/master/src/collective/recipe/sphinxbuilder/__init__.py#L140 pass /usr/bin/python to zc.buildout.easy_install.scripts whereas it expects the virtualenv's one. I don't know much the buildout internals, but it seems that anyway this parameter is not used. Using sys.executable instead of self.buildout[self.buildout['buildout']['python']]['executable'] seems better.

guewen added a commit to guewen/collective.recipe.sphinxbuilder that referenced this issue Sep 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant