-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to add file to DVC - Getting a 'win32timezone' error #2754
Comments
I just observed the same problem. |
As a workaround, creating a Python virtual environment and installing dvc via pip allows me add the file as expected. The library which provides the win32timezone module is pywin32. |
I managed to install 0.66.5 and the problem is not present there, so it seems to have been introduced between 0.66.5 and 0.66.6. |
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 |
@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? |
@chris-steenkamp @nightscape One more thing, could you run that command with EDIT: nevermind, I am able to reproduce;
|
Also added a simple test to `dvc-test` repo [1]. [1] iterative/dvc-test@5748744 Fixes iterative#2754
Fix is #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. |
@efiop if that information is still useful: I installed DVC via scoop which uses the |
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. |
@nightscape Oh, I didn't even know about scoop! Looks like @r15ch13 added dvc https://github.com/ScoopInstaller/Main/blob/master/bucket/dvc.json and keeps it up to date! 🔥 @chris-steenkamp Got it! Thanks for the feedback! @nightscape @chris-steenkamp A few more questions, if you don't mind 🙂Are you guys familiar with chocolatey or scoop? Would you prefer to us recommending one of them instead? Are you using standalone python or conda? What if we would recommend one of those? We don't have anyone that is using windows for development in our team, so we are not sure what would be the preferred method of installation on windows. Coming from *nix, it feels right to use chocolatey or scoop(maybe there is even some other pkg manager that I'm not aware of) to install and manage packages in general, but we are not sure if our typical user is familiar with those 🙁 As to installing standalone python or conda, those seem like a language bias and we don't recommend those as dvc is language-agnostic and it would be weird(and might be not trivial) to make R developer install python specifically for dvc. |
it seems that this bug is not fixed by now, when using exe installer 🙁... |
@SiriusBHU can you please try re-running the command that gave you an error with the |
@SiriusBHU I encountered the same issue when using dvc push command. I have also used .exe installer. It seeems that issue came up in versions 2.8+ |
@TheBigTicket13 @SiriusBHU Btw, where did you install it from (downloaded our exe, installed from chocolatey, scoop, conda, pip, etc?)? Could you show |
使用pip安装了2.8.3版本的dvc,运行dvc push报错,以下是错误日志:
|
@Guixudong How did you install DVC? Could you show |
@Guixudong I see you also have opened a new issue in #7505. Please ignore this thread and continue discussion there, thank you! |
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.
The text was updated successfully, but these errors were encountered: