dvc: Unable to add file to DVC - Getting a 'win32timezone' error

DVC version: 0.66.9 Platform: Windows 10 x64 Method of installation: exe

I am busy going through the “Getting Started” section of the website and on the Add Files section I am running the dvc add data/data.xml command to add the data.xml file to DVC.

I get the following error: ERROR: unexpected error - No module named 'win32timezone' and the file is not added.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@SiriusBHU I encountered the same issue when using dvc push command. I have also used .exe installer. I uninstalled v.2.9.3 and picked some older version from dvc releases, i.e. v.2.7.3. Now dvc push command is performed successfully with no error.

It seeems that issue came up in versions 2.8+

Hi @chris-steenkamp @nightscape ! Thanks for the report! Indeed, looks like it is a bug related to our binary packages (windows exe, mac pkg and linux deb/rpm). A workaround for that is to uninstall dvc and install it from pip, brew or conda. Investigating the issue right now.

@Guixudong I see you also have opened a new issue in #7505. Please ignore this thread and continue discussion there, thank you!

@Guixudong How did you install DVC? Could you show dvc doctor? Does this error happen every time you run dvc push?

@efiop DVC version which cause the problem was downloaded from this page I choose Windows option from download button. I don’t have this version installed anymore, only the v2.7.3 which is working fine, so I think dvc doctor will not helpful

@chris-steenkamp @nightscape Btw, guys, could you please share why you’ve chosen to use our exe installer instead of installing using pip or conda?

Thanks for the quick turnaround! The reason I am using the .exe (rather than pip) is because the Installation Docs seem to recommend downloading the installer by default.

@efiop if that information is still useful: I installed DVC via scoop which uses the .exe file instead of pip or conda. Thanks for fixing this so quickly!

Fix is https://github.com/iterative/dvc/pull/2763 . Also added a simple test to our dvc-test repo(testing existing packages) so we will get that covered in the future. Will release a new version ASAP.