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

Error in [conda install xformers -c xformers/label/dev] #1084

Open
11whitewater opened this issue Aug 23, 2024 · 6 comments
Open

Error in [conda install xformers -c xformers/label/dev] #1084

11whitewater opened this issue Aug 23, 2024 · 6 comments

Comments

@11whitewater
Copy link

11whitewater commented Aug 23, 2024

🐛 Bug

Command

conda install xformers -c xformers/label/dev

To Reproduce

Steps to reproduce the behavior:

1.conda install xformers -c xformers/label/dev
2.Collecting package metadata (current_repodata.json): failed
3.An unexpected error has occurred. Conda has prepared the above report.

Collecting package metadata (current_repodata.json): failed

ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/gateways/repodata/__init__.py", line 161, in conda_http_errors
    yield
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/gateways/repodata/__init__.py", line 127, in repodata
    response.raise_for_status()
  File "/home/test/anaconda3/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://conda.anaconda.org/xformers/label/dev/linux-64/current_repodata.json

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/anaconda3/lib/python3.10/site-packages/requests/models.py", line 971, in json
    return complexjson.loads(self.text, **kwargs)
  File "/home/test/anaconda3/lib/python3.10/site-packages/simplejson/__init__.py", line 514, in loads
    return _default_decoder.decode(s)
  File "/home/test/anaconda3/lib/python3.10/site-packages/simplejson/decoder.py", line 386, in decode
    obj, end = self.raw_decode(s)
  File "/home/test/anaconda3/lib/python3.10/site-packages/simplejson/decoder.py", line 416, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/exceptions.py", line 1132, in __call__
    return func(*args, **kwargs)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/cli/main.py", line 69, in main_subshell
    exit_code = do_call(args, p)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 122, in do_call
    return getattr(module, func_name)(args, parser)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/notices/core.py", line 121, in wrapper
    return func(*args, **kwargs)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/cli/main_install.py", line 20, in execute
    install(args, parser, 'install')
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/cli/install.py", line 264, in install
    unlink_link_transaction = solver.solve_for_transaction(
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 134, in solve_for_transaction
    unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 177, in solve_for_diff
    final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 282, in solve_final_state
    ssc = self._collect_all_metadata(ssc)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/common/io.py", line 84, in decorated
    return f(*args, **kwds)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 449, in _collect_all_metadata
    index, r = self._prepare(prepared_specs)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 1064, in _prepare
    reduced_index = get_reduced_index(self.prefix, self.channels,
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/index.py", line 267, in get_reduced_index
    new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/subdir_data.py", line 169, in query_all
    result = tuple(chain.from_iterable(executor.map(subdir_query, channel_urls)))
  File "/home/test/anaconda3/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator
    yield _result_or_cancel(fs.pop())
  File "/home/test/anaconda3/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
    return fut.result(timeout)
  File "/home/test/anaconda3/lib/python3.10/concurrent/futures/_base.py", line 458, in result
    return self.__get_result()
  File "/home/test/anaconda3/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/home/test/anaconda3/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/subdir_data.py", line 158, in subdir_query
    return tuple(
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/subdir_data.py", line 174, in query
    self.load()
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/subdir_data.py", line 264, in load
    _internal_state = self._load()
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/core/subdir_data.py", line 366, in _load
    raw_repodata_str = self._repo.repodata(cache.state)  # type: ignore
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/gateways/repodata/__init__.py", line 120, in repodata
    with conda_http_errors(self._url, filename):
  File "/home/test/anaconda3/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/gateways/repodata/__init__.py", line 208, in conda_http_errors
    raise RepodataIsEmpty(
  File "/home/test/anaconda3/lib/python3.10/site-packages/conda/exceptions.py", line 462, in __init__
    body = response.json()
  File "/home/test/anaconda3/lib/python3.10/site-packages/requests/models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

/home/test/anaconda3/bin/conda install xformers -c xformers/label/dev

environment variables:
CIO_TEST=
CONDA_DEFAULT_ENV=try
CONDA_EXE=/home/test/anaconda3/bin/conda
CONDA_PREFIX=/home/test/anaconda3/envs/try
CONDA_PREFIX_1=/home/test/anaconda3
CONDA_PREFIX_2=/home/test/anaconda3/envs/stablesr1
CONDA_PROMPT_MODIFIER=(try)
CONDA_PYTHON_EXE=/home/test/anaconda3/bin/python
CONDA_ROOT=/home/test/anaconda3
CONDA_SHLVL=3
CURL_CA_BUNDLE=
LD_LIBRARY_PATH=/usr/local/ffmpeg/lib/
LD_PRELOAD=
PATH=/home/test/.local/bin:/home/test/.cargo/bin:/home/test/anaconda3/envs/
try/bin:/usr/local/ffmpeg/bin:/home/test/anaconda3/bin:/home/test/anac
onda3/condabin:/data/anaconda3/bin:/usr/local/cuda-
11.7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
/usr/games:/usr/local/games:/snap/bin
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=

 active environment : try
active env location : /home/test/anaconda3/envs/try
        shell level : 3
   user config file : /home/test/.condarc

populated config files : /home/test/.condarc
conda version : 23.3.1
conda-build version : 3.24.0
python version : 3.10.9.final.0
virtual packages : __archspec=1=x86_64
__cuda=11.7=0
__glibc=2.31=0
__linux=5.15.0=0
__unix=0=0
base environment : /home/test/anaconda3 (writable)
conda av data dir : /home/test/anaconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/xformers/label/dev/linux-64
https://conda.anaconda.org/xformers/label/dev/noarch
https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/test/anaconda3/pkgs
/home/test/.conda/pkgs
envs directories : /home/test/anaconda3/envs
/home/test/.conda/envs
platform : linux-64
user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.9 Linux/5.15.0-101-generic ubuntu/20.04.2 glibc/2.31
UID:GID : 1000:1000
netrc file : /home/test/.netrc
offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

Expected behavior

install successfully

Environment

Please copy and paste the output from the
environment collection script from PyTorch
(or fill out the checklist below manually).

You can run the script with:

# For security purposes, please check the contents of collect_env.py before running it.
python -m torch.utils.collect_env
  • PyTorch Version (e.g., 1.0):1.12.1
  • OS (e.g., Linux):Linux
  • How you installed PyTorch (conda, pip, source):others
  • Build command you used (if compiling from source):conda env create --file environment.yaml
  • Python version:3.9
  • CUDA/cuDNN version:12.7
  • GPU models and configuration:stablesr
  • Any other relevant information:train stablesr

Collecting environment information...
PyTorch version: 1.12.1+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Clang version: Could not collect
CMake version: version 3.25.0
Libc version: glibc-2.31

Python version: 3.9.19 (main, May 6 2024, 19:43:03) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-101-generic-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: 11.7.64
GPU models and configuration:
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090
GPU 2: NVIDIA GeForce RTX 3090
GPU 3: NVIDIA GeForce RTX 3090

Nvidia driver version: 515.48.07
cuDNN version: Probably one of the following:
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn.so.8
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_adv_train.so.8
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8
/usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudnn_ops_train.so.8
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.23.1
[pip3] open-clip-torch==2.0.2
[pip3] pytorch-lightning==1.4.2
[pip3] pytorch-metric-learning==1.7.3
[pip3] torch==1.12.1
[pip3] torchmetrics==0.6.0
[pip3] torchvision==0.13.1
[conda] blas 1.0 mkl
[conda] cudatoolkit 11.3.1 h2bc3f7f_2
[conda] ffmpeg 4.3 hf484d3e_0 pytorch
[conda] mkl 2021.4.0 h06a4308_640
[conda] mkl-service 2.4.0 py39h7f8727e_0
[conda] mkl_fft 1.3.1 py39hd3c417c_0
[conda] mkl_random 1.2.2 py39h51133e4_0
[conda] numpy 1.23.1 py39h6c91a56_0
[conda] numpy-base 1.23.1 py39ha15fc14_0
[conda] open-clip-torch 2.0.2 pypi_0 pypi
[conda] pytorch-lightning 1.4.2 pypi_0 pypi
[conda] pytorch-mutex 1.0 cuda pytorch
[conda] torch 1.12.1 pypi_0 pypi
[conda] torchmetrics 0.6.0 pypi_0 pypi
[conda] torchvision 0.13.1 py39_cu113 pytorch

Additional context

image
image

@11whitewater
Copy link
Author

good heart people help help me😢

@lw
Copy link
Contributor

lw commented Aug 23, 2024

Any specific reason you need the dev label? Could you use a stable version instead?

@11whitewater
Copy link
Author

Any specific reason you need the dev label? Could you use a stable version instead?

hi, thanks for reply. I want to train [StableSR] project, and it needs pytorch1.12.1+cuda11.7 . StableSR Official recommended use [conda install xformers -c xformers/label/dev] to install xformers, but i failed. I also tried [pip install xformers==0.0.16/0.0.16rc425],
but it's not compatible. Could you tell me which version of xformers will work with Pytorch 1.12.1+cuda11.7 ?

@lw
Copy link
Contributor

lw commented Aug 26, 2024

I don't know off the top of my head, but PyTorch 1.12 is quite ancient, I don't know if any of our current packages is still compatible with that. I'd say that your best bet is to just ask conda to find out for you: if you ask it to install pytorch==1.12.1 pytorch-mutex==1.0=cuda pytorch-cuda==11.7 xformers then it should try to find a version of xFormers that works with the given requirements.

@lw
Copy link
Contributor

lw commented Aug 26, 2024

BTW I ran that command and it looks like xFormers 0.0.22 should work for you.

@11whitewater
Copy link
Author

BTW I ran that command and it looks like xFormers 0.0.22 should work for you.

Very lucky to have your help! I'll try again later!

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

No branches or pull requests

2 participants