Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collections.Callable has become collections.abc.Callable in python 3.10 + #1127

Open
akshaydse opened this issue Sep 8, 2023 · 1 comment

Comments

@akshaydse
Copy link

collections.Callable that has been used in _set_tests has become collections.abc.Callable is simple change can run it higher versions of python
As one instance you can find it
in _set_tests
if isinstance(tests, collections.Callable) and not is_suite:

@akshaydse
Copy link
Author

It is easily solvable by just adding two lines in nosetest bash file

Import collections.abc
collections.Callable= collections.abc.Callable

cbodley added a commit to cbodley/teuthology that referenced this issue May 23, 2024
after upgrading teuthology to centos 9 and python 3.10, the rgw
multisite test suite now fails to invoke nosetests with:

> AttributeError: module 'collections' has no attribute 'Callable'

this is a known issue tracked in nose-devs/nose#1127

Shilpa found a new 'pynose' package which claims that:

> This version of nose is compatible with Python 3.7+ (including 3.13+).

replace the nose dependency that i initially added in
ceph#1069 with the current version
1.5.1 of pynose

to prepare this pr, i first changed setup.cfg then ran:

> ./update-requirements.sh -P "pynose==1.5.1"

Signed-off-by: Casey Bodley <[email protected]>
cbodley added a commit to cbodley/teuthology that referenced this issue May 23, 2024
after upgrading teuthology to centos 9 and python 3.10, the rgw
multisite test suite now fails to invoke nosetests with:

> AttributeError: module 'collections' has no attribute 'Callable'

this is a known issue tracked in nose-devs/nose#1127

Shilpa found a new 'pynose' package which claims that:

> This version of nose is compatible with Python 3.7+ (including 3.13+).

replace the nose dependency that i initially added in
ceph#1069 with the current version
1.5.1 of pynose

to prepare this pr, i first changed setup.cfg then ran:

> ./update-requirements.sh -P "pynose==1.5.1"

Fixes: https://tracker.ceph.com/issues/66183

Signed-off-by: Casey Bodley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant