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

make gettext #9

Closed
meshiguge opened this issue Mar 4, 2017 · 4 comments
Closed

make gettext #9

meshiguge opened this issue Mar 4, 2017 · 4 comments

Comments

@meshiguge
Copy link

hi, when use make gettext in my docs, "startswith" error caused:

Exception occurred:
File "/Users/xx/anaconda/lib/python2.7/posixpath.py", line 54, in isabs
return s.startswith('/')
AttributeError: StringList instance has no attribute 'startswith'
The full traceback has been saved in /var/folders/hq/x053v2n52fbbkyd99d_46ywh0000gn/T/sphinx-err-wgSdEl.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at https://bitbucket.org/birkenfeld/sphinx/issues/. Thanks!
make: *** [gettext] Error 1

anyone knows how to do ? thanks

@shimizukawa
Copy link
Member

I guess it is caused by sphinx-build instead of sphinx-intl. So you should file the issue to https://github.com/sphinx-doc/sphinx/issues.

BTW, It seems your sphinx version is not a current maintained version. Please try earlier version of sphinx.
And/or, please let me know a full traceback that is recorded in the saved log file: /var/folders/hq/x053v2n52fbbkyd99d_46ywh0000gn/T/sphinx-err-wgSdEl.log

@meshiguge
Copy link
Author

here is the log :

packages/sphinx/ext/oldcmarkup.pyc
Traceback (most recent call last):
File "/Users/xx/anaconda/lib/python2.7/site-packages/sphinx/cmdline.py", line 254, in main
app.build(force_all, filenames)
File "/Users/xx/anaconda/lib/python2.7/site-packages/sphinx/application.py", line 220, in build
self.builder.build_update()
File "/Users/xx/anaconda/lib/python2.7/site-packages/sphinx/builders/init.py", line 214, in build_update
'out of date' % len(to_build))
File "/Users/xx/anaconda/lib/python2.7/site-packages/sphinx/builders/gettext.py", line 177, in build
I18nBuilder.build(self, docnames, summary, method)
File "/Users/xx/anaconda/lib/python2.7/site-packages/sphinx/builders/init.py", line 279, in build
self.finish()
File "/Users/xx/anaconda/lib/python2.7/site-packages/sphinx/builders/gettext.py", line 206, in finish
for source, line, _ in positions))
File "/Users/xx/anaconda/lib/python2.7/site-packages/sphinx/builders/gettext.py", line 206, in
for source, line, _ in positions))
File "/Users/xx/anaconda/lib/python2.7/site-packages/sphinx/util/osutil.py", line 160, in safe_relpath
return relpath(path, start)
File "/Users/xx/anaconda/lib/python2.7/posixpath.py", line 431, in relpath
path_list = [x for x in abspath(path).split(sep) if x]
File "/Users/xx/anaconda/lib/python2.7/posixpath.py", line 360, in abspath
if not isabs(path):
File "/Users/xx/anaconda/lib/python2.7/posixpath.py", line 54, in isabs
return s.startswith('/')
AttributeError: StringList instance has no attribute 'startswith'

@meshiguge
Copy link
Author

meshiguge commented Mar 4, 2017

I guess it is caused by sphinx-build instead of sphinx-intl

But my make html could work well . It causes error when I use make gettext with sphinx-intl

thanks

@shimizukawa
Copy link
Member

shimizukawa commented Sep 12, 2017

It seems that this issue was reported by sphinx-doc/sphinx#3510. So now I close this issue. Thanks.

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

No branches or pull requests

2 participants