JulianFrattini / cira

Python package for functions around the causality in requirements artifacts (CiRA) initiative.
http://www.cira.bth.se/
Apache License 2.0
10 stars 1 forks source link

Broken import of constants #77

Closed JulianFrattini closed 11 months ago

JulianFrattini commented 11 months ago

Starting the CiRA app via python app.py produces the following error message:

  File "C:\Users\juf\Workspace\BTH\NLP_RE\cira\app.py", line 9, in <module>
    from src.api.service import CiRAService, CiRAServiceImpl
  File "C:\Users\juf\Workspace\BTH\NLP_RE\cira\src\api\service.py", line 3, in <module>
    from src.cira import CiRAConverter
  File "C:\Users\juf\Workspace\BTH\NLP_RE\cira\src\cira.py", line 9, in <module>
    from src.converters.labelstograph.graphconverter import GraphConverter
  File "C:\Users\juf\Workspace\BTH\NLP_RE\cira\src\converters\labelstograph\graphconverter.py", line 2, in <module>
    from src.converters.labelstograph.eventconnector import connect_events
  File "C:\Users\juf\Workspace\BTH\NLP_RE\cira\src\converters\labelstograph\eventconnector.py", line 4, in <module>
    import util.constants as consts
ModuleNotFoundError: No module named 'util'

The file eventconnector.py seems to attempt to import the constants from util.constants instead of src.util.constants and, hence, cannot be resolved.