I'm trying to create HTML documentation for my package, but I keep getting the same error over and over again.
I'm on a Windows machine, using Python 3.7 and Sphinx 3.2.1.
My package is structured like this:
[package]
 |
 |__ [package]
 |   |
 |   |__ module1.py
 |   |__ module2.py
 |   |__ __init__.py
 |
 |__ setup.py
I created a docs folder in the second [package] folder, and ran sphinx-quickstart resulting in this structure:
[package]
 |
 |__ [package]
 |   |
 |   |__ module1.py
 |   |__ module2.py
 |   |__ __init__.py
 |   |
 |   |__ [docs]
 |       |
 |       |__ [_build]
 |       | ...
 |       |__ conf.py
 |__ setup.py
I uncommented and changed conf.py:
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
Afterwards I did sphinx-apidoc -o . .. and when I run make html, I get the following output:
Running Sphinx v3.2.1
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
C:\Users\username\.conda\envs\cera\lib\importlib\_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
  return f(*args, **kwds)
WARNING: autodoc: failed to import module 'module1' from module 'package'; the following exception was raised:
DLL load failed: The specified module could not be found.
WARNING: autodoc: failed to import module 'module2' from module 'package'; the following exception was raised:
DLL load failed: The specified module could not be found.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] modules
generating indices...  genindex py-modindexdone
writing additional pages...  searchdone
copying static files... ... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 2 warnings.
The HTML pages are in _build\html.
The HTML files a created but there is absolutely no documentation apart from the listing of the modules. Why do I get the DLL error?
If you need any additional information, let me know!
 
     
    