WikiTeam / wikiteam

Tools for downloading and preserving wikis. We archive wikis, from Wikipedia to tiniest wikis. As of 2023, WikiTeam has preserved more than 350,000 wikis.
https://github.com/WikiTeam
GNU General Public License v3.0
706 stars 147 forks source link

launcher.py not working #481

Open murolem opened 1 month ago

murolem commented 1 month ago

Hi!

I wanted to download a wiki so a made a mylist.txt file and placed https://cosmoteer.wiki.gg/api.php inside.

Then I run the script using python launcher.py mylist.txt and it just straight up failed:

Please install the lxml module if you want to use --xmlrevisions.
Reading list of APIs from mylist.txt
1 APIs found
#########################################################################
# Downloading https://cosmoteer.wiki.gg/api.php
#########################################################################
Resuming download, using directory cosmoteerwikigg-20240603-wikidump
Traceback (most recent call last):
  File "launcher.py", line 130, in <module>
    main()
  File "launcher.py", line 85, in main
    subprocess.call(['python2', 'dumpgenerator.py', '--api={}'.format(wiki), '--xml', '--images', '--resume', '--path={}'.format(wikidir)], shell=False)
  File "C:\Users\aliser\.pyenv\pyenv-win\versions\2.7.18\lib\subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\Users\aliser\.pyenv\pyenv-win\versions\2.7.18\lib\subprocess.py", line 394, in __init__
    errread, errwrite)
  File "C:\Users\aliser\.pyenv\pyenv-win\versions\2.7.18\lib\subprocess.py", line 644, in _execute_child
    startupinfo)
WindowsError: [Error 2]

I'n on win11, Python 2.7.18. Dependencies are installed with pip install --upgrade -r requirements.txt.

nemobis commented 1 month ago

Hello, thanks for using WikiTeam. As the message says:

Please install the lxml module if you want to use --xmlrevisions.

This is an optional requirement hence it's not listed in requirements.txt.