iodepo / oih-ui

source code for the Ocean InfoHub (OIH) website
https://oceaninfohub.org/
MIT License
5 stars 4 forks source link

api.py : no module named api.util #10

Closed arnounesco closed 1 year ago

arnounesco commented 2 years ago

python3 main.py Traceback (most recent call last): File "/Users/arno/PhpstormProjects/oih-ui/api/api/main.py", line 14, in from api.util.solr_query_builder import SolrQueryBuilder ModuleNotFoundError: No module named 'api.util'

should this be api.api.util???

EricSoroos commented 2 years ago

No, It probably should be a relative import -- see the readme in a PR to come in a minute. https://github.com/iodepo/oih-ui/pull/18/commits/f399b2e2ec523b901b0c08e507121dba5f030afb

arnounesco commented 1 year ago

should be ok by now as we could install this