Closed ylussaud closed 1 year ago
The bug seems to be still present, see this discussion. We probably need to add a test to know if the main module has an attribute named Attribute:
AttributeError: module ‘main’ has no attribute ‘Attribute’
As a workaround you can include the module declaring the class Attribute:
# include needed for the requirement API
include('workspace://Python4Capella/simplified_api/requirement.py')
if False:
from simplified_api.requirement import *
I added an error message to tell to import the requirement.py file.
See this discussion for more details.