odtp-org / odtp

ODTP: A tool designed to manage, run, and design digital twins.
https://odtp-org.github.io/odtp-manuals/
GNU Affero General Public License v3.0
10 stars 1 forks source link

Boolean object definition #178

Closed peiling24 closed 1 month ago

peiling24 commented 3 months ago

Environment

ODTP/ODTP Component version:0.2.8 Operating System: Microsoft Windows 10 Education

Bug description

Summary:

In step 7 with command docker exec -it odtp-odtp-1 odtp setup initiate, this error showed up:

INFO (18/06/2024 08:39:22 AM): environment variables loaded (LineL 6 [settings.py]) Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/odtp/helpers/settings.py", line 22, in ODTP_DASHBOARD_RELOAD = eval(os.getenv("ODTP_DASHBOARD_RELOAD")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1, in NameError: name 'FALSE' is not defined. Did you mean: 'False'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/bin/odtp", line 5, in from odtp.cli.main import app File "/usr/local/lib/python3.11/site-packages/odtp/cli/main.py", line 12, in from odtp.helpers.utils import get_odtp_version File "/usr/local/lib/python3.11/site-packages/odtp/helpers/utils.py", line 3, in import odtp.mongodb.db as db File "/usr/local/lib/python3.11/site-packages/odtp/mongodb/db.py", line 11, in import odtp.helpers.git as git_helpers File "/usr/local/lib/python3.11/site-packages/odtp/helpers/git.py", line 7, in from odtp.helpers.settings import GITHUB_TOKEN File "/usr/local/lib/python3.11/site-packages/odtp/helpers/settings.py", line 25, in raise OdtpSettingsException(f"Configuration of ODTP raised an exception {e}") odtp.helpers.settings.OdtpSettingsException: Configuration of ODTP raised an exception name 'FALSE' is not defined

Steps to reproduce the bug:

1.Follow tutorial on ubuntu until step 7

peiling24 commented 3 months ago

It was resolved by changing the Boolean definition in .env file as

Dashboard parameters

ODTP_DASHBOARD_PORT=8003 ODTP_DASHBOARD_RELOAD=False

sabinem commented 1 month ago

@peiling24 Glad you could resolve this yourself. So I will close this issue.