bpnet
bpnet copied to clipboard
Cannot make documentation
(I'm using the bpnet conda environment, git commit de99967aa5) In bpnet/docs,
make build
mkdir -p theme_dir/img/ipynb/
./render_ipynb.bash
pydocmd build
make: pydocmd: Command not found
make: *** [Makefile:13: build] Error 127
I then installed pydoc-markdown (pip install pydoc-markdown), and now I get (home directory replaced with ~):
make build
mkdir -p theme_dir/img/ipynb/
./render_ipynb.bash
pydocmd build
~/anaconda3/install/envs/bpnet/lib/python3.6/site-packages/pydocmd/__main__.py:47: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(fp)
Traceback (most recent call last):
File "~/anaconda3/install/envs/bpnet/bin/pydocmd", line 10, in <module>
sys.exit(main())
File "~/anaconda3/install/envs/bpnet/lib/python3.6/site-packages/pydocmd/__main__.py", line 177, in main
preproc = import_object(config['preprocessor'])(config)
File "~/anaconda3/install/envs/bpnet/lib/python3.6/site-packages/pydocmd/imp.py", line 44, in import_object
return import_object_with_scope(name)[0]
File "~/anaconda3/install/envs/bpnet/lib/python3.6/site-packages/pydocmd/imp.py", line 73, in import_object_with_scope
obj = scope = import_module(current_name)
File "~/anaconda3/install/envs/bpnet/lib/python3.6/site-packages/pydocmd/imp.py", line 36, in import_module
return __import__(name, fromlist=[''])
ModuleNotFoundError: No module named 'pydocmd.preprocessor.DataLoaderYamlPreprocessor'; 'pydocmd.preprocessor' is not a package
make: *** [Makefile:13: build] Error 1
thanks! I need to setup the documentation yaml file.
Hi there, I am running into errors with 'make build' as well. After downloading pydoc-markdown and pydocmd, I get this error:
make build
mkdir -p theme_dir/img/ipynb/
./render_ipynb.bash
pydocmd build
/homes/gws/nchand/miniconda3/bin/pydocmd:28: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "/homes/gws/nchand/miniconda3/bin/pydocmd", line 228, in <module>
file_i = insp_file(in_f)
File "/homes/gws/nchand/miniconda3/bin/pydocmd", line 54, in insp_file
mod_inst = imp.load_source('', file_name)
File "/homes/gws/nchand/miniconda3/lib/python3.9/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 846, in exec_module
File "<frozen importlib._bootstrap_external>", line 982, in get_code
File "/homes/gws/nchand/miniconda3/lib/python3.9/imp.py", line 157, in get_data
return super().get_data(path)
File "<frozen importlib._bootstrap_external>", line 1039, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'build'
make: *** [build] Error 1
I am not sure if I am somehow missing the build file or if there was an error in my setup that led to this. Any advice would be appreciated!