Python Flask WTForms-Components PhoneNumberField Import error
<p>I am trying to use the PhoneNumberField from WTForms-Components offcial docs are here <a href="https://wtforms-components.readthedocs.io/en/latest/#phonenumberfield" rel="nofollow">https://wtforms-components.readthedocs.io/en/latest/#phonenumberfield</a></p>

<p>this is what i am trying `</p>

<pre><code>from wtforms import Form
from sqlalchemy_utils import PhoneNumber
from wtforms_components import PhoneNumberField

class UserForm(Form):
    phone_number = PhoneNumberField(
        country_code='FI'
        display_format='national'
    )`
</code></pre>

<p>What i have done so  so far  is</p>

<pre><code>sudo pip install Flask-Wtf --upgrade
sudo pip install Flask-Wtforms --upgrade
sudo pip install sqlalchemy-utils --upgrade
sudo pip install WTForms-Components --upgrade
</code></pre>

<p>Does this library even still works? 
I get this error
from wtforms_components import PhoneNumberField
ImportError: cannot import name PhoneNumberField</p>

<p>It looks as if <code>PhoneNumberField</code> was moved in WTForms-Components 0.10.0 to WTForms-Alchemy 0.15.0. Both packages have the same author. <a href="https://github.com/kvesteri/wtforms-components/issues/39#issuecomment-176649583" rel="nofollow">Here</a> is a GitHub issue that does a better job of explaining why it broke.</p>

<p>In short change your import to this:</p>

<pre><code>from wtforms_alchemy import PhoneNumberField
</code></pre>

python flask wtforms flask-wtforms