cloudmesh / cloudmesh-cloud

Multicloud Cloudmesh Plugins for cloudmesh cmd5 CMD
https://cloudmesh.github.io/cloudmesh-manual
Apache License 2.0
2 stars 27 forks source link

Blocking error in cms commands #314

Closed nirandaperera closed 4 years ago

nirandaperera commented 4 years ago

@laszewsk I get the following error in cloudmesh when I simply run cms set cloud=aws

Traceback (most recent call last):
  File "/aux/ENV3/bin/cms", line 11, in <module>
    load_entry_point('cloudmesh-cmd5', 'console_scripts', 'cms')()
  File "/aux/ENV3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/aux/ENV3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/aux/ENV3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/aux/ENV3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/aux/github/cm/cloudmesh-cmd5/cloudmesh/shell/shell.py", line 163, in <module>
    Plugin.load()
  File "/aux/github/cm/cloudmesh-cmd5/cloudmesh/shell/shell.py", line 158, in load
    (commands.rsplit(".", 1) for commands in class_commands)]
  File "/aux/github/cm/cloudmesh-cmd5/cloudmesh/shell/shell.py", line 157, in <listcomp>
    commands = [getattr(importlib.import_module(mod), cls) for (mod, cls) in
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/aux/github/cm/cloudmesh-azure/cloudmesh/azure/command/azure.py", line 4, in <module>
    from cloudmesh.azure.api.manager import Manager
ModuleNotFoundError: No module named 'cloudmesh.azure.api'

I cant find this fie/ module in any packages - from cloudmesh.azure.api.manager import Manager

laszewsk commented 4 years ago

this semms to come from ysy generate and probably can be deleted

nirandaperera commented 4 years ago

"ysy generate"??

On Wed, Jan 29, 2020 at 6:47 PM Gregor von Laszewski < notifications@github.com> wrote:

this semms to come from ysy generate and probably can be deleted

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/cloudmesh/cloudmesh-cloud/issues/314?email_source=notifications&email_token=ABKS65LQZSJ7XS2WCOF7D33RAIIPVA5CNFSM4KNMYPV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJFXMA#issuecomment-580017072, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKS65MQGKIVD6BWVYRFARTRAIIPVANCNFSM4KNMYPVQ .

-- Niranda Perera @n1r44 https://twitter.com/N1R44 +1 812 558 8884 / +94 71 554 8430 https://www.linkedin.com/in/niranda

laszewsk commented 4 years ago

gergor fixed this by removing the import