flask-tabler icon indicating copy to clipboard operation
flask-tabler copied to clipboard

Сannot import name 'TextField' and 'Binary'

Open CopyBook-Maxim opened this issue 4 years ago • 1 comments

Hi. I don't know how to use GitHub, and I don't know where to write. I decided to write here. While installing through Docker, I encountered two problems.

File "/app/base/forms.py", line 8, in From wtforms import TextField, PasswordField ImportError: cannot import name 'TextField'

File "/app/base/models.py", line 8, in from sqlalchemy import Binary, Column, Integer, String ImportError: cannot import name 'Binary'.

Changing the following parameters in the code helped: 'TextField' -> 'TextAreaField'. ''Binary'' -> 'BINARY'

Thanks

CopyBook-Maxim avatar Nov 24 '21 07:11 CopyBook-Maxim

Thank you! You helped me a lot!

dedfft avatar Jan 13 '22 08:01 dedfft