hdkiller / Auto-GPT-SystemInfo

A plugin for Auto-GPT which injects information about the operation system
MIT License
65 stars 18 forks source link

curl command with zip breaks autogpt #8

Closed Trumantester closed 1 year ago

Trumantester commented 1 year ago

running this: curl -o ./plugins/Auto-GPT-SystemInfo.zip https://github.com/hdkiller/Auto-GPT-SystemInfo/archive/refs/heads/master.zip breaks chatgpt, give message that this is not a true zip file. Then running after the install gives: File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/tom/Auto-GPT/autogpt/main.py", line 5, in autogpt.cli.main() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1635, in invoke rv = super().invoke(ctx) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(args, *kwargs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), args, **kwargs) File "/Users/tom/Auto-GPT/autogpt/cli.py", line 96, in main run_auto_gpt( File "/Users/tom/Auto-GPT/autogpt/main.py", line 142, in run_auto_gpt cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode)) File "/Users/tom/Auto-GPT/autogpt/plugins.py", line 245, in scan_plugins if moduleList := inspect_zip_for_modules(str(plugin), debug): File "/Users/tom/Auto-GPT/autogpt/plugins.py", line 36, in inspect_zip_for_modules with zipfile.ZipFile(zip_path, "r") as zfile: File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/zipfile.py", line 1269, in init self._RealGetContents() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/zipfile.py", line 1336, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file