abakan-zz / ablog

ABlog for blogging with Sphinx
ablog.readthedocs.org
Other
122 stars 35 forks source link

generate_atom_feeds failed (sphinx v.1.5.3, ablog 0.8.4) #85

Open ilya-bystrov opened 7 years ago

ilya-bystrov commented 7 years ago

Looks like similar to #74 By default built failed. But after creating mkdir -p _website/blog/ directory build finished successful. Here is failed output.

ablog build
Running Sphinx v1.5.3
making output directory...
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [dirhtml]: targets for 3 source files that are out of date
updating environment: 3 added, 0 changed, 0 removed
reading sources... [100%] index                                                                                                         
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index                                                                                                          
generating indices... genindex

Exception occurred:
  File "/usr/local/lib/python2.7/dist-packages/ablog/post.py", line 660, in generate_atom_feeds
reading sources... [100%] index                                                                                                         
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index                                                                                                          
generating indices... genindex

Exception occurred:
  File "/usr/local/lib/python2.7/dist-packages/ablog/post.py", line 660, in generate_atom_feeds
    with open(feed_path, 'w') as out:
IOError: [Errno 2] No such file or directory: u'/home/i/blog/_website/blog/atom.xml'
The full traceback has been saved in /tmp/sphinx-err-0NJvhM.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://github.com/sphinx-doc/sphinx/issues>. Thanks!
jbencook commented 7 years ago

I'm having the same problem. FWIW pip install Sphinx==1.4.9 worked for me.