Closed sofusalbertsen closed 4 years ago
@sofusalbertsen Thank you for trying out the tool:) I have made some changes to the upload function. Please try again!
I go the the new readme, but fail to do what it tells me to:
pip install functionhub
results in an error:
pip install functionhub
Collecting functionhub
Could not find a version that satisfies the requirement functionhub (from versions: )
No matching distribution found for functionhub
If you do not add the new description under function in config.ini you get the following bad exception:
sofus@sofus-ZenBook-UX433FN-UX433FN:~/git/functionHub-client/saltest$ fuhub upload hello.zip
Traceback (most recent call last):
File "/usr/lib/python3.6/configparser.py", line 789, in get
value = d[option]
File "/usr/lib/python3.6/collections/__init__.py", line 883, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
File "/usr/lib/python3.6/collections/__init__.py", line 875, in __missing__
raise KeyError(key)
KeyError: 'description'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/sofus/.local/lib/python3.6/site-packages/functionhub/main.py", line 54, in upload_function
payload['description'] = config.get('FUNCTION','description')
File "/usr/lib/python3.6/configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'description' in section: 'FUNCTION'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/sofus/.local/bin/fuhub", line 11, in <module>
sys.exit(fuhub())
File "/home/sofus/.local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/sofus/.local/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/sofus/.local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/sofus/.local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/sofus/.local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/sofus/.local/lib/python3.6/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/home/sofus/.local/lib/python3.6/site-packages/functionhub/main.py", line 64, in upload_function
raise KeyError("unsupported key")
KeyError: 'unsupported key'
Not a sexy error handling, I'll give you that;)
Steps to reproduce:
Uploading like this: