Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Problem installing the dependencies for the plugins on win10 on a fresh autogpt clone #215

Open
KaptainKeelhaul opened this issue Jul 12, 2023 · 5 comments

Comments

@KaptainKeelhaul
Copy link

When cloning AutoGPT and then trying to introduce the plugins, the update dependencies step fail:

.\run.bat --install-plugin-deps

It gives this output:

`ModuleNotFoundError: No module named 'validators'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\repos\Auto-GPT\autogpt_main
.py", line 5, in
autogpt.cli.main()
File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1666, in invoke
rv = super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 783, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\decorators.py", line 34, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\repos\Auto-GPT\autogpt\cli.py", line 117, in main
run_auto_gpt(
File "C:\repos\Auto-GPT\autogpt\main.py", line 131, in run_auto_gpt
config.plugins = scan_plugins(config, config.debug_mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\repos\Auto-GPT\autogpt\plugins_init
.py", line 261, in scan_plugins
zipped_module = zipped_package.load_module(str(module.parent))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 301, in load_module
File "plugins\Auto-GPT-Plugins.zip\Auto-GPT-Plugins-master\src\autogpt_plugins\api_tools_init
.py", line 9, in
ModuleNotFoundError: No module named 'api_tools'`

Going to investigate it more

@srkn-ts
Copy link

srkn-ts commented Jul 17, 2023

Same here.

@tlok666
Copy link

tlok666 commented Jul 19, 2023

Same issue!

@jameswhand
Copy link

Me too!

@jameswhand
Copy link

How to fix it? I faced the same issue and just can't use any plugin.

@jameswhand
Copy link

When cloning AutoGPT and then trying to introduce the plugins, the update dependencies step fail:

.\run.bat --install-plugin-deps

It gives this output:

`ModuleNotFoundError: No module named 'validators'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 198, in run_module_as_main File "", line 88, in run_code File "C:\repos\Auto-GPT\autogpt__main.py", line 5, in autogpt.cli.main() File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1157, in call return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1666, in invoke rv = super().invoke(ctx) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 783, in invoke return callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\tedli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\decorators.py", line 34, in new_func return f(get_current_context(), *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\repos\Auto-GPT\autogpt\cli.py", line 117, in main run_auto_gpt( File "C:\repos\Auto-GPT\autogpt\main.py", line 131, in run_auto_gpt config.plugins = scan_plugins(config, config.debug_mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\repos\Auto-GPT\autogpt\plugins__init.py", line 261, in scan_plugins zipped_module = zipped_package.load_module(str(module.parent)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 301, in load_module File "plugins\Auto-GPT-Plugins.zip\Auto-GPT-Plugins-master\src\autogpt_plugins\api_tools__init__.py", line 9, in ModuleNotFoundError: No module named 'api_tools'`

Going to investigate it more

Man, I figured this out. You have to unzip the main zip file under the "./plugins" folder, for me it is the "Auto-GPT-Plugins.zip", then find the "requirements.txt" in the unzipped folder, and run "pip install -r requirements.txt" to install these dependencies manually!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants