-
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
ImportError on dvc pull
in Alpine env
#2334
Comments
Hi @AlexJoz ! Thanks for reporting this! This is pretty weird, I am able to reproduce this with your dockerfile, but it works fine for me locally with the same yaml version. Looking into it. |
Looks like the issue is not on our side, more tailored reproducer
shows that there is something wrong with ruamel itself. Mind opening an issue in ruamel too please? |
For the record ruamel.yaml==0.15.100 works fine. |
@efiop, ok! |
@efiop , could it be related to alpine using musl libc? 🤔 |
@efiop, check tout he following: https://bitbucket.org/ruamel/yaml/commits/tag/0.16.0 it doesn't seem like a relevant update. @AlexJoz , a quick workaround would be to install ruamel.yaml before dvc, like the following:
If you create an issue in the |
This almost certainly has to do with ruamel.yaml having been split it up and the second package (ruamel.yaml.clib which contains the C loader/dumper) installing an init.py and .pth file (which it shouldn't). |
@AvdN Cool, thanx! @MrOutis |
@AlexJoz Big thanks for the fix! I'll trigger the release in a moment. Let's keep this issue open until ruamel.yaml is fixed, so we don't forget to update requirements in dvc 🙂 |
@AlexJoz FYI: 0.53.2 is out. Please feel free to upgrade! 🙂 |
@efiop already done =) Works fine! Thanks |
I set the issue on bitbucket to resolved, as I think this got fixed by releasing a new version of ruamel.yaml.clib (you should use ruamel.yaml.clib>=0.1.2). |
@AvdN Great news! Thank you so much! |
It would be best to wait for the next ruamel.yaml release, which, I suppose, will have updated requirements for clib. But if it works for you @AlexJoz already, we could relax the requirements right away without waiting for the next release. |
@efiop There is a new ruamel.yaml. (0.16.1) which has that requirement |
@AvdN Oh, that is perfect! Thank you! |
dvc pull
fails in Docker based on Alpine 3.10 with latest dvc (0.53.1)Dockerfile to reproduce:
Going through history, found commit after which this error has appeared.
Basically, using ruamel.yaml ver. 0.15.9 fixes the issue.
Latest working tag:
pip3 install dvc[gs]==0.40.0
The text was updated successfully, but these errors were encountered: