# The input device is not a TTY

**URL:** <https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408>\
**Category:** TAO Toolkit\
**Created:** [April 7, 2021, 8:48am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408 "2021-04-07T08:48:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 7, 2021, 8:48am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/1 "2021-04-07T08:48:54Z")

</div>

Hello,

Please I got this error when trying to run this command:  
os.system (“/ home / sylia / .local / bin / tlt detectnet\_v2 dataset\_convert -d configData -o kittiTrain”)

2021-04-07 10:44:55,411 [WARNING] tlt.components.docker\_handler.docker\_handler:  
Docker will run the commands as root. If you would like to retain your  
local host permissions, please add the “user”:“UID:GID” in the  
DockerOptions portion of the ~/.tlt\_mounts.json file. You can obtain your  
users UID and GID by using the “id -u” and “id -g” commands on the  
terminal.  
the input device is not a TTY  
2021-04-07 10:44:55,921 [INFO] tlt.components.docker\_handler.docker\_handler: Stopping container.

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 7, 2021, 9:13am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/3 "2021-04-07T09:13:35Z")

</div>

To narrow down, can you run `tlt detectnet_v2 dataset_convert -d configData -o kittiTrain` successfully?

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 7, 2021, 9:31am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/4 "2021-04-07T09:31:05Z")

</div>

When I run this command: " tlt detectnet\_v2 dataset\_convert -d /configData/configData.json -o kittiTrain "

it can’t find my configuration file !

Matplotlib created a temporary config/cache directory at /tmp/matplotlib-x1yfd27m because the default path (/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.  
Using TensorFlow backend.  
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF\_ENABLE\_DEPRECATION\_WARNINGS=1 to re-enable them.  
Using TensorFlow backend.  
Traceback (most recent call last):  
File “/home/vpraveen/.cache/dazel/\_dazel\_vpraveen/216c8b41e526c3295d3b802489ac2034/execroot/ai\_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build\_wheel.runfiles/ai\_infra/iva/detectnet\_v2/scripts/dataset\_convert.py”, line 90, in   
File “/home/vpraveen/.cache/dazel/\_dazel\_vpraveen/216c8b41e526c3295d3b802489ac2034/execroot/ai\_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build\_wheel.runfiles/ai\_infra/iva/detectnet\_v2/scripts/dataset\_convert.py”, line 82, in main  
FileNotFoundError: [Errno 2] No such file or directory: ‘/configData/configData.json’

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 7, 2021, 9:48am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/5 "2021-04-07T09:48:29Z")

</div>

> [@sylia](#):
>
> /configData/configData.json

Please note that /configData/configData.json should be available inside the docker.  
You can login the docker to debug.

Reference: [Tlt 3.0 - #2 by Morganh](https://forums.developer.nvidia.com/t/tlt-3-0/173445/2)

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 7, 2021, 11:41am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/6 "2021-04-07T11:41:55Z")

</div>

I followed the indications mentioned on this link [TLT Launcher — Transfer Learning Toolkit 3.0 documentation](https://docs.nvidia.com/metropolis/TLT/tlt-user-guide/text/tlt_launcher.html)  
then I retrieve the docker image: docker pull [nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3](http://nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3)  
i mapped my local folder with tlt\_mount.json  
then launched the container: docker run --runtime = nvidia -it -v antt: / workspace / tlt\_experiments [nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3](http://nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3) / bin / bash

is that what to do please?

`tlt_mounts.json`  
{  
“Mounts”: [  
{  
“source”: “/home/sylia/antt”,  
“destination”: “/workspace/tlt-experiments”  
},

```
    {
        "source": "/home/sylia/antt/Data/Work/resnet18/config",
        "destination": "/workspace/tlt-experiments/specs"
    }

],

"DockerOptions": {
    "shm_size": "16G",
    "ulimits": {
        "memlock": -1,
        "stack": 67108864
    },
    "user": "1000:1000"
}

```

}

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 7, 2021, 2:58pm UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/7 "2021-04-07T14:58:41Z")

</div>

As I mentioned, the easier way for you to debug is to login the docker.  
$ docker run --runtime=nvidia -it [nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3](http://nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3)/bin/bash  
Then  
`#` ls /workspace/tlt-experiments

The content should be the content of `/home/sylia/antt`.  
Because you map your local` /home/sylia/antt` to `/workspace/tlt-experiments`.

I am afraid your ` -d /configData/configData.json` is not correct.

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 7, 2021, 5:07pm UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/8 "2021-04-07T17:07:26Z")

</div>

yes my directory antt/ is in /workspace/tlt\_experiments/  
 ![image](https://global.discourse-cdn.com/nvidia/original/3X/3/a/3aa9286b412884a6a2a42989cae45122882707e1.png)

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 7, 2021, 5:17pm UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/9 "2021-04-07T17:17:24Z")

</div>

but when I type tlt -h in “root @ 650211afabc3:/workspace/tlt\_experiments#”  
tlt: command not found  
knowing that the bash the command exists  
I do not understand when you said must debug with docker? please

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 7, 2021, 5:34pm UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/10 "2021-04-07T17:34:56Z")

</div>

When you login the docker, where is configData.json ?  
Is it /workspace/tlt\_experiments/configData/configData.json ?

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 7, 2021, 5:35pm UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/11 "2021-04-07T17:35:53Z")

</div>

![image](https://global.discourse-cdn.com/nvidia/original/3X/f/d/fda6130fca1c860de25cba04b7786ace91f56f15.png)

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 7, 2021, 6:08pm UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/12 "2021-04-07T18:08:07Z")

</div>

So, you need to modify your command to

> tlt detectnet\_v2 dataset\_convert -d /workspace/tlt-experiments/configData.json -o kittiTrain

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 8, 2021, 6:45am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/13 "2021-04-08T06:45:15Z")

</div>

Returns me that tlt command no find ?!

 ![image](https://global.discourse-cdn.com/nvidia/original/3X/4/3/43dca36afd90a9130dc6b733468d5fef45cb9942.png)

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 8, 2021, 6:47am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/14 "2021-04-08T06:47:42Z")

</div>

Hey,  
The `tlt` commmand should run on host PC instead of inside the docker.  
See [Migrating to TLT 3.0 — Transfer Learning Toolkit 3.0 documentation](https://docs.nvidia.com/metropolis/TLT/tlt-user-guide/text/migrating_v2.0_v3.0.html)

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 8, 2021, 6:54am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/15 "2021-04-08T06:54:25Z")

</div>

Thank you for your answers  
One last question please, why when we shut down the pc we lose the docker image and we have to redo all the manipulation? docker pull image …  
is there another way to keep the image?

thank you

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 8, 2021, 7:07am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/16 "2021-04-08T07:07:26Z")

</div>

No, if you install tlt launcher correctly, the `tlt` command should be available even you reboot your PC.  
If not, you can try to activate it.  
$ source your\_venv\_folder/bin/activate

And the docker should be available too.

See [TLT Launcher — Transfer Learning Toolkit 3.0 documentation](https://docs.nvidia.com/metropolis/TLT/tlt-user-guide/text/tlt_launcher.html)

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 8, 2021, 7:16am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/17 "2021-04-08T07:16:10Z")

</div>

No tlt still present, just the docker image I can’t find after restarting

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 8, 2021, 7:46am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/18 "2021-04-08T07:46:20Z")

</div>

Can you run below command successfully?  
$ tlt detectnet\_v2 train --help

As mentioned in [TLT Launcher — Transfer Learning Toolkit 3.0 documentation](https://docs.nvidia.com/metropolis/TLT/tlt-user-guide/text/tlt_launcher.html) ,

> When the user executes a command, for example `tlt detectnet_v2 train --help` , the TLT launcher does the following:
> 
> 1. Pulls the required TLT container with the entrypoint for _DetectNet\_v2_
> 2. Creates an instance of the container
> 3. Runs the `detectnet_v2` entrypoint with the `train` sub-task

---

<div class="post-metadata">

**Author:** ![sylia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sylia](https://forums.developer.nvidia.com/u/sylia)\
**Post date:** [April 8, 2021, 8:00am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/19 "2021-04-08T08:00:36Z")

</div>

Yes the command is launched

 ![image](https://global.discourse-cdn.com/nvidia/original/3X/2/8/2846e2d5895629b6d6c4497d60e7874c88988fd8.png)

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [April 8, 2021, 8:25am UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/20 "2021-04-08T08:25:58Z")

</div>

OK, if you ever docker pull image , the image should be available even you reboot the PC.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 4:23pm UTC](https://forums.developer.nvidia.com/t/the-input-device-is-not-a-tty/174408/22 "2021-10-12T16:23:51Z")

</div>

Closed on October 12, 2021, 4:23pm UTC


