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

Make daemon fully python2 compatible. #15

Open
fristonio opened this issue Jul 5, 2018 · 2 comments
Open

Make daemon fully python2 compatible. #15

fristonio opened this issue Jul 5, 2018 · 2 comments
Labels
hacktoberfest help wanted Extra attention is needed

Comments

@fristonio
Copy link
Member

There are some problems when running daemon with python2 like problems with relative_imports. Make the package completely python2.7 compatible.

@fristonio fristonio added the help wanted Extra attention is needed label Jul 15, 2018
@techytushar
Copy link

When I run the celery -A origamid worker -l info command, I get an Import Error saying ImportError: cannot import name 'Celery'. This happens with both Python2 and Python3.

@fristonio
Copy link
Member Author

Have you installed Celery?

If you are following these steps

$ git clone [email protected]:Cloud-CV/origami-daemon.git
$ cd origami-daemon
$ virtualenv venv
$ source venv/bin/activate
$ pip install -e .

# Start using origamid
$ origamid

# Run celery workers
# Make sure that rabbitmq-server is running
$ celery -A origamid worker -l info

# Run server
$ origamid run_server

Make sure to activate the virtual environment when running the celery worker. So open two terminals activate the virtual environment you created in both of them run a pip install -e . and then try the celery worker command. I think it should work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants