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

Exempt OSError for Tarball.get_installed_git_repo #133

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

dachengx
Copy link
Contributor

@dachengx dachengx commented Oct 3, 2024

Without this PR, we will see:

Traceback (most recent call last):
  File "/home/xudc/tt.py", line 4, in <module>
    Tarball.get_installed_git_repo("rucio")
  File "/home/xudc/utilix/utilix/tarball.py", line 78, in get_installed_git_repo
    repo = Repo(mod.__path__[0], search_parent_directories=True)
  File "/cvmfs/xenon.opensciencegrid.org/releases/nT/el9.2024.09.1/anaconda/envs/XENONnT_el9.2024.09.1/lib/python3.9/site-packages/git/repo/base.py", line 236, in __init__
    raise NoSuchPathError(epath)
git.exc.NoSuchPathError: /cvmfs/xenon.opensciencegrid.org/releases/nT/el9.2024.09.1/anaconda/envs/XENONnT_el9.2024.09.1/lib/python3.9/site-packages/rucio_clients-32.8.0-py3.9.egg/rucio

This is because rucio is not an ordinarily installed package.

@dachengx dachengx marked this pull request as ready for review October 3, 2024 19:58
@dachengx dachengx merged commit f3150f3 into master Oct 3, 2024
2 checks passed
@dachengx dachengx deleted the more_errors_tarball_repo branch October 3, 2024 19:58
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

Successfully merging this pull request may close these issues.

1 participant