You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.json
would be the following. I am running it inside a devcontainer in vscode.Beta Was this translation helpful? Give feedback.
All reactions