inception-project / inception-reporting-dashboard

This package generate plots for your INCEpTION project to visualize the project progress.
Apache License 2.0
1 stars 4 forks source link

Bug with demo project #31

Closed chlor closed 3 months ago

chlor commented 3 months ago

Describe the bug I have downloaded the project and have tried to start it. Dashboard is started and localhost opened. In the project settings left, there is 'data/gemtex_demo_projects/'. If you klick 'Generate Reports', ther ist an error like:

`FileNotFoundError: [Errno 2] No such file or directory: 'data/gemtex_demo_projects/' Traceback:

File "/home/chlor/PycharmProjects/inception-reporting-dashboard/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script exec(code, module.dict) File "/home/chlor/PycharmProjects/inception-reporting-dashboard/venv/lib/python3.11/site-packages/inception_reports/generate_reports_manager.py", line 509, in main() File "/home/chlor/PycharmProjects/inception-reporting-dashboard/venv/lib/python3.11/site-packages/inception_reports/generate_reports_manager.py", line 499, in main select_method_to_import_data() File "/home/chlor/PycharmProjects/inception-reporting-dashboard/venv/lib/python3.11/site-packages/inception_reports/generate_reports_manager.py", line 236, in select_method_to_import_data st.session_state["projects"] = read_dir(projects_folder) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/chlor/PycharmProjects/inception-reporting-dashboard/venv/lib/python3.11/site-packages/inception_reports/generate_reports_manager.py", line 143, in read_dir for file_name in os.listdir(dir_path): ^^^^^^^^^^^^^^^^^^^^`

To Reproduce Steps to reproduce the behavior:

  1. Download project
  2. pip install inception-reports
  3. run inception-reports --manager

Expected behavior A clear and concise description of what you expected to happen.

Error message If applicable, add the error message to help explain your problem.

Screenshots Bildschirmfoto vom 2024-05-22 14-48-03

Please complete the following information:

Additional context

chlor commented 3 months ago

Is it possible to clear it with an upload of testdata under 'data/gemtex_demo_projects'?

serwarde commented 3 months ago

This wasn't supposed to be there, it was a hardcoded value for testing purposes, got fixed in #32 Please input the path to the folder where you keep your exported projects yourself.