-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
bugDid we break something?Did we break something?p2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less important
Description
Please provide information about your setup
DVC version(i.e. dvc --version), Platform and method of installation (pip, homebrew, pkg Mac, exe (Windows), DEB(Linux), RPM(Linux))
Dvc installed via pip install -e ."[all,test]" in virtualenv with Python 3.6.8.
Reproduction:
- Create repo:
#!/bin/bash
rm -rf repo
mkdir repo
cd repo
set -e
set -x
git init >> /dev/null && dvc init -q
- Try to initialize it in script:
from dvc.repo import Repo
repo = Repo("repo")
- Result:
Exception ignored in: <object repr() failed>
Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/lib/python3.6/site-packa
ges/flufl/lock/_lockfile.py", line 331, in __del__
File "/home/prd/development/tools/venvs/dvc3.6/lib/python3.6/site-packa
ges/flufl/lock/_lockfile.py", line 326, in finalize
File "/home/prd/development/tools/venvs/dvc3.6/lib/python3.6/site-packa
ges/flufl/lock/_lockfile.py", line 285, in unlock
File "/home/prd/development/tools/venvs/dvc3.6/lib/python3.6/site-packa
ges/flufl/lock/_lockfile.py", line 312, in is_locked
File "/home/prd/development/tools/venvs/dvc3.6/lib/python3.6/site-packa
ges/flufl/lock/_lockfile.py", line 459, in _touch
ImportError: sys.meta_path is None, Python is likely shutting down
- Something to start with:
if wedel repobefore the end of the script, the problem does not occur.
Metadata
Metadata
Assignees
Labels
bugDid we break something?Did we break something?p2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less important