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

lens_correction example running error #248

Open
zuwenqiang opened this issue Feb 15, 2023 · 4 comments
Open

lens_correction example running error #248

zuwenqiang opened this issue Feb 15, 2023 · 4 comments

Comments

@zuwenqiang
Copy link

i successfully run a network service by: "docker run -p 8080:8080 -e "MONGO_HOST=localhost" --rm render-ws:latest" command. But, when i try to run an example in lens correction part by:"python apply_lens_correction.py" or "python -m asap.lens_correction.apply_lens_correction --input_json <input_parameter_json_file> --output_json <output_json_file>", it failed. The error like this:
image
how can i solve the problem and could you give an easily running example?

@fcollman
Copy link
Member

Looks like you don’t have a mongo server running in a way render can connect to. I like to use docker compose to run render and mongo.

Here is an example in render python

@fcollman
Copy link
Member

@fcollman
Copy link
Member

If render is running properly on your local host and you can access data via the web browser than you might have a dns issue. Local host from with the asap docker container means the docker local host, not your computer. You can either give the actual ip of your computer, or change the docker network mode to host mode to avoid this issue. Typically we run render on a different server than we run the modules and then we supply the host name of that server. Or during testing we run all 3 images in the same docket compose stack and provide the name of the render pod service as an environment variable so it connects via the docker network dns name.

@zuwenqiang
Copy link
Author

Thanks for the timely response and i will try to run it again!

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