[GH-ISSUE #100] AttributeError: module 'sqlalchemy.util' has no attribute 'deprecated_params' #56

Closed
opened 2026-02-26 01:33:00 +03:00 by kerem · 3 comments
Owner

Originally created by @ibstelix on GitHub (May 12, 2019).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/100

Originally assigned to: @jeffknupp on GitHub.

Hi,
this is a new installation (previously i had no problem).
I ran sandman2ctl mysql+pymysql://user:pwd@localhost/foo
and got :
Traceback (most recent call last): File "$HOME/.local/bin/sandman2ctl", line 7, in <module> from sandman2.scripts.sandman2ctl import main File "$HOME/.local/lib/python3.6/site-packages/sandman2/__init__.py", line 2, in <module> from sandman2.app import get_app, db, AutomapModel File "$HOME/.local/lib/python3.6/site-packages/sandman2/app.py", line 5, in <module> from sqlalchemy.sql import sqltypes File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/__init__.py", line 9, in <module> from .sql import ( File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/sql/__init__.py", line 101, in <module> __go(locals()) File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/sql/__init__.py", line 99, in __go from . import naming File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/sql/naming.py", line 15, in <module> from .. import event, events File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/events.py", line 11, in <module> from .pool import Pool File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/pool/__init__.py", line 20, in <module> from .base import _ConnectionFairy # noqa File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 57, in <module> class Pool(log.Identified): File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 63, in Pool @util.deprecated_params( AttributeError: module 'sqlalchemy.util' has no attribute 'deprecated_params'
Version issue ?

Originally created by @ibstelix on GitHub (May 12, 2019). Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/100 Originally assigned to: @jeffknupp on GitHub. Hi, this is a new installation (previously i had no problem). I ran sandman2ctl mysql+pymysql://user:pwd@localhost/foo and got : ` Traceback (most recent call last): File "$HOME/.local/bin/sandman2ctl", line 7, in <module> from sandman2.scripts.sandman2ctl import main File "$HOME/.local/lib/python3.6/site-packages/sandman2/__init__.py", line 2, in <module> from sandman2.app import get_app, db, AutomapModel File "$HOME/.local/lib/python3.6/site-packages/sandman2/app.py", line 5, in <module> from sqlalchemy.sql import sqltypes File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/__init__.py", line 9, in <module> from .sql import ( File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/sql/__init__.py", line 101, in <module> __go(locals()) File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/sql/__init__.py", line 99, in __go from . import naming File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/sql/naming.py", line 15, in <module> from .. import event, events File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/events.py", line 11, in <module> from .pool import Pool File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/pool/__init__.py", line 20, in <module> from .base import _ConnectionFairy # noqa File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 57, in <module> class Pool(log.Identified): File "$HOME/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 63, in Pool @util.deprecated_params( AttributeError: module 'sqlalchemy.util' has no attribute 'deprecated_params' ` Version issue ?
kerem closed this issue 2026-02-26 01:33:00 +03:00
Author
Owner

@jeffknupp commented on GitHub (May 29, 2019):

Looking at this now. Thanks for reporting.

<!-- gh-comment-id:496733654 --> @jeffknupp commented on GitHub (May 29, 2019): Looking at this now. Thanks for reporting.
Author
Owner

@jeffknupp commented on GitHub (May 29, 2019):

@ibstelix This works for me with the most recent version of sandman2 (1.2.0) and pymysql (0.9.3)

$ sandman2ctl mysql+pymysql://root@localhost/foo                             ✭ ◼
 * Serving Flask app "sandman2" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

Can you check which versions of each you're using?

<!-- gh-comment-id:496736685 --> @jeffknupp commented on GitHub (May 29, 2019): @ibstelix This works for me with the most recent version of `sandman2` (1.2.0) and `pymysql` (0.9.3) ``` $ sandman2ctl mysql+pymysql://root@localhost/foo ✭ ◼ * Serving Flask app "sandman2" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: off * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) ``` Can you check which versions of each you're using?
Author
Owner

@ibstelix commented on GitHub (Jul 20, 2019):

Sorry for this sooo late reply, it is working when i retested, so maybe it was related to my environment.
Best regards,

<!-- gh-comment-id:513495912 --> @ibstelix commented on GitHub (Jul 20, 2019): Sorry for this sooo late reply, it is working when i retested, so maybe it was related to my environment.\ Best regards,
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#56
No description provided.