最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python sphinx - How do I fix autoapi.not_readable error that only occurs on readthedocs? - Stack Overflow

programmeradmin2浏览0评论

I am getting an error on every one of my package files when I try to build my documentation on readthedocs. The error is [autoapi.not_readable].

The most strange part of this is that my documentation was previously building with no issues. I even tried to just rebuild a previous docs build that hasn't had any changes to it, and I'm getting this error now. The error is challenging to debug because it does not occur on my local machine.

I have tried chmod -R a+r . to made sure all files and folders have readable permissions, but this doesn't help. Looking for advice on what else to try??

I tried changing read permissions, I tried installing my package in editable mode, and I even just tried to rebuild a previously successful build without any changes. No matter what I do, I get the same [autoapi.not_readable] error. I cannot find documentation for it online.

I am getting an error on every one of my package files when I try to build my documentation on readthedocs. The error is [autoapi.not_readable].

The most strange part of this is that my documentation was previously building with no issues. I even tried to just rebuild a previous docs build that hasn't had any changes to it, and I'm getting this error now. The error is challenging to debug because it does not occur on my local machine.

I have tried chmod -R a+r . to made sure all files and folders have readable permissions, but this doesn't help. Looking for advice on what else to try??

I tried changing read permissions, I tried installing my package in editable mode, and I even just tried to rebuild a previously successful build without any changes. No matter what I do, I get the same [autoapi.not_readable] error. I cannot find documentation for it online.

Share Improve this question edited Feb 5 at 7:18 mzjn 51.1k15 gold badges134 silver badges260 bronze badges asked Feb 4 at 20:07 c-randallc-randall 32 bronze badges 1
  • Did you install your package on RTD? See docs.readthedocs/platform/stable/… – Steve Piercy Commented Feb 5 at 7:13
Add a comment  | 

1 Answer 1

Reset to default 0

This issue is likely caused by a recent pre-release of astroid, which seems to be causing compatibility issues with sphinx-autoapi. Read permissions errors for sphinx-autoapi, only on readthedocs #11975 I pinned the astroid version to the actual 3.3.8. and this worked fine for me

发布评论

评论列表(0)

  1. 暂无评论
ok 不同模板 switch ($forum['model']) { /*case '0': include _include(APP_PATH . 'view/htm/read.htm'); break;*/ default: include _include(theme_load('read', $fid)); break; } } break; case '10': // 主题外链 / thread external link http_location(htmlspecialchars_decode(trim($thread['description']))); break; case '11': // 单页 / single page $attachlist = array(); $imagelist = array(); $thread['filelist'] = array(); $threadlist = NULL; $thread['files'] > 0 and list($attachlist, $imagelist, $thread['filelist']) = well_attach_find_by_tid($tid); $data = data_read_cache($tid); empty($data) and message(-1, lang('data_malformation')); $tidlist = $forum['threads'] ? page_find_by_fid($fid, $page, $pagesize) : NULL; if ($tidlist) { $tidarr = arrlist_values($tidlist, 'tid'); $threadlist = well_thread_find($tidarr, $pagesize); // 按之前tidlist排序 $threadlist = array2_sort_key($threadlist, $tidlist, 'tid'); } $allowpost = forum_access_user($fid, $gid, 'allowpost'); $allowupdate = forum_access_mod($fid, $gid, 'allowupdate'); $allowdelete = forum_access_mod($fid, $gid, 'allowdelete'); $access = array('allowpost' => $allowpost, 'allowupdate' => $allowupdate, 'allowdelete' => $allowdelete); $header['title'] = $thread['subject']; $header['mobile_link'] = $thread['url']; $header['keywords'] = $thread['keyword'] ? $thread['keyword'] : $thread['subject']; $header['description'] = $thread['description'] ? $thread['description'] : $thread['brief']; $_SESSION['fid'] = $fid; if ($ajax) { empty($conf['api_on']) and message(0, lang('closed')); $apilist['header'] = $header; $apilist['extra'] = $extra; $apilist['access'] = $access; $apilist['thread'] = well_thread_safe_info($thread); $apilist['thread_data'] = $data; $apilist['forum'] = $forum; $apilist['imagelist'] = $imagelist; $apilist['filelist'] = $thread['filelist']; $apilist['threadlist'] = $threadlist; message(0, $apilist); } else { include _include(theme_load('single_page', $fid)); } break; default: message(-1, lang('data_malformation')); break; } ?>