- Notifications
You must be signed in to change notification settings - Fork673
Closed
Description
Description of the problem, including code/CLI snippet
With package_file object, I can't call delete on it. I need the package object to do so.
package_file.delete()
Expected Behavior
The package file is deleted
Actual Behavior
Traceback (most recent call last): File "/home/manjaro/.cache/pypoetry/virtualenvs/delete-old-packages-jUJPup_k-py3.10/lib/python3.10/site-packages/gitlab/base.py", line 85, in __getattr__ return self.__dict__["_updated_attrs"][name]KeyError: 'delete'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/manjaro/.cache/pypoetry/virtualenvs/delete-old-packages-jUJPup_k-py3.10/lib/python3.10/site-packages/gitlab/base.py", line 88, in __getattr__ value = self.__dict__["_attrs"][name]KeyError: 'delete'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/manjaro/.cache/pypoetry/virtualenvs/delete-old-packages-jUJPup_k-py3.10/lib/python3.10/site-packages/gitlab/base.py", line 108, in __getattr__ return self.__dict__["_parent_attrs"][name]KeyError: 'delete'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/manjaro/.pyenv/versions/3.10.0/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/manjaro/.pyenv/versions/3.10.0/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/manjaro/IdeaProjects/delete-old-packages/paclab/__main__.py", line 9, in <module> main() File "/home/manjaro/IdeaProjects/delete-old-packages/paclab/__main__.py", line 5, in main paclab.main() File "/home/manjaro/IdeaProjects/delete-old-packages/paclab/__init__.py", line 28, in main args.func(args) File "/home/manjaro/IdeaProjects/delete-old-packages/paclab/ui/cli/launcher.py", line 47, in __call__ dt_pkg[1].delete() File "/home/manjaro/.cache/pypoetry/virtualenvs/delete-old-packages-jUJPup_k-py3.10/lib/python3.10/site-packages/gitlab/base.py", line 110, in __getattr__ raise AttributeError(name)AttributeError: deleteProcess finished with exit code 1
Specifications
- python-gitlab version: 2.10.1
- API version you are using (v3/v4): v4
- Gitlab server version (or gitlab.com): 13.12.12-ee
Metadata
Metadata
Assignees
Labels
No labels