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

manage.py fails on Python 3.11 #103

Open
jaraco opened this issue Jun 4, 2023 · 1 comment
Open

manage.py fails on Python 3.11 #103

jaraco opened this issue Jun 4, 2023 · 1 comment

Comments

@jaraco
Copy link
Collaborator

jaraco commented Jun 4, 2023

Trying to run manage test, it failed as manage.py appears to be too old for Python 3.11:

 csv2ofx master $ pip-run manage.py -- -m manage test
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/jaraco/code/reubano/csv2ofx/manage.py", line 37, in <module>
    @manager.command
     ^^^^^^^^^^^^^^^
  File "/var/folders/sx/n5gkrgfx6zd91ymxr2sr9wvw00n8zm/T/pip-run-vwyhkjst/manager/__init__.py", line 251, in command
    return register(fn)
           ^^^^^^^^^^^^
  File "/var/folders/sx/n5gkrgfx6zd91ymxr2sr9wvw00n8zm/T/pip-run-vwyhkjst/manager/__init__.py", line 247, in register
    return wrapped(**kwargs)
           ^^^^^^^^^^^^^^^^^
  File "/var/folders/sx/n5gkrgfx6zd91ymxr2sr9wvw00n8zm/T/pip-run-vwyhkjst/manager/__init__.py", line 244, in wrapped
    command = self.Command(run=fn, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/folders/sx/n5gkrgfx6zd91ymxr2sr9wvw00n8zm/T/pip-run-vwyhkjst/manager/__init__.py", line 59, in __init__
    self.inspect()
  File "/var/folders/sx/n5gkrgfx6zd91ymxr2sr9wvw00n8zm/T/pip-run-vwyhkjst/manager/__init__.py", line 65, in inspect
    self.arg_names, varargs, keywords, defaults = inspect.getargspec(
                                                  ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

getargspec was removed in Python 3.11.

@sphakka
Copy link
Collaborator

sphakka commented Apr 4, 2024

I guess the project should drop Nose, as stated in its doc page:

"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."

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

2 participants