codelv / enaml-native-cli

CLI and package manager for building enaml-native apps
https://www.codelv.com/projects/enaml-native/
GNU General Public License v3.0
13 stars 7 forks source link

ruamel to ruamel_yaml #17

Closed MFDESTINO closed 6 years ago

MFDESTINO commented 6 years ago

Xubuntu 18.04 LTS enaml-native-cli 2.2.4 conda 4.5.11

installed using this guide, but when I executed enaml-native run-android

I got:

Traceback (most recent call last): File "/home/daniel/miniconda3/bin/enaml-native", line 6, in <module> from enamlnativecli.main import main File "/home/daniel/miniconda3/lib/python3.6/site-packages/enamlnativecli/main.py", line 23, in <module> from ruamel import yaml ModuleNotFoundError: No module named 'ruamel'

Tried using pip install to solve this, nothing worked, but when looking at pip list and conda list I realized that it was something with the name of the package, so I changed the line 23 from main.py:

from ruamel import yaml

to: import ruamel_yaml as yaml

and it worked

EDIT: I also think maybe it's the same problem here

frmdstryr commented 6 years ago

Thank you for reporting and looking at this.

It looks like they have been making some breaking changes to their api

https://yaml.readthedocs.io/en/latest/api.html

It would be nice to support both versions.

frmdstryr commented 6 years ago

Conda has a "patched" version of the package on their repo renamed to ruamel_yaml, so to support either version I've updated the code to handle this.

Thank you!