Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pony.orm.core.BindingError: Database object was already bound to SQLite provider #2

Open
FedorAdo opened this issue Nov 12, 2021 · 0 comments

Comments

@FedorAdo
Copy link

In the project, the files from the example

config.py

db_params = {
    'provider': 'sqlite',
    'filename': 'test.sqlite',
    'create_db': True
}

Traceback (most recent call last):
File "D:/DEV/code/serv_be/migrate.py", line 5, in
db.migrate()
File "d:\dev\code\serv_be.venv\src\pony\pony\orm\core.py", line 786, in migrate
self._bind(*args, **kwargs)
File "d:\dev\code\serv_be.venv\src\pony\pony\orm\core.py", line 800, in _bind
throw(BindingError, 'Database object was already bound to %s provider' % self.provider.dialect)
File "d:\dev\code\serv_be.venv\src\pony\pony\utils\utils.py", line 106, in throw
raise exc
pony.orm.core.BindingError: Database object was already bound to SQLite provider

Actually why?

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

No branches or pull requests

1 participant