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

Add ARCHES_APPLICATIONS to core settings.py #10714

Closed
jacobtylerwalls opened this issue Mar 26, 2024 · 0 comments · Fixed by #10715
Closed

Add ARCHES_APPLICATIONS to core settings.py #10714

jacobtylerwalls opened this issue Mar 26, 2024 · 0 comments · Fixed by #10715
Assignees

Comments

@jacobtylerwalls
Copy link
Member

The ARCHES_APPLICATIONS setting is provided with the new project template and included in the project upgrade instructions, but as of #10613 (7.6 dev), we need to include it with core settings.py also so that setup_db runs. (To run the test suite, one must setup_db first.)

2024-03-26 10:10:41,045 arches.app.utils.data_management.resource_graphs.importer ERROR    'Settings' object has no attribute 'ARCHES_APPLICATIONS'
Traceback (most recent call last):
  File "/Users/jwalls/prj/arches/arches/app/datatypes/datatypes.py", line 101, in get_instance
    datatype_instance = DataTypeFactory._datatype_instances[d_datatype.classname]
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'BaseDataType'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/jwalls/prj/arches/arches/app/models/system_settings.py", line 67, in __getattr__
    return super(SystemSettings, self).__getattr__(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/django/conf/__init__.py", line 104, in __getattr__
    val = getattr(_wrapped, name)
          ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Settings' object has no attribute 'ARCHES_APPLICATIONS'
@jacobtylerwalls jacobtylerwalls self-assigned this Mar 26, 2024
@chiatt chiatt added this to pipeline Mar 26, 2024
@jacobtylerwalls jacobtylerwalls linked a pull request Mar 26, 2024 that will close this issue
3 tasks
@jacobtylerwalls jacobtylerwalls moved this to 👀 In Review in pipeline Mar 26, 2024
chrabyrd added a commit that referenced this issue Mar 26, 2024
@github-project-automation github-project-automation bot moved this from 👀 In Review to ✅ Done in pipeline Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant