AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

I'm following the quickstart guide and it says setup.sh doesn't exist

Open repryty opened this issue 2 years ago • 3 comments

⚠️ Search for existing issues first ⚠️

  • [X] I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Windows

Which version of AutoGPT are you using?

Master (branch)

Do you use OpenAI GPT-3 or GPT-4?

GPT-3.5

Which area covers your issue best?

Installation and setup

Describe your issue.

I'm using a translator, so please excuse any unnatural sentences.

I was following the quickstart guide and when I ran ./run setup.sh, it stopped with the following error.

Traceback (most recent call last): File "/mnt/c/Users/LG/Documents/GitHub/AutoGPT/cli.py", line 893, in <module> cli() File "/home/reep/.local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/home/reep/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/reep/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/reep/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/reep/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/mnt/c/Users/LG/Documents/GitHub/AutoGPT/cli.py", line 52, in setup subprocess.check_call([setup_script], cwd=script_dir) File "/usr/lib/python3.10/subprocess.py", line 364, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib/python3.10/subprocess.py", line 345, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib/python3.10/subprocess.py", line 971, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/mnt/c/Users/LG/Documents/GitHub/AutoGPT/setup.sh'

image

Also, the search results kept telling me to install requirements.txt, but I couldn't find it.

Upload Activity Log Content

No response

Upload Error Log Content

No response

repryty avatar Jan 18 '24 08:01 repryty

if you are on windows, then you need to use dos2unix on the run and setup.sh scripts

MrCredible avatar Jan 30 '24 03:01 MrCredible

I have this exact same problem. The dos2unix solution doesn't seem to work.

image

davectr avatar Jan 31 '24 22:01 davectr

The instructions could use an update. You need to use dos2unix for setup, run, and run_benchmark in each agent you create.

MrCredible avatar Jan 31 '24 23:01 MrCredible

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Mar 22 '24 01:03 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Apr 01 '24 01:04 github-actions[bot]

I also encountered the same problem, I typed dos2unix setup.sh and then type ./run setup ,then it's ok. image

expeditionist-cj avatar Apr 16 '24 07:04 expeditionist-cj