saul-g / El-libro-de-Django

La versiòn en español del libro Django.
http://django-book.blogspot.mx/
Other
94 stars 53 forks source link

Bug al ejecutar make #4

Open tanrax opened 9 years ago

tanrax commented 9 years ago

Lo he intentado tanto en Debian como en OS X, y cuando ejecutas make html, o make epub te encuentras con el siguiente error.

    StandaloneHTMLBuilder.init(self)
  File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/html.py", line 107, in init
    self.init_highlighter()
  File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/html.py", line 155, in init_highlighter
    self.config.trim_doctest_flags)
  File "/usr/local/lib/python2.7/dist-packages/sphinx/highlighting.py", line 78, in __init__
    style = get_style_by_name(stylename)
  File "/usr/local/lib/python2.7/dist-packages/pygments/styles/__init__.py", line 61, in get_style_by_name
    (builtin and ", though it should be builtin") + ".")
ClassNotFound: Could not find style module 'matizze'.
fgalvanbaez commented 9 years ago

Me aparece el mismo error. El siguiente código es la raza completa que se puede encontrar en: /tmp/sphinx-err-xdnNJi.log en mi caso.

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/sphinx/cmdline.py", line 245, in main app.build(opts.force_all, filenames) File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", line 264, in build self.builder.build_update() File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/init.py", line 240, in build_update self.build(['all'], to_build) File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/init.py", line 316, in build self.write(docnames, list(updated_docnames), method) File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/latex.py", line 107, in write docwriter.write(doctree, destination) File "/usr/local/lib/python2.7/dist-packages/docutils/writers/init.py", line 80, in write self.translate() File "/usr/local/lib/python2.7/dist-packages/sphinx/writers/latex.py", line 100, in translate visitor = self.translator_class(self.document, self.builder) File "/usr/local/lib/python2.7/dist-packages/sphinx/writers/latex.py", line 260, in init builder.config.pygments_style, builder.config.trim_doctest_flags) File "/usr/local/lib/python2.7/dist-packages/sphinx/highlighting.py", line 78, in init style = get_style_by_name(stylename) File "/usr/local/lib/python2.7/dist-packages/pygments/styles/init.py", line 61, in get_style_by_name (builtin and ", though it should be builtin") + ".")

EduardoZepeda commented 9 years ago

Yo solucioné el problema de la siguiente manera: Vayan al archivo llamado "conf.py", abranlo y encuentren lo siguiente:

Options for HTML output. ... pygments_style = 'matizze' ...

Sustituyan la palabra 'matizze' por 'default', debe quedar así:

pygments_style = 'default'

Guarden el archivo e intenten correr de nuevo el comando make html o make epub desde la consola Adjunto una captura de pantalla del archivo conf.py modificado.

captura de pantalla de 2015-06-30 13 31 21

tanrax commented 9 years ago

Va perfecto!!! Ya he enviado un pull request con el cambio.