[GH-ISSUE #374] Import Error in SQLAlchemy #89

Open
opened 2026-02-26 01:33:05 +03:00 by kerem · 0 comments
Owner

Originally created by @sattwikb13 on GitHub (Apr 22, 2024).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/374

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.

Originally created by @sattwikb13 on GitHub (Apr 22, 2024). Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/374 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 <module> File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\sandman2\__init__.py", line 2, in <module> 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 <module> from sandman2.service import Service File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\sandman2\service.py", line 12, in <module> from sandman2.model import db File "c:\users\sattwikb\projects\sandmanpoc\sandman_env\lib\site-packages\sandman2\model.py", line 13, in <module> 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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sandman2-jeffknupp#89
No description provided.