最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

gitlab - how do I delete python files made in a virtual environment - Stack Overflow

programmeradmin5浏览0评论

so, I wrote a pipeline script where I create a virtual environment using virtualenv. I had an error at startup, so I had to restart the pipeline. Only this time I got an error about permission denied, because gitlab cannot delete the files that I created in virtual environment.

warning: failed to remove my_bot/lib/python3.12/site-packages/urllib3/pycache/connection.cpython-312.pyc: Permission denied warning: failed to remove my_bot/lib/python3.12/site-packages/urllib3/pycache/_request_methods.cpython-312.pyc: Permission denied warning: failed to remove my_bot/lib/python3.12/site-packages/urllib3/pycache/filepost.cpython-312.pyc: Permission denied warning: failed to remove my_bot/lib/python3.12/site-packages/urllib3/pycache/_collections.cpython-312.pyc: Permission denied warning: failed to remove my_bot/lib/python3.12/site-packages/urllib3/_request_methods.py: Permission denied warning: failed to remove my_bot/lib/python3.12/site-packages/urllib3/py.typed: Permission denied warning: failed to remove my_bot/.gitignore: Permission denied Cleaning up project directory and file based variables ERROR: Job failed: exit status 1

how do I log in or delete these files, and even better, how can I avoid this in the future?

I'm new to gitlab, so I tried logging into my runner and running a virtual environment there, which I then deleted. Honestly, I don't have any ideas.

发布评论

评论列表(0)

  1. 暂无评论