Problems in a "make html"

13 views
Skip to first unread message

e-friend-partner

unread,
Sep 3, 2012, 5:42:53 PM9/3/12
to sphin...@googlegroups.com
Hi comunity !

I'm trying to generate my doc, but this error arise :

C:\pru2>make html
Making output directory...
Running Sphinx v1.1.3
loading translations [es]... done
loading pickled environment... not yet created
loading intersphinx inventory from http://docs.python.org/objects.inv...
building [html]: targets for 16 source files that are out of date
updating environment: 16 added, 0 changed, 0 removed
reading sources... [  6%] codificacion

Exception occurred:
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\environment.
py", line 737, in decode
    return data.decode(self_.encoding, 'sphinx')
LookupError: unknown encoding: la

And this is error's detail :

C:\Users\fabio celi\AppData\Local\Temp>type sphinx-err-btreid.log
# Sphinx version: 1.1.3
# Python version: 2.7.3
# Docutils version: 0.9.1 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\cmdline.py",
 line 189, in main
    app.build(force_all, filenames)
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\application.
py", line 204, in build
    self.builder.build_update()
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\builders\__i
nit__.py", line 196, in build_update
    'out of date' % len(to_build))
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\builders\__i
nit__.py", line 216, in build
    purple, length):
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\builders\__i
nit__.py", line 120, in status_iterator
    for item in iterable:
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\environment.
py", line 613, in update_generator
    self.read_doc(docname, app=app)
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\environment.
py", line 761, in read_doc
    pub.publish()
  File "C:\Python27\lib\site-packages\docutils-0.9.1-py2.7.egg\docutils\core.py"
, line 221, in publish
    self.settings)
  File "C:\Python27\lib\site-packages\docutils-0.9.1-py2.7.egg\docutils\readers\
__init__.py", line 68, in read
    self.input = self.source.read()
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\environment.
py", line 740, in read
    data = FileInput.read(self_)
  File "C:\Python27\lib\site-packages\docutils-0.9.1-py2.7.egg\docutils\io.py",
line 286, in read
    return self.decode(data)
  File "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\environment.
py", line 737, in decode
    return data.decode(self_.encoding, 'sphinx')
LookupError: unknown encoding: la

C:\Users\fabio celi\AppData\Local\Temp>

Mi conf.py is attach to this. Any idea whats wrong ??

Regards,
e-friend-partner

conf.py

Federico Bruni

unread,
Sep 4, 2012, 12:58:07 AM9/4/12
to sphin...@googlegroups.com
Il 03/09/2012 23:42, e-friend-partner ha scritto:
> Hi comunity !
>
> I'm trying to generate my doc, but this error arise :
>

>
> Exception occurred:
> File
> "C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg\sphinx\environment.
> py", line 737, in decode
> return data.decode(self_.encoding, 'sphinx')
> LookupError: unknown encoding: la
>

I've never heard an encoding called "la".
You'd better leave the default (utf-8), see:
http://sphinx.pocoo.org/config.html#general-configuration

>
> Mi conf.py is attach to this. Any idea whats wrong ??
>

remove or comment this line:

source_encoding = 'la'

e-friend_partner

unread,
Sep 4, 2012, 8:36:46 AM9/4/12
to sphin...@googlegroups.com
Hi comunity  !!

Perfect!!, Comment out the line and ready. Thousand Thanks Federico !

regards,
e-friend_partner.

2012/9/3 Federico Bruni <fede...@gmail.com>


--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To post to this group, send email to sphin...@googlegroups.com.
To unsubscribe from this group, send email to sphinx-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.




--
Saludos,

Fabio Celis A.
Reply all
Reply to author
Forward
0 new messages