You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
Hello,
Invoke versions older than 2.0.0 cannot be installed alongside Python 3.11, or they will not function properly.
Traceback (most recent call last):
File "/home/aopfer/miniconda3/envs/invoketest/bin/inv", line 10, in <module>
sys.exit(program.run())
^^^^^^^^^^^^^
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/site-packages/invoke/program.py", line 373, in run
self.parse_collection()
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/site-packages/invoke/program.py", line 465, in parse_collection
self.load_collection()
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/site-packages/invoke/program.py", line 699, in load_collection
module, parent = loader.load(coll_name)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/site-packages/invoke/loader.py", line 76, in load
module = imp.load_module(name, fd, path, desc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/imp.py", line 235, in load_module
return load_source(name, filename, file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/imp.py", line 172, in load_source
module = _load(spec)
^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 721, in _load
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/aopfer/tasks.py", line 3, in <module>
@task
^^^^
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/site-packages/invoke/tasks.py", line 331, in task
return klass(args[0], **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/site-packages/invoke/tasks.py", line 76, in __init__
self.positional = self.fill_implicit_positionals(positional)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/site-packages/invoke/tasks.py", line 167, in fill_implicit_positionals
args, spec_dict = self.argspec(self.body)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aopfer/miniconda3/envs/invoketest/lib/python3.11/site-packages/invoke/tasks.py", line 153, in argspec
spec = inspect.getargspec(func)
^^^^^^^^^^^^^^^^^^
This is a github issue for invoke discussing the problem, specifically linking to the maintainer's statement that version 2.0.0 will fix the problem. I was able to confirm that invoke 2.0.0 fixes the problem by upgrading to it with conda.
Solution to issue cannot be found in the documentation.
Issue
Hello,
Invoke versions older than 2.0.0 cannot be installed alongside Python 3.11, or they will not function properly.
This is a github issue for invoke discussing the problem, specifically linking to the maintainer's statement that version 2.0.0 will fix the problem. I was able to confirm that invoke 2.0.0 fixes the problem by upgrading to it with conda.
pyinvoke/invoke#833 (comment)
I have created a repodata patch that will update the requirements of these older packages to fix the problem:
conda-forge/conda-forge-repodata-patches-feedstock#576
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: