idaholab / TEAL

TEAL is a financial performance calculator plugin for the RAVEN code, framework, resolving around the computation of Net Present Value and associated financial metrics.
Apache License 2.0
9 stars 21 forks source link

[DEFECT] Documentation no longer builds on macOS #51

Closed dylanjm closed 1 year ago

dylanjm commented 2 years ago

Defect Description

Describe the defect

What did you expect to see happen?

I imagine due to the recent change in module structure in RAVEN and related plugins, we are now seeing the documentation fail to build due to relative import errors.

Here is the error I get when trying to run make on macOS:

chmod u+x script/copy_tex.sh
script/copy_tex.sh
python script/generate_user_manual.py
Traceback (most recent call last):
  File "/Users/mcdodj/Documents/projects/TEAL/doc/script/generate_user_manual.py", line 9, in <module>
    import collect_tex
  File "/Users/mcdodj/Documents/projects/TEAL/doc/script/collect_tex.py", line 15, in <module>
    import CashFlows
  File "/Users/mcdodj/Documents/projects/TEAL/src/CashFlows.py", line 32, in <module>
    from ..src import Amortization
ImportError: attempted relative import with no known parent package
make: *** [populate] Error 1

Describe how to Reproduce Steps to reproduce the behavior:

  1. Run make on macOS

Screenshots and Input Files Please attach the input file(s) that generate this error. The simpler the input, the faster we can find the issue.

Platform (please complete the following information):


For Change Control Board: Issue Review

This review should occur before any development is performed as a response to this issue.


For Change Control Board: Issue Closure

This review should occur when the issue is imminently going to be closed.

worseliz commented 2 years ago

The documentation also will not compile on Windows. Terminating error is:

C:...\raven\plugins\HERON\doc\sqa\srs_rtr_combined>DEL /Q .aux .log .out .pdf *.toc ..\srs\requirements.tex ..\rtr\traceability_matrix.tex Could Not Find C:...\raven\plugins\HERON\doc\sqa\rtr\traceability_matrix.tex

joshua-cogliati-inl commented 1 year ago

Okay, TEAL/doc/script/collect_tex.py does the CashFlows import wrong for the new way of doing paths. I'll see if I can fix it quickly.

PaulTalbot-INL commented 1 year ago

The work in #62 hopefully solves this; however, automated tests don't cover building the documentation, so this should be checked on OSX, Windows, and Linux with the changes before closing this issue.