# A problem of pyroot in sublime text3: "root-config: command not found"

**URL:** <https://root-forum.cern.ch/t/a-problem-of-pyroot-in-sublime-text3-root-config-command-not-found/41960>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [October 22, 2020, 4:03pm UTC](https://root-forum.cern.ch/t/a-problem-of-pyroot-in-sublime-text3-root-config-command-not-found/41960 "2020-10-22T16:03:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrli](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@mrli](https://root-forum.cern.ch/u/mrli)\
**Post date:** [October 22, 2020, 4:03pm UTC](https://root-forum.cern.ch/t/a-problem-of-pyroot-in-sublime-text3-root-config-command-not-found/41960/1 "2020-10-22T16:03:18Z")

</div>

I’m using ROOT 6.22.02 on Ubuntu 18.04.5, and I want to edit some pyROOT codes on Sublime Text 3. To build the code, I created a Sublime Text 3’s build configuration as below:

```auto
{
 "cmd": ["/bin/bash", "My_ROOT's_Directory/bin/thisroot.sh", "/usr/bin/python", "-u", "$file"],
 "file_regex": "^[]*File \"(...*?)\", line ([0-9]*)",
 "selector": "source.python"
}

```

But under this build configuration, once I build the code, it would throw an error:

```auto
My_ROOT's_Directory/bin/thisroot.sh: line 196: root-config: command not found
[Finished in 0.0s]

```

I installed ROOT by CMake, and I didn’t change any configuration(just by default), I’m not sure if there was anything wrong during my installation. And I’ll be appreciated if someone could solve my problem.🙂

(A little detail: For my convenience, I add

```auto
source $HOME/My_ROOT's_Directory/bin/thisroot.sh

```

at the end of ‘~/.bashrc’ )

_ROOT Version:_ 6.22.02  
_Platform:_ Ubuntu 18.04.5  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [October 22, 2020, 4:28pm UTC](https://root-forum.cern.ch/t/a-problem-of-pyroot-in-sublime-text3-root-config-command-not-found/41960/2 "2020-10-22T16:28:49Z")

</div>

> [@mrli](#):
>
> `My_ROOT's_Directory`

Not sure this is a valid PATH… Does it work in bash?

---

<div class="post-metadata">

**Author:** ![mrli](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@mrli](https://root-forum.cern.ch/u/mrli)\
**Post date:** [October 23, 2020, 1:01am UTC](https://root-forum.cern.ch/t/a-problem-of-pyroot-in-sublime-text3-root-config-command-not-found/41960/3 "2020-10-23T01:01:09Z")

</div>

This is a just a simplification of my installation path, and I’m sure the original path works in bash( it’s too long ), otherwise it would throw ‘no module name ROOT’ error…

---

<div class="post-metadata">

**Author:** ![mrli](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@mrli](https://root-forum.cern.ch/u/mrli)\
**Post date:** [October 23, 2020, 4:46am UTC](https://root-forum.cern.ch/t/a-problem-of-pyroot-in-sublime-text3-root-config-command-not-found/41960/4 "2020-10-23T04:46:02Z")

</div>

I’ve solved this problem by editing ~/.bashrc file. It automatically added several lines of codes which prevented sublime text3 working…
