Replies: 1 comment 1 reply
-
|
Another full |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
This is partially a comment for the future reference of others, and partially a question to see if others have strategies for debugging while doing pygeoapi development.
When I am inside the container using the pygeoapi python interpreter, from what I can tell, the debugger for vscode slightly modifies the python interpreter being used and as a result, JInja2 fails, prevents pygeoapi from launching, and throws an error
AttributeError: module 'posixpath' has no attribute 'sep'This bug is the result of an older jinja version I believe that is now fixed but not yet updated.
pallets/jinja#1697
I wanted to write this to both document it for others, since it is a confusing error, and also see if anyone had workarounds they like.
An example config to reproduce this in
launch.jsonwould be the following. I am running it inside a devcontainer in vscode.{ "name": "Python Debugger: Module", "python": "/usr/bin/python3", "type": "debugpy", "request": "launch", "module": "gunicorn", "args": [ "pygeoapi.flask_app:APP" ] },Beta Was this translation helpful? Give feedback.
All reactions