OtterBots / capstone_stoqs

CSUMB Otterbots capstone project.
1 stars 0 forks source link

make postgis load less bad #51

Closed olivesdad closed 1 year ago

olivesdad commented 1 year ago

loadtestdata.py wasnt being called and it couldnt find monterey.grd First I fixed the paths to those files then encountered some python dependency errors. After adding those packages to the requirements files it looks like some data is being loaded into postgres but the file errors out early with

stoqs            | Traceback (most recent call last):
stoqs            |   File "/srv/stoqs/loaders/loadTestData.py", line 26, in <module>
stoqs            |     from CANON import CANONLoader
stoqs            |   File "/srv/stoqs/loaders/CANON/__init__.py", line 30, in <module>
stoqs            |     django.setup()
stoqs            |   File "/usr/local/lib/python3.10/dist-packages/django/__init__.py", line 24, in setup
stoqs            |     apps.populate(settings.INSTALLED_APPS)
stoqs            |   File "/usr/local/lib/python3.10/dist-packages/django/apps/registry.py", line 91, in populate
stoqs            |     app_config = AppConfig.create(entry)
stoqs            |   File "/usr/local/lib/python3.10/dist-packages/django/apps/config.py", line 193, in create
stoqs            |     import_module(entry)
stoqs            |   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
stoqs            |     return _bootstrap._gcd_import(name[level:], package, level)
stoqs            | ModuleNotFoundError: No module named 'stoqs.users'
stoqs            | /usr/local/lib/python3.10/dist-packages/coverage/control.py:860: CoverageWarning: No data was collected. (no-data-collected)
stoqs            |   self._warn("No data was collected.", slug="no-data-collected")
stoqs            | stoqs/loaders/loadTestData.py failed to load initial database; exiting test.sh.

I dont know why/what is trying to load stoqs.users and it looks like the users directory properly has the init.py file