opensemanticsearch / open-semantic-etl

Python based Open Source ETL tools for file crawling, document processing (text extraction, OCR), content analysis (Entity Extraction & Named Entity Recognition) & data enrichment (annotation) pipelines & ingestor to Solr or Elastic search index & linked data graph database
https://opensemanticsearch.org/etl
GNU General Public License v3.0
254 stars 69 forks source link

Docker container fails with AttributeError: 'Celery' object has no attribute 'worker_main' #145

Closed itg-dave closed 2 years ago

itg-dave commented 2 years ago

The image builds successfully but the service exits with:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/opensemanticetl/tasks.py", line 228, in <module>
    app.worker_main()
AttributeError: 'Celery' object has no attribute 'worker_main'
jamieJames45 commented 2 years ago

workaround Disclaimer, unsure what knock on effects swapping out the celery version will have, as I am just running this stack for the first time, and this is what I did to get past the issue.

more info on the actual cause can be found here : https://github.com/celery/celery/issues/6404

edit open-semantic-search/src/open-semantic-etl/src/opensemanticetl/requirements.txt, specify version number for the celery requirement:

celery==4.4.7

in the open-semantic-search/src/open-semantic-etl/ folder, run "docker build -t opensemanticsearch/open-semantic-etl ."

then go back to the project root, and docker compose up should work properly

Mandalka commented 2 years ago

Fixed by https://github.com/opensemanticsearch/open-semantic-search/issues/375