Hi,
Trying to use DVC on windows, got the error below when trying to track a data file with DVC.
Any idea of the cause and how to resolve ?
Thanks !
$ dvc add testfi.csv -vv
2022-01-31 16:02:39,340 TRACE: Namespace(cd=’.’, cmd=‘add’, cprofile=False, cprofile_dump=None, desc=None, external=False, file=None, func=<class ‘dvc.command.add.CmdAdd’>, glob=False, instrument=False, instrument_open=False, jobs=None, no_commit=False, out=None, pdb=False, quiet=0, recursive=False, remote=None, targets=[‘testfi.csv’], to_remote=False, verbose=2, version=None, yappi=False)
2022-01-31 16:02:39,743 DEBUG: Adding ‘C:\senseen-datasets-repos.dvc\config.local’ to gitignore file.
2022-01-31 16:02:39,762 DEBUG: Adding ‘C:\senseen-datasets-repos.dvc\tmp’ to gitignore file.
2022-01-31 16:02:39,763 DEBUG: Adding ‘C:\senseen-datasets-repos.dvc\cache’ to gitignore file.
2022-01-31 16:02:39,777 ERROR: unexpected error - ‘NoneType’ object has no attribute ‘flush’
Traceback (most recent call last):
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\main.py”, line 55, in main
ret = cmd.do_run()
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\command\base.py”, line 45, in do_run
return self.run()
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\command\add.py”, line 21, in run
self.repo.add(
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\utils\collections.py”, line 163, in inner
result = func(*ba.args, **ba.kwargs)
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\repo_init_.py”, line 48, in wrapper
with lock_repo(repo):
File “C:\Users\ddumet\AppData\Local\Programs\Python\Python38\lib\contextlib.py”, line 113, in enter
return next(self.gen)
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\repo_init_.py”, line 36, in lock_repo
with repo.lock:
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\lock.py”, line 131, in enter
self.lock()
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\lock.py”, line 120, in lock
lock_retry()
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\funcy\decorators.py”, line 45, in wrapper
return deco(call, *dargs, **dkwargs)
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\funcy\flow.py”, line 127, in retry
return call()
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\funcy\decorators.py”, line 66, in call
return self._func(*self._args, **self._kwargs)
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\lock.py”, line 103, in _do_lock
with Tqdm(
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\dvc\progress.py”, line 85, in init
super().init(
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\tqdm\std.py”, line 1107, in init
self.sp = self.status_printer(self.fp)
File “c:\users\ddumet\pythonenvs\venv-senseen\lib\site-packages\tqdm\std.py”, line 339, in status_printer
sys.stderr.flush()
AttributeError: ‘NoneType’ object has no attribute ‘flush’
2022-01-31 16:02:40,219 DEBUG: Adding ‘C:\senseen-datasets-repos.dvc\config.local’ to gitignore file.
2022-01-31 16:02:40,224 DEBUG: Adding ‘C:\senseen-datasets-repos.dvc\tmp’ to gitignore file.
2022-01-31 16:02:40,225 DEBUG: Adding ‘C:\senseen-datasets-repos.dvc\cache’ to gitignore file.
2022-01-31 16:02:40,236 DEBUG: Version info for developers:
DVC version: 2.9.3 (pip)
Platform: Python 3.8.10 on Windows-10-10.0.22000-SP0
Supports:
webhdfs (fsspec = 2022.1.0),
http (aiohttp = 3.8.1, aiohttp-retry = 2.4.6),
https (aiohttp = 3.8.1, aiohttp-retry = 2.4.6)
Cache types: https://error.dvc.org/no-dvc-cache
Caches: local
Remotes: None
Workspace directory: NTFS on C:
Repo: dvc, git