Closed yzqzss closed 1 year ago
bumping, same issue here on windows with python 3.8.10.
Same issue on the following OS's with Miraheze wiki
Python 3.10.8 - Alpine 3.17 Python 3.9.6 - Debian 11
Note: the error only happens for me if not using --xmlrevisions
I'm getting this again (on https://github.com/mediawiki-client-tools/mediawiki-scraper/commit/a0aa9b301ad9ec3c15d4e9ee0e993c12347d44ac):
(I was trying to reproduce the animation issue on https://github.com/mediawiki-client-tools/mediawiki-scraper/issues/121, but (a) my ZSH terminal on macOS doesn't seem to support the animation in the first place, and (b) this crash is happening before the process gets to downloading images.)
I'm getting this again (on a0aa9b3):
Strange, the same command, I can run successfully...
...
Retrieving the XML for every page from the beginning
Retrieving the XML for every page
(Embedded) Linux debugging/profiling/tracing tools - Overview, 1 edit
/BeagleBoard/GSoC/GPIO-parallel-bi-dir-bus, 2 edits
/Jetson/L4T/Camera BringUp, 1 edit
0-day survey response, 4 edits
...
Python 3.10.6 on Linux Mint.
I noticed your Traceback. This is the old directory structure (before NyaMisty refactored it).
wikiteam3/dumpgenerator/generator.py
wikiteam3/dumpgenerator/xml_dump.py
wikiteam3/dumpgenerator/util.py
Maybe you forgot run "poetry build" or "pip install --force-reinstall"?
I just re-ran poetry build
and pip install --force-reinstall
, and now I'm getting this error:
I honestly have no idea what's going on. The only thing I changed recently is updating from macOS 12 to macOS 13.2. I imagine maybe the major OS update did something strange to the Python subsystem?
I ran python --version
and got Python 3.8.3
, though, which seems normal enough. To emphasize, I'm running this test in a separate Terminal.app window outside the Poetry virtual environment, which is inside VS Code, so it shouldn't be anything related to the dev environment.
(Yes, I recognize that this is no longer the same issue, but it would be nice to get my copy working again... 😬)
(As an aside, this is an instance where actual version/build numbers would be useful...)
I just re-ran
poetry build
andpip install --force-reinstall
, and now I'm getting this error:... File "/Users/elsiehupp/Library/Python/3.8/lib/python/site-packages/wikiteam3/utils/login/api.py", line 6, in <module> def fetchLoginToken(session: requests.Session, api: str) -> str|None: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Fixed in https://github.com/mediawiki-client-tools/mediawiki-scraper/pull/130/commits/9ffba70740f647bbbb8c16a6aa3d9a0b485a28a9. #130
I also found some problems in uploader.py in this test action (dumpgenerator is fine), so I marked this pull request as draft.
Update: Done.
Python 3.10.6 Linux Mint