Skip to content

dvc add fails with ImportError #2887

@maykulkarni

Description

@maykulkarni

Steps:
Follow the Getting started tutorial and run: dvc add -v data/data.xml

dvc add -v data/data.xml
DEBUG: Trying to spawn '['c:\\users\\makul\\appdata\\local\\continuum\\anaconda3\\python.exe', 'C:\\Users\\makul\\AppData\\Local\\Continuum\\anaconda3\\Scripts\\dvc', 'daemon', '-q', 'updater']'
DEBUG: Spawned '['c:\\users\\makul\\appdata\\local\\continuum\\anaconda3\\python.exe', 'C:\\Users\\makul\\AppData\\Local\\Continuum\\anaconda3\\Scripts\\dvc', 'daemon', '-q', 'updater']'
DEBUG: PRAGMA user_version;
DEBUG: fetched: [(3,)]
DEBUG: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, size TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT NULL)
DEBUG: CREATE TABLE IF NOT EXISTS state_info (count INTEGER)
DEBUG: CREATE TABLE IF NOT EXISTS link_state (path TEXT PRIMARY KEY, inode INTEGER NOT NULL, mtime TEXT NOT NULL)
DEBUG: INSERT OR IGNORE INTO state_info (count) SELECT 0 WHERE NOT EXISTS (SELECT * FROM state_info)
DEBUG: PRAGMA user_version = 3;
  0%|          |Add                                                                    0.00/1.00 [00:00<?,     ?file/s]
DEBUG: SELECT count from state_info WHERE rowid=?
DEBUG: fetched: [(0,)]
DEBUG: UPDATE state_info SET count = ? WHERE rowid = ?
ERROR: unexpected error - DLL load failed: The specified procedure could not be found.
------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\main.py", line 49, in main
    ret = cmd.run()
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\command\add.py", line 25, in run
    fname=self.args.file,
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\repo\__init__.py", line 36, in wrapper
    ret = f(repo, *args, **kwargs)
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\repo\scm_context.py", line 4, in run
    result = method(repo, *args, **kw)
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\repo\add.py", line 48, in add
    stages = _create_stages(repo, sub_targets, fname, pbar=pbar)
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\repo\add.py", line 84, in _create_stages
    stage = Stage.create(repo, outs=[out], add=True, fname=fname)
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\stage.py", line 481, in create
    fname = Stage._stage_fname(stage.outs, add)
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\stage.py", line 377, in _stage_fname
    and not contains_symlink_up_to(out.fspath, out.repo.root_dir)
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\utils\fs.py", line 77, in contains_symlink_up_to
    if System.is_symlink(path):
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\system.py", line 268, in is_symlink
    info = System._getdirinfo(path)
  File "c:\users\makul\appdata\local\continuum\anaconda3\lib\site-packages\dvc\system.py", line 156, in _getdirinfo
    from win32file import (
ImportError: DLL load failed: The specified procedure could not be found.
------------------------------------------------------------


Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!

DVC Version:

WARNING: Unable to detect supported link types, as cache directory '.dvc\cache' doesn't exist. It is usually auto-created by commands such as `dvc add/fetch/pull/run/import`, but you could create it manually to enable this check.
DVC version: 0.71.0
Python version: 3.7.3
Platform: Windows-10-10.0.17763-SP0
Binary: False
Package: pip
Filesystem type (cache directory): ('NTFS', 'C:\\')
Filesystem type (workspace): ('NTFS', 'C:\\')

Platform: Windows 10 Enterprise
Method of installation: pip

Metadata

Metadata

Assignees

Labels

bugDid we break something?research

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions