facebookresearch / ParlAI

A framework for training and evaluating AI models on a variety of openly available dialogue datasets.
https://parl.ai
MIT License
10.49k stars 2.1k forks source link

i use a docker and make the container success.when i use docker exec the parlai is success.But when i use ssh to go into the docker container i get the error msg:parlai: command not found #5062

Closed LONNIESAN closed 1 year ago

LONNIESAN commented 1 year ago

Bug description Please enter a clear and concise description of what the bug is.

Reproduction steps Enter steps to reproduce the behavior.

Expected behavior Give a clear and concise description of what you expected to happen.

Logs Please paste the command line output:

Output goes here

Additional context Add any other context about the problem here. (like proxy settings, network setup, overall goals, etc.)

mojtaba-komeili commented 1 year ago

ParlAI image is using a Conda environment. You need to make sure you are in that conda environment.

LONNIESAN commented 1 year ago

hi, can you give me some command to enter the conda environment

mojtaba-komeili commented 1 year ago

I actually tried sshing into a running container and had no issue with that. It looks like the conda environment gets activated by default. Here are my steps:

  1. Fire up a container. For example: docker run -it ghcr.io/facebookresearch/parlai:latest bash
  2. After the container started, ssh into it: docker exec -it <YOUR CONTAINER ID> bash.

After 2, I was able to find parlai and run it directly.

LONNIESAN commented 1 year ago

yes, i find that the reason is for env variable

github-actions[bot] commented 1 year ago

This issue has not had activity in 30 days. Please feel free to reopen if you have more issues. You may apply the "never-stale" tag to prevent this from happening.