Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assistance Needed to Start COCO Annotator Project Locally #622

Open
mediteraneansea opened this issue Jun 26, 2024 · 1 comment
Open

Assistance Needed to Start COCO Annotator Project Locally #622

mediteraneansea opened this issue Jun 26, 2024 · 1 comment

Comments

@mediteraneansea
Copy link

Dear Justin Brooks,

I hope this message finds you well.

I am currently working on the COCO Annotator project and would like to run it in my local development environment instead of using Docker. I have successfully set up an Anaconda environment and installed the necessary dependencies. However, I am encountering some issues and need your guidance to ensure everything runs smoothly.

Here are the steps I've taken so far:

1.Environment Setup:
Created an Anaconda environment.
Installed all required dependencies listed in the requirements.txt file.

2.Project Structure:
Updated the backend/webserver/init.py and backend/config/config.py files for local configuration.
Ensured backend/workers/init.py is set up for Celery.

3.Configuration:
Configured the .env file with necessary environment variables.
Ensured MongoDB and Celery configurations are correctly set.

4.Attempt to Start Services:
Tried running the Celery worker with the command:
celery -A backend.workers worker -l info
Tried starting the Flask application using:
python -m backend.webserver.__init__

Despite following these steps, I am still encountering some issues, particularly with module imports and Celery worker initialization.
Could you please provide me with detailed instructions or any insights on how to properly start the COCO Annotator project locally? Specifically, I need clarification on:

      Correct setup and initialization of the Celery worker.
      Proper configuration of Flask application routes and connection to the MongoDB instance.
      Any additional steps or considerations I might have overlooked.

Your assistance and guidance will be greatly appreciated as it will help me move forward with my development work. Thank you in advance for your support.

Best regards,
Looking for your reply

@sancelot
Copy link

sancelot commented Dec 18, 2024

I fully agree with you ..... using docker is a pain.
it would have been nice if you had provided how you proceed ^^

backend

cd backend
python -m venv .venv
pip install -r requirements.txt

At the moment I have not managed to launch the backend.
I created a python script:
import sys
sys.path.append("config")
from workers import *
celery.start()

I removed version specification for these packages :
opencv-python
Shapely

frontend

using node v18.20

cd client
npm install
npm run serve

I have got some compatibility issues
(node:5227) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use node --trace-deprecation ... to show where the warning was created)

I noticed it is using vuejs 2.0 ......

it would be faster to merge the whole frontend project to a new vuejs workspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants