-
Notifications
You must be signed in to change notification settings - Fork 9
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
ModuleNotFoundError: No module named 'ruamel' #106
Comments
A workaround is to install |
Is this something we should have in the documentation somewhere? Is there any way to check if the conda installation is broken? It's annoying that it currently just looks like our tool is the one failing (with a pretty obscure error) when it's a conda problem. |
You could work around it in your own code by catching the exception:
Assuming that this mysterious |
Hmm that's a good idea. Would this workaround cause problems elsewhere in YAtiML if it were in there? |
Oh joy. Digging into this a bit, it seems that So the problem is that there are two different-but-similar packages whose names differ only by punctuation, and now pip considers them identical but Python's importlib doesn't. So maybe the correct solution would be for PyPA to make sure that their installer and their programming language agree on which package names are and are not equivalent, and for PyPI and Conda-forge to update their rules to disallow equivalent (not just identical) package names. Alternatively, just removing So, I could add a work-around to YAtiML to make it import Of course the only real good solution would be to invent a new programming language with a packaging solution that isn't a horridly bodged together contraption reminiscent of Simone Giertz's shitty robots, a new markup language that isn't an overcomplicated jungle gym, and a library for the markup language written in the programming language that is maintained by someone who knows how to talk to people. But that sounds like work, I'm a lazy Millennial, and it's Friday afternoon, so... |
Haha, that is a much deeper rabbit hole than I expected... but given the horrors I've seen with conda/pypi packaging perhaps I should not be so surprised.
Avocados have ruined this generation ;) |
Actually, the rabbit hole goes even deeper... When looking up packages, As a result of that, It seems that it was Continuum itself which made the ruamel_yaml package, because they didn't like So I've asked Continuum to patch that version as well. I don't know if that will automatically upgrade everyone's base environment or if they'll have to upgrade manually, but we can figure that out when this is resolved and add a note in the documentation. |
Go to anaconda3\lib\site-packages\rpcq_base.py and change line #22 : |
|
Hi! Thank you for commenting. Could you please explain how your suggestions help fix this problem? I don't see how changing the source code of |
Just changing the |
Just a note for anyone reading the above: these people have issues with different Python packages that are hit by the same bug in Anaconda. The fixes posted above will not fix nanopub, because it doesn't use any of them. Also, editing an already installed package like that is a bad idea, because the edit will be reverted on every upgrade. If you find this issue and you are not using |
Below are steps which worked after spending some time on issue i.e running this " conda install ruamel_yaml" before running the conda update anaconda
|
With certain new versions of pip and conda the
ruamel.yaml
installation fails. This is a problem with conda: conda/conda#10178.The text was updated successfully, but these errors were encountered: