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
AttributeError: module 'ruamel_yaml' has no attribute 'representer' #7931
Comments
Did the same today, wanted to update packages from pip which are not in conda. To get around this annoying issue, go to site-packages, delete all ruamel_yaml and install with pip: pip install ruamel_yaml==0.15.71 However, unfortunately you can't restore the conda-version of ruamel_yaml directly.
@kalefranz , why not, could you tell? Inplace upgrade/restore should be possible always. If there is another way like conda install -f conda
it should at least be suggested in the error above. |
I face the same problem. Maybe something is worse, because when trying to install ruamel_yaml I get response Any conda commands seem return this error. |
Did you find any solution for this. I am facing the same issue. No solutions on google either |
@pratikbijam |
Mabey I should reinstall it too... |
Just updated to conda 4.7.10 from v4.7.9, and now I'm getting this error with all conda sub-commands (eg.,
This assumes that you have
...but |
I tried just copying the ruamel_yaml* files from a different anaconda install into my broken install, and now when running
The report can't even be sent. At least |
@SLAPaper I am still facing this issue and getting the Did you find any solution? |
@daniyalas Reinstallation of Anaconda/Miniconda should work. It has been a long time so my memory might not be correct. |
Yeah, I had to reinstall it. Nothing else seemed to work. It's a huge hassle though. |
I've run into this bug multiple times over the past year or so when I forget that I "shouldn't ever" update conda. I'm amazed this hasn't been fixed yet. |
Still not fixed?? |
@ishrahussain Probably not. It's just disappointing. |
I ran into same problem and now I am reinstalling conda, and it's really bad |
So only can to reinstall? |
您好~这里是罗壮的邮箱,我已收到您的来信,会尽快给您回复的,请稍作等待喔~
|
SOLVED: Just to say that this is still an issue. My version of the error refers to this path: The code that is relevant is this. The fix is referred to below. My best guess is that there is a "ruamel_yaml" package out there that still gets loaded and it will cause an error with certainly python 3.8 (and above?). The workaround is to simply not let it look for that package and force it to look for "ruamel.yaml" (ie. no underscore in the name). This is a quick fix not proper code fix.
|
您好~这里是罗壮的邮箱,我已收到您的来信,会尽快给您回复的,请稍作等待喔~
|
conda dropped ruamel_yaml (ruamel underscore yaml) in favor of ruamel.yaml (ruamel dot yaml) with an upper bound. |
您好~这里是罗壮的邮箱,我已收到您的来信,会尽快给您回复的,请稍作等待喔~
|
Current Behavior
conda commands crash after upgrade ruamel.yaml to latest version using pip (0.15.75 as for this issue sent)
Steps to Reproduce
Expected Behavior
shouldn't crash
Environment Information
`conda info`
`conda config --show-sources`
`conda list --show-channel-urls`
The text was updated successfully, but these errors were encountered: