Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'python' #424

Open
amaze28 opened this issue Nov 11, 2023 · 6 comments
Open

FileNotFoundError: [Errno 2] No such file or directory: 'python' #424

amaze28 opened this issue Nov 11, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@amaze28
Copy link

amaze28 commented Nov 11, 2023

Describe the bug
Trying to update autoGPTQ after error in text-generation-webui LoRA training which says in text-generation-webuit:

ImportError: Found an incompatible version of auto-gptq. Found version 0.4.2+cu121, but only versions above 0.5.0 are supported

Hardware details
AMD Epyc, RTX 3090, 128GB RAM

Software version
text-generation-webui OobaBooga updated 11/10/2023
Lllama-2-Mistral-Zephyr beta loaded in transformers, 4 bit, double quantization

To Reproduce
Followed instructions on PanQiWei Github page:

git clone https://github.com/PanQiWei/AutoGPTQ.git && cd AutoGPTQ

pip install -v .

Expected behavior
expected to update AutoGPTQ to 0.5.0 or above

Screenshots
Generating qigen kernels...
Traceback (most recent call last):
File "/home/wc/AutoGPTQ/setup.py", line 103, in
subprocess.check_output(["python", "./autogptq_extension/qigen/generate.py", "--module", "--search", "--p", str(p)])
File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
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: 'python'

@amaze28 amaze28 added the bug Something isn't working label Nov 11, 2023
@LaaZa
Copy link
Contributor

LaaZa commented Nov 11, 2023

Are you sure you installed it into the virtual environment? You need to activate that first. This is not an AutoGPTQ issue.

@amaze28
Copy link
Author

amaze28 commented Nov 11, 2023

Oh thanks for the speedy response. Let me fix that and close this thread.

@JiyangZhang
Copy link

I am facing the same error. I am wondering if you had solved this?

@LaaZa
Copy link
Contributor

LaaZa commented Dec 16, 2023

I am facing the same error. I am wondering if you had solved this?

Activate virtual environment and follow quick installation in the readme.

No need to build from git. Just
pip install auto-gptq

Or 11.8 cuda equivalent if you are still using that.

@JiyangZhang
Copy link

Thank you! Not sure why, but installing the latest version will not have this problem. This happens for 0.5.1

@LaaZa
Copy link
Contributor

LaaZa commented Dec 16, 2023

Thank you! Not sure why, but installing the latest version will not have this problem. This happens for 0.5.1

There have been some fixes but also you skip the build step if you install a released version from PyPi. This error occured, I think, because one of the build steps was trying to call python but it's sometimes python3 and python should be 2.7 but is not installed nor would it work. If you are in the proper virtual environment however, it will work and be the correct python version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants