luogu-dev / cyaron

CYaRon: Yet Another Random Olympic-iNformatics test data generator
GNU Lesser General Public License v3.0
1.31k stars 164 forks source link

Error Installing on Arch Linux #107

Open Bot-wxt1221 opened 11 months ago

Bot-wxt1221 commented 11 months ago

/usr/lib/python3.11/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options !!

    ********************************************************************************
    Usage of dash-separated 'description-file' will not be supported in future
    versions. Please use the underscore name 'description_file' instead.

    By 2023-Sep-26, you need to update your project and remove deprecated calls
    or your builds will no longer be supported.

    See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
    ********************************************************************************

!! opt = self.warn_dash_deprecation(opt, section) running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. /usr/lib/python3.11/site-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!

    ********************************************************************************
    Requirements should be satisfied by a PEP 517 installer.
    If you are using pip, you can try `pip install --use-pep517`.
    ********************************************************************************

!! ir_d = dist.fetch_build_eggs(dist.install_requires) /usr/lib/python3.11/site-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!

    ********************************************************************************
    Requirements should be satisfied by a PEP 517 installer.
    If you are using pip, you can try `pip install --use-pep517`.
    ********************************************************************************

!! tr_d = dist.fetch_build_eggs(dist.tests_require or []) /usr/lib/python3.11/site-packages/setuptools/command/test.py:196: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!

    ********************************************************************************
    Requirements should be satisfied by a PEP 517 installer.
    If you are using pip, you can try `pip install --use-pep517`.
    ********************************************************************************

!! er_d = dist.fetch_build_eggs( running egg_info writing cyaron.egg-info/PKG-INFO writing dependency_links to cyaron.egg-info/dependency_links.txt writing requirements to cyaron.egg-info/requires.txt writing top-level names to cyaron.egg-info/top_level.txt reading manifest file 'cyaron.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'cyaron.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "/home/wxt/.cache/yay/python-cyaron/src/python-cyaron/setup.py", line 4, in setup( File "/usr/lib/python3.11/site-packages/setuptools/init.py", line 107, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command super().run_command(command) File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/usr/lib/python3.11/site-packages/setuptools/command/test.py", line 224, in run self.run_tests() File "/usr/lib/python3.11/site-packages/setuptools/command/test.py", line 227, in run_tests test = unittest.main( ^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/main.py", line 101, in init self.parseArgs(argv) File "/usr/lib/python3.11/unittest/main.py", line 127, in parseArgs self._do_discovery(argv[2:]) File "/usr/lib/python3.11/unittest/main.py", line 247, in _do_discovery self.createTests(from_discovery=True, Loader=Loader) File "/usr/lib/python3.11/unittest/main.py", line 157, in createTests self.test = loader.discover(self.start, self.pattern, self.top) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/loader.py", line 322, in discover tests = list(self._find_tests(start_dir, pattern)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/loader.py", line 377, in _find_tests tests, should_recurse = self._find_test_path(full_path, pattern) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/loader.py", line 453, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/setuptools/command/test.py", line 57, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/loader.py", line 191, in loadTestsFromName return self.loadTestsFromModule(obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/setuptools/command/test.py", line 57, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/loader.py", line 205, in loadTestsFromName test = obj() ^^^^^ TypeError: fulltext() missing 2 required positional arguments: 'content' and 'std'

系统:Arch Linux on x86-64 Python:3.11.3

Bot-wxt1221 commented 11 months ago

没人吗

Bot-wxt1221 commented 11 months ago

Maybe that's cause by pacman, On Arch Linux, packages on python in managed by pacman, and it can't be installed. I try to use vitural enviroument and it works.