Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

TypeError: register() takes 3 positional arguments but 4 were given #83

Open
AlbinDavid opened this issue Jul 1, 2021 · 3 comments
Open

Comments

@AlbinDavid
Copy link

When running the main I'm facing this TypeError.The source of the error is while registering the sockets in blueprint

app.register_blueprint(html, url_prefix=r'/')
sockets.register_blueprint(ws, url_prefix=r'/')

app.register_blueprint seems to be working fine.

@nmz787
Copy link

nmz787 commented Aug 11, 2021

same issue here

@nmz787
Copy link

nmz787 commented Aug 11, 2021

got past the issue with this change, from:
blueprint.register(self, options, first_registration)

to:
blueprint.register(self, options)

not sure if that will break anytime though, as my application is completely new and I've never used this package before

@thewanghao
Copy link

you can run:
pip install --upgrade 'flask==1.1.2'

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

No branches or pull requests

3 participants