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

Cannot make documentation #2

Open
mmtrebuchet opened this issue Aug 15, 2019 · 2 comments
Open

Cannot make documentation #2

mmtrebuchet opened this issue Aug 15, 2019 · 2 comments

Comments

@mmtrebuchet
Copy link

(I'm using the bpnet conda environment, git commit de99967)
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

@Avsecz
Copy link
Collaborator

Avsecz commented Aug 15, 2019

thanks! I need to setup the documentation yaml file.

@nuriachandra
Copy link

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!

basarnoyan1 added a commit to basarnoyan1/bpnet that referenced this issue Feb 13, 2024
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

3 participants