Closed pmattern closed 7 years ago
I'm not aware of any related change, also it works fine for me.
Does the libravatar module work for you? Can you try python -c 'import libravatar'
?
# python -c 'import libravatar'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/libravatar.py", line 27, in <module>
import DNS
ModuleNotFoundError: No module named 'DNS'
Other modules work, e. g.
# python -c 'import pyuca'
# python -c 'import pytz'
#
A dns dependency hadn't been pulled
# pip list --format=columns | grep -i dns
#
All findings the same on both systems in question.
That explains why it does not work ;-). Install py3dns.
Installing py3dns makes python -c 'import libravatar'
behave as expected and fixes both findings posted in the initial comment.
Btw. as for the former installing pydns has the same effect with regards to Python 2.
So on the one hand sorry for the noise.
On the other hand I was tricked into thinking Weblate is to blame because pyLibravatar apparently does not pull a crucial dependency. So isn't this a bug in pyLibravatar? Or is it due to the somewhat special situation that the implementations "pydns" of Python 3 and 2 respectively are maintained by different upstream projects? Also, wouldn't it make sense to mention py[3]dns in section Software requirements of the installation instructions?
Yes, it's bug in their packaging...
Steps to reproduce
./admin/performance
or output ofpython manage.py list_versions
.Actual behavior
pyLibravatar is not detected both according to the "Performance Report" (
./admin/performance/
) as well as the output ofpython manage.py list_versions
.Expected behaviour
pyLibravatar should be detected.
Server configuration
Additional notes
Seen running several commits from the last days including c857272. Same findings on Arch Linux (Python 3.6) and Debian stretch/testing (Python 3.5). All dependencies installed from the PyPI. Same findings on Arch Linux when using the binary packages provided by the distribution instead. Setting
ENABLE_AVATARS = True
insettings.py
doesn't help (for testing only, I'm aware this shouldn't be needed).