-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi. I've been trying to install torch-cubas-hgemm (for flux-fp8-api) on ubuntu without success.
The same error ModuleNotFoundError: No module named 'torch'
, whether with
pip install git+https://github.com/aredden/torch-cublas-hgemm.git@master
or with
python -m pip install -U -v .
(after cloning the repository).
--> Of course, torch is installed.
Regards.
python -m pip install -U -v .
Using pip 24.2 from /mnt/w/TDocker/gradio1/flux-fp8-api/venv/lib/python3.12/site-packages/pip (python 3.12)
Processing /mnt/w/TDocker/gradio1/flux-fp8-api/torch-cublas-hgemm
Running command pip subprocess to install build dependencies
Using pip 24.2 from /mnt/w/TDocker/gradio1/flux-fp8-api/venv/lib/python3.12/site-packages/pip (python 3.12)
Collecting setuptools>=40.8.0
Obtaining dependency information for setuptools>=40.8.0 from https://files.pythonhosted.org/packages/ff/ae/f19306b5a221f6a436d8f2238d5b80925004093fa3edea59835b514d9057/setuptools-75.1.0-py3-none-any.whl.metadata
Using cached setuptools-75.1.0-py3-none-any.whl.metadata (6.9 kB)
Using cached setuptools-75.1.0-py3-none-any.whl (1.2 MB)
Installing collected packages: setuptools
Successfully installed setuptools-75.1.0
Installing build dependencies ... done
Running command Getting requirements to build wheel
Traceback (most recent call last):
File "/mnt/w/TDocker/gradio1/flux-fp8-api/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/mnt/w/TDocker/gradio1/flux-fp8-api/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/w/TDocker/gradio1/flux-fp8-api/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-a9kwdlcq/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-a9kwdlcq/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-a9kwdlcq/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-a9kwdlcq/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "<string>", line 3, in <module>
ModuleNotFoundError: No module named 'torch'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /mnt/w/TDocker/gradio1/flux-fp8-api/venv/bin/python /mnt/w/TDocker/gradio1/flux-fp8-api/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpnp9reoxk
cwd: /mnt/w/TDocker/gradio1/flux-fp8-api/torch-cublas-hgemm
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Metadata
Metadata
Assignees
Labels
No labels