GetTogetherComm / GetTogether

Event manager for local community events
https://gettogether.community
BSD 2-Clause "Simplified" License
473 stars 87 forks source link

After login: not enough arguments for format string #288

Closed vpistis closed 2 years ago

vpistis commented 3 years ago

Hi,

this is the error after I send data to the login page:

Screenshot 2020-09-17 at 19 37 43

There is a way to solve it?

Thank you!

GrahamTheCoder commented 3 years ago

Hi, I faced the same issue. It's because you're using python 3.8. The error shown is actually an error in formatting an error message. The root cause is actually an issue in defusedxml (which I could tell in debug mode locally with the full trace). I have successfully worked around this issue by updating defusedxml package from 0.5.0 to 0.6.0 in requirements.txt and then running

virtualenv --python=python3 ./env
./env/bin/pip install -r requirements.txt

Would be good to get this PRed, but obviously further testing may be required.

vpistis commented 3 years ago

wow! you are right, changing defusedxml version to 0.6.0 solves the error!

thank you!

dukebody commented 2 years ago

The PR above fixes this issue, if you want to merge it :)