I'm trying to run pywikibot with python3.6 under Linux Mint; but I get this
error, botg using Idle 3.6 or console:
Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license()" for more information.
>>>
============ RESTART: /home/utente/bot/core_stable/BrolloBot3.py
============
Traceback (most recent call last):
File "/home/utente/bot/core_stable/BrolloBot3.py", line 3, in <module>
import pywikibot
File "/home/utente/bot/core_stable/pywikibot/__init__.py", line 24, in
<module>
from pywikibot.bot import (
File "/home/utente/bot/core_stable/pywikibot/bot.py", line 101, in
<module>
from pywikibot import version
File "/home/utente/bot/core_stable/pywikibot/version.py", line 23, in
<module>
from distutils import log
ImportError: cannot import name 'log'
>>>
Under python2.7 there's no error; the script only calls "import pywikibot".
How am I going wrong? :-(
Thanks
Alex brollo
Alex