nose icon indicating copy to clipboard operation
nose copied to clipboard

Change in Python3.10 from collections.Callable to collections.abc.Callable

Open CarloCogni opened this issue 2 years ago • 7 comments

As of Python 3.10, collections.Callable as been replaced with collections.abs.Callable.

This will make nose crash with an AttributeError.

CarloCogni avatar Mar 25 '22 11:03 CarloCogni

I'm encountering the same problem here in our CI setup.

EwoutH avatar May 02 '22 14:05 EwoutH

@EwoutH, I just changed the code in the installed package (perhaps not elegant, but simple and quick)

CarloCogni avatar May 02 '22 15:05 CarloCogni

Same issue here, https://github.com/ppizarror/pygame-menu/runs/7719197346?check_suite_focus=true

ppizarror avatar Aug 08 '22 05:08 ppizarror

Last commit 7 years ago, is this component maintained?

alonbl avatar Sep 12 '22 11:09 alonbl

@alonbl The project's website says:

Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2, py.test, or just plain unittest/unittest2.

jnns avatar Sep 16 '22 17:09 jnns

#1099

dirkf avatar Sep 26 '22 04:09 dirkf

I guess that we should all say goodby to nose and try to move to nose2

Meanwhile, somewhere in the nose start script I have added the following hack. It just put back the aliases :)

    for member in ['Callable', 'Iterable', 'Sequence']:
        if not hasattr(collections, member):
            setattr(collections, member, getattr(collections.abc, member))

adiroiban avatar May 01 '23 14:05 adiroiban