SyntaxWarning being spammed in console log
twrightsman opened this issue · comments
Describe the bug
Updating to v0.5.0 causes SyntaxWarning
s to be repeatedly printed to the console after importing logomaker
.
[...]/lib/python3.12/site-packages/logomaker/__init__.py:46: SyntaxWarning: invalid escape sequence '\.'
if re.match('demo_.*\.py', temp_name)]
Seems related to #550?
Environment
{
"marimo": "0.5.0",
"OS": "Linux",
"OS Version": "6.1.0-20-amd64",
"Processor": "",
"Python Version": "3.12.3",
"Binaries": {
"Browser": "--",
"Node": "--"
},
"Requirements": {
"click": "8.1.7",
"importlib-resources": "6.4.0",
"jedi": "0.19.1",
"markdown": "3.6",
"pymdown-extensions": "10.8.1",
"pygments": "2.18.0",
"tomlkit": "0.12.4",
"uvicorn": "0.29.0",
"starlette": "0.37.2",
"websocket": "missing",
"typing-extensions": "4.11.0",
"black": "24.4.2"
}
}
Code to reproduce
import logomaker
I see what you mean about the spamming, though. I can reproduce when I turn the moduler autoreloader on in the settings (do you have it on?)
Yeah the SyntaxWarning
is absolutely a logomaker
issue (it hasn't seen an update in a while).
My issue here was more that it was filling up my console output every second or so 😄
Regarding module autoreloading, do you mean the "On module change" setting under runtime? I have it set to "lazy"
Yes, thanks, that's what I thought. I have a fix out, thanks for letting me know!
Thank you very much for the fix!