You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last python version that worked with mediawiki-parser is 3.11.3.
There, when you install the module, the following warning was displayed:
DEPRECATION: pijnu is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for pijnu ... done
DEPRECATION: mediawiki-parser is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for mediawiki-parser ... done
Successfully installed mediawiki-parser-0.4.1 pijnu-20160727 py3compat-0.4
In python 3.11.5 (or later), the it fails like this:
pip install mediawiki-parser
Collecting mediawiki-parser
Using cached mediawiki-parser-0.4.1.tar.gz (34 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pijnu>=20160727 (from mediawiki-parser)
Using cached pijnu-20160727-py3-none-any.whl
Collecting py3compat (from pijnu>=20160727->mediawiki-parser)
Obtaining dependency information for py3compat from https://files.pythonhosted.org/packages/a2/c9/b8041f2ec26bc2e57bcc2622a967dc15e42e9728844eb99b9af11bb5e224/py3compat-0.4-py2.py3-none-any.whl.metadata
Using cached py3compat-0.4-py2.py3-none-any.whl.metadata (837 bytes)
Using cached py3compat-0.4-py2.py3-none-any.whl (5.2 kB)
Building wheels for collected packages: mediawiki-parser
Building wheel for mediawiki-parser (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for mediawiki-parser (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [55 lines of output]
running bdist_wheel
running build
running build_parsers
Traceback (most recent call last):
File "/home/crem/dev/ifdb/virtualenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/crem/dev/ifdb/virtualenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/crem/dev/ifdb/virtualenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 410, in build_wheel
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 395, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 56, in <module>
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 368, in run
self.run_command("build")
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/tmp/pip-build-env-u0zdmye9/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 49, in run
File "<string>", line 24, in makeparsers
ModuleNotFoundError: No module named 'pijnu'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mediawiki-parser
Failed to build mediawiki-parser
ERROR: Could not build wheels for mediawiki-parser, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered:
The last python version that worked with mediawiki-parser is 3.11.3.
There, when you install the module, the following warning was displayed:
In python 3.11.5 (or later), the it fails like this:
The text was updated successfully, but these errors were encountered: