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

Import Error in SQLAlchemy #374

Open
sattwikb13 opened this issue Apr 22, 2024 · 0 comments
Open

Import Error in SQLAlchemy #374

sattwikb13 opened this issue Apr 22, 2024 · 0 comments

Comments

@sattwikb13
Copy link

sattwikb13 commented Apr 22, 2024

Running sandman2ctl command for MS SQL is throwing the following error:

Traceback (most recent call last):
File "C:\Users\sattwikb\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\sattwikb\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\sattwikb\Projects\SandmanPOC\sandman_env\Scripts\sandman2ctl.exe_main
.py", line 4, in
File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\sandman2_init
.py", line 2, in
from sandman2.app import get_app, db, AutomapModel
File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\sandman2\app.py", line 18, in
from sandman2.service import Service
File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\sandman2\service.py", line 12, in
from sandman2.model import db
File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\sandman2\model.py", line 13, in
db = SQLAlchemy()
File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\flask_sqlalchemy_init_.py", line 715, in init
self.session = self.create_scoped_session(session_options)
File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\flask_sqlalchemy_init_.py", line 748, in create_scoped_session
scopefunc = options.pop('scopefunc', _app_ctx_stack.ident_func)
AttributeError: '_FakeStack' object has no attribute 'ident_func'
The filename, directory name, or volume label syntax is incorrect.

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