Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Сannot import name 'TextField' and 'Binary' #1

Open
CopyBook-Maxim opened this issue Nov 24, 2021 · 1 comment
Open

Сannot import name 'TextField' and 'Binary' #1

CopyBook-Maxim opened this issue Nov 24, 2021 · 1 comment

Comments

@CopyBook-Maxim
Copy link

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

@dedfft
Copy link

dedfft commented Jan 13, 2022

Thank you! You helped me a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants