You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lot of code for the doc_gen.py files from the hydrus repo in the ./examples folder seem outdated.
For eg, The way the status codes is defined here is wrong. It get interpreted in the expectsHeader section instead of possibleStatus section. The correct way would have been to use the HydraStatus or HydraError class.
Expected Behaviour:
The expected result should have been that it gets added to the possibleStatus section.
Steps to reproduce:
run python3 hydrus/examples/drones/doc_gen.py and examine the generated api doc and you would be able to find the above issues.
Do you want to work on this issue?
Yes
The text was updated successfully, but these errors were encountered:
sameshl
changed the title
Outdated example code due to
Outdated example code
Feb 28, 2020
After running the python3 hydrus/examples/drones/doc_gen.py, I am getting this error, how should i fix it. File "doc_gen.py", line 3, in <module> from hydra_python_core.doc_writer import HydraDoc, HydraClass, HydraClassProp, HydraClassOp ModuleNotFoundError: No module named 'hydra_python_core'
@n1khilmane Have you installed all the dependencies in your virtual envirnoment while setting up the project before running python3 hydrus/examples/drones/doc_gen.py?
If not, in the root directory of this project:
To create virtual env: python3 -m venv venv
To activate the env: source venv/bin/activate
To install the required dependencies: pip3 install -r requirements.txt
Now run, python3 hydrus/examples/drones/doc_gen.py.
I'm submitting a
Current Behaviour:
Lot of code for the
doc_gen.py
files from the hydrus repo in the ./examples
folder seem outdated.For eg, The way the status codes is defined here is wrong. It get interpreted in the
expectsHeader
section instead ofpossibleStatus
section. The correct way would have been to use theHydraStatus
orHydraError
class.Expected Behaviour:
The expected result should have been that it gets added to the
![Screenshot from 2020-02-26 22-06-05](https://user-images.githubusercontent.com/43701530/75366220-66e08780-58e4-11ea-8276-1558b602d563.png)
possibleStatus
section.Steps to reproduce:
run
python3 hydrus/examples/drones/doc_gen.py
and examine the generated api doc and you would be able to find the above issues.Do you want to work on this issue?
Yes
The text was updated successfully, but these errors were encountered: