chaostoolkit / chaostoolkit-addons

Chaos Toolkit addons (tolerances, controls) that can benefit everyone

Home Page:https://chaostoolkit.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to discover chaostoolkit-addons

ErwanNico opened this issue · comments

Hello,


RUNTIME :

(chaos-env) $ chaos info extensions
NAME VERSION LICENSE DESCRIPTION
chaostoolkit-addons 0.1.0 UNKNOWN Addons for your Chaos Toolkit experiments

(chaos-env) $ chaos info core
NAME VERSION
CLI 1.9.0
Core library 1.19.0


I'm working on an internal network without internet connection. Working with python 3.7.0
I have manual installed chaostoolkit with setup.py, and also installed all requirements (chaostoolkit-librairy and python modules with .whl).

I have installed chaostoolkit-addons with setup.py. Now, I get an error when I want to discover chaostoolkit-addons (using 0.1.0 because I got an setuptools-scm error with higher version of addons).

Here is my error when I want to discover :

$ chaos discover --no-install chaostoolkit-addons Traceback (most recent call last): File "/home/user/chaos-env/bin/chaos", line 33, in <module> sys.exit(load_entry_point('chaostoolkit==1.9.0', 'console_scripts', 'chaos')()) File "/home/user/chaos-env/lib/python3.7/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/user/chaos-env/lib/python3.7/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/user/chaos-env/lib/python3.7/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/user/chaos-env/lib/python3.7/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/user/chaos-env/lib/python3.7/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/home/user/chaos-env/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "/home/user/chaos-env/lib/python3.7/site-packages/chaostoolkit-1.9.0-py3.7.egg/chaostoolkit/cli.py", line 440, in discover File "/home/user/chaos-env/lib/python3.7/site-packages/chaostoolkit_lib-1.19.0-py3.7.egg/chaoslib/discovery/discover.py", line 33, in discover package = load_package(package_name) File "/home/user/chaos-env/lib/python3.7/site-packages/chaostoolkit_lib-1.19.0-py3.7.egg/chaoslib/discovery/package.py", line 49, in load_package package = importlib.import_module(name) File "/home/user/tools/python/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1003, in _gcd_import File "<frozen importlib._bootstrap>", line 942, in _sanity_check ValueError: Empty module name

There is another possibility to install addons without internet connection ?
Actually, when I create my experiment, I don't have any method

Thank you in advance

Good call. I have forgotten to add a discover function to that package. I'll move the issue over there.