uzh-rpg / rpg_trajectory_evaluation

Toolbox for quantitative trajectory evaluation of VO/VIO
MIT License
1.06k stars 348 forks source link

AttributeError: 'module' object has no attribute 'FullLoader' #21

Open danieasv opened 4 years ago

danieasv commented 4 years ago

Got this yamel.load error when evaluating the code Solved the issue by installing a newer version of the dependency with: pip install PyYAML ==5.1

DorisHX commented 4 years ago

Got this yamel.load error when evaluating the code Solved the issue by installing a newer version of the dependency with: pip install PyYAML ==5.1

Hi, I faced the problem exactly the same as yours. I tried to install PyYAML 5.1 but failed.

ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Could you give some insight? Thanks!

DorisHX commented 4 years ago

I‘ve installed ruamel.yaml and updated PyYAML v5.1. And it works.

pip install PyYAML==5.1

or you can try ’wget‘ to update.

Sent from my iPhone

On Dec 31, 2019, at 10:40, YangSiri notifications@github.com wrote:

Hi, @danieasv @DorisHX

I also faced this problem. I think its sth about the yaml lib which may relate to pip install ruamel.yaml. I also tried pip install PyYAML ==5.1 but it said ERROR: Invalid requirement: '==5.1'. Personally i have both py2 and py3. Though i pip installed the above lib, it still didnt work.

Looking forward to your help. THANKS

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

YangSiri commented 4 years ago

Yes, @DorisHX

Thanks very much

jingshaojing commented 3 years ago

pip install PyYAML ==5.1 ,it seems there should not a space betwwen 'PyYaml' and '==‘.