bugManeage - Bugs: bug #61731, setuptools-rust 1.1.2 (dependency...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #61731: setuptools-rust 1.1.2 (dependency of cryptography) crashinng

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Sun 26 Dec 2021 10:37:03 PM UTC
   
 
Category:  Software Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Crash
Status:  Fixed Privacy:  Public
Assigned to:  boud Open/Closed:  Closed

Discussion

Fri 21 Mar 2025 06:38:56 PM UTC, comment #4: 

Thanks Boud! It has been merged into the 'maneage' branch as Commit cb936287 (with minor edits like commenting all the missed python URLs of 'urls.conf').

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 18 Mar 2025 06:30:45 AM UTC, comment #3: 

Done in commit 77bedb12 [3] on branch 'fix_setuptools_rust_rebased' [4].

[3] https://codeberg. ... 63de524d97cc4ea92

[4] https://codeberg. ... ools_rust_rebased

Boud Roukema <boud>
Group Member
Sun 16 Mar 2025 02:31:48 AM UTC, comment #2: 

Thanks for the update Boud! When task #16625 is completed, can you rebase this branch over the latest Maneage branch for easier future followup?

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 27 Feb 2025 10:41:28 PM UTC, comment #1: 

The setuptools-rust install is fixed in commit c540f6bd [1] on branch 'fix_setuptools_rust' [2]. This includes the two updates:

setuptools-rust-version = 1.10.2
semantic-version-version = 2.10.0


A full install up the dependence hierarchy through to 'astroquery' looks like it would be straightforward using the current 'gpep517' frontend, but the total number of packages to update or add looks like it could be 10 to 20. If someone needs 'astroquery', then s/he/they should have a go, and see how user-friendly the updated python install guide is.

[1] https://codeberg. ... c99b37dea0401121c

[2] https://codeberg. ... x_setuptools_rust

Boud Roukema <boud>
Group Member
Sun 26 Dec 2021 10:37:03 PM UTC, original submission:  

Setuptools-rust 1.1.2 (which is a dependency for cryptography 36.0.1) is currently crashing with the following error (apparently due to Python 3.10 changing some internals:

Until we find the solution to this problem, cryptography (and all the packages that depend on it: 'secretstorage' and thus 'keyring' and thus 'astroquery'), are being removed from the automatic building of Maneage (their name is commented in 'version.conf').


/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/setuptools/__init__.py:148: SetuptoolsDeprecationWarning: setup_requires is deprecated. Supply build dependencies using PEP 517 pyproject.toml build-requires.
  warnings.warn(
Traceback (most recent call last):
  File "/BDIR/software/installed/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/BDIR/software/installed/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/__main__.py", line 16, in <module>
    from pip._internal import main as _main  # isort:skip # noqa
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_internal/cli/main_parser.py", line 12, in <module>
    from pip._internal.commands import (
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_internal/commands/__init__.py", line 6, in <module>
    from pip._internal.commands.completion import CompletionCommand
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_internal/commands/completion.py", line 6, in <module>
    from pip._internal.cli.base_command import Command
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_internal/cli/base_command.py", line 25, in <module>
    from pip._internal.index import PackageFinder
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_internal/index.py", line 14, in <module>
    from pip._vendor import html5lib, requests, six
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_vendor/html5lib/__init__.py", line 25, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_vendor/html5lib/html5parser.py", line 8, in <module>
    from . import _tokenizer
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_vendor/html5lib/_tokenizer.py", line 16, in <module>
    from ._trie import Trie
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_vendor/html5lib/_trie/__init__.py", line 3, in <module>
    from .py import Trie as PyTrie
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_vendor/html5lib/_trie/py.py", line 6, in <module>
    from ._base import Trie as ABCTrie
  File "/BDIR/software/installed/lib/python3.10/site-packages/pip-19.0.2-py3.10.egg/pip/_vendor/html5lib/_trie/_base.py", line 3, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/BDIR/software/installed/lib/python3.10/collections/__init__.py)
Traceback (most recent call last):
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/setuptools/installer.py", line 75, in fetch_build_egg
    subprocess.check_call(cmd)
  File "/BDIR/software/installed/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/BDIR/software/installed/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpuxxyif10', '--quiet', 'setuptools_scm>=6.3.2']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/dev/shm/maneage-maneage-mohammad/setuptools-rust-1.1.2/setup.py", line 6, in <module>
    setup()
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/setuptools/__init__.py", line 158, in setup
    _install_setup_requires(attrs)
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/setuptools/__init__.py", line 153, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/setuptools/dist.py", line 806, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/pkg_resources/__init__.py", line 766, in resolve
    dist = best[req.key] = env.best_match(
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/pkg_resources/__init__.py", line 1051, in best_match
    return self.obtain(req, installer)
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/pkg_resources/__init__.py", line 1063, in obtain
    return installer(requirement)
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/setuptools/dist.py", line 877, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/BDIR/software/installed/lib/python3.10/site-packages/setuptools-58.3.0-py3.10.egg/setuptools/installer.py", line 77, in fetch_build_egg
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/BDIR/software/installed/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpuxxyif10', '--quiet', 'setuptools_scm>=6.3.2']' returned non-zero exit status 1.
make: *** [reproduce/software/make/python.mk:635: /BDIR/software/installed/version-info/python/setuptools-rust-1.1.2] Error 1


Mohammad Akhlaghi <makhlaghi>
Group administrator

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by boud (Posted a comment)
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    History

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-03-21 makhlaghi StatusReady For Test Fixed
        Assigned toNone boud
        Open/ClosedOpen Closed
    2025-03-21 boud StatusWorks For Me Ready For Test
    2025-02-27 boud StatusPostponed Works For Me

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code