Question: complete python (and programming) beginner here. I am trying to install and import the pyglet module on my mac. I initially installed it using pip, and it seemed to work, at least I got no errors returned, but when I try to import it using pycharm I get:

```
Traceback (most recent call last):   File "/Users/me/PycharmProjects/Training/Training File.py", line 1, in <module>
    import pyglet ModuleNotFoundError: No module named 'pyglet'

```

When I tried to install it again, after getting this error, I get this from the command line:

```
MacBook:bin me$ python -m pip install pyglet Requirement already satisfied: pyglet in /Library/Python/2.7/site-packages MacBook:bin me$

```

So it seems it's already installed, no?

Finally, I tried to install it using the setup.py command, which was the recommendation in the README file. I get this:

```
MacBook:~ me$ sudo python setup.py install  python: can't open file 'setup.py': [Errno 2] No such file or directory MacBook:~ me$

```

Can anyone tell what is going on?

Answer: 
I recommend you trying: 

```
String.valueOf(innerView.getText()); 

```

instead of: 

```
toString()

```
You can validate mobile number using below code:

```
 private boolean isValidPhone(String s) {
    String expression = "^[7-9]{1}[0-9]{9}$";
    CharSequence inputString = s;
    Pattern pattern = Pattern.compile(expression);
    Matcher matcher = pattern.matcher(inputString);
    if (matcher.matches())
    {
        return true;
    }
    else{
        return false;
    }
}

```