running pytest /usr/lib/python3.10/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Searching for cryptography Reading https://pypi.org/simple/cryptography/ /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release warnings.warn( Downloading https://files.pythonhosted.org/packages/f9/4b/1cf8e281f7ae4046a59e5e39dd7471d46db9f61bb564fddbff9084c4334f/cryptography-36.0.1.tar.gz#sha256=53e5c1dc3d7a953de055d77bef2ff607ceef7a2aac0353b5d630ab67f7423638 Best match: cryptography 36.0.1 Processing cryptography-36.0.1.tar.gz Writing /tmp/easy_install-klq7g5lz/cryptography-36.0.1/setup.cfg Running cryptography-36.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-klq7g5lz/cryptography-36.0.1/egg-dist-tmp-q5tgq1l0 =============================DEBUG ASSISTANCE========================== If you are seeing an error here please try the following to successfully install cryptography: Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip =============================DEBUG ASSISTANCE========================== Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 156, in save_modules yield saved File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 259, in run_setup _execfile(setup_script, ns) File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 46, in _execfile exec(code, globals, locals) File "/tmp/easy_install-klq7g5lz/cryptography-36.0.1/setup.py", line 14, in "Intended Audience :: Developers", ModuleNotFoundError: No module named 'setuptools_rust' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/build/python-service-identity/src/service-identity-21.1.0/setup.py", line 111, in setup( File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.10/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3.10/site-packages/ptr.py", line 202, in run installed_dists = self.install_dists(dist) File "/usr/lib/python3.10/site-packages/ptr.py", line 153, in install_dists orig.test.install_dists(dist), self.install_extra_dists(dist) File "/usr/lib/python3.10/site-packages/setuptools/command/test.py", line 193, in install_dists ir_d = dist.fetch_build_eggs(dist.install_requires) File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 806, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 771, in resolve dist = best[req.key] = env.best_match( File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1056, in best_match return self.obtain(req, installer) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1068, in obtain return installer(requirement) File "/usr/lib/python3.10/site-packages/ptr.py", line 84, in fetch_build_egg return cmd.easy_install(req) File "/usr/lib/python3.10/site-packages/setuptools/command/easy_install.py", line 675, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/usr/lib/python3.10/site-packages/setuptools/command/easy_install.py", line 701, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/lib/python3.10/site-packages/setuptools/command/easy_install.py", line 896, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/lib/python3.10/site-packages/setuptools/command/easy_install.py", line 1168, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/lib/python3.10/site-packages/setuptools/command/easy_install.py", line 1152, in run_setup run_setup(setup_script, args) File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 249, in run_setup with setup_context(setup_dir): File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__ self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 190, in setup_context with save_modules(): File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__ self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 169, in save_modules saved_exc.resume() File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 143, in resume raise exc.with_traceback(self._tb) File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 156, in save_modules yield saved File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 259, in run_setup _execfile(setup_script, ns) File "/usr/lib/python3.10/site-packages/setuptools/sandbox.py", line 46, in _execfile exec(code, globals, locals) File "/tmp/easy_install-klq7g5lz/cryptography-36.0.1/setup.py", line 14, in "Intended Audience :: Developers", ModuleNotFoundError: No module named 'setuptools_rust' ==> ERROR: A failure occurred in check().  Aborting...