v-iashin / MDVC

PyTorch implementation of Multi-modal Dense Video Captioning (CVPR 2020 Workshops)
https://v-iashin.github.io/mdvc
142 stars 19 forks source link

ResolvePackageNotFound Issue #17

Closed sslee8778960 closed 3 years ago

sslee8778960 commented 3 years ago

When I try to use your yml file to create the virtual environment i have following error message.

ResolvePackageNotFound:

v-iashin commented 3 years ago

Are you trying to install it on Windows?

sslee8778960 commented 3 years ago

Yes man!

sslee8778960 commented 3 years ago

Is there any way I could try your code on google Colab if working it on Windows is not suggested? I am new to this. Thank you very much!

sslee8778960 commented 3 years ago

I did some research and tried to move all the failed packages into pip section. The error is resolved but i encountered new error message.

The following is my revised version:

name: mdvc channels:

And the following is the new error message i have encountered. Collecting package metadata (repodata.json): done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 4.9.0 latest version: 4.9.2

Please update conda by running

$ conda update -n base conda

Downloading and Extracting Packages dill-0.2.9 | 135 KB | ############################################################################################### | 100% msgpack-numpy-0.4.4. | 8 KB | ############################################################################################### | 100% olefile-0.46 | 49 KB | ############################################################################################### | 100% pip-20.0.2 | 1.9 MB | ############################################################################################### | 100% cudnn-7.3.1 | 148.7 MB | ############################################################################################### | 100% python-dateutil-2.8. | 220 KB | ############################################################################################### | 100% asn1crypto-1.3.0 | 158 KB | ############################################################################################### | 100% ca-certificates-2020 | 184 KB | ############################################################################################### | 100% pytz-2019.3 | 237 KB | ############################################################################################### | 100% cudatoolkit-10.0.130 | 250.0 MB | ############################################################################################### | 100% _libgcc_mutex-0.1 | 4 KB | ############################################################################################### | 100% six-1.14.0 | 23 KB | ############################################################################################### | 100% urllib3-1.25.8 | 170 KB | ############################################################################################### | 100% libblas-3.8.0 | 3.5 MB | ############################################################################################### | 100% requests-2.23.0 | 84 KB | ############################################################################################### | 100% mkl-2020.0 | 98.9 MB | ############################################################################################### | 100% plac-0.9.6 | 38 KB | ############################################################################################### | 100% werkzeug-1.0.1 | 239 KB | ############################################################################################### | 100% intel-openmp-2020.0 | 1.5 MB | ############################################################################################### | 100% pyreadline-2.1 | 146 KB | ############################################################################################### | 100% idna-2.9 | 52 KB | ############################################################################################### | 100% tensorboard-1.14.0 | 3.2 MB | ############################################################################################### | 100% wheel-0.34.2 | 60 KB | ############################################################################################### | 100% libcblas-3.8.0 | 3.5 MB | ############################################################################################### | 100% wincertstore-0.2 | 15 KB | ############################################################################################### | 100% termcolor-1.1.0 | 8 KB | ############################################################################################### | 100% tqdm-4.45.0 | 58 KB | ############################################################################################### | 100% msgpack-python-1.0.2 | 80 KB | ############################################################################################### | 100% liblapack-3.8.0 | 3.5 MB | ############################################################################################### | 100% vc-14.2 | 12 KB | ############################################################################################### | 100% vs2015_runtime-14.28 | 1.4 MB | ############################################################################################### | 100% toolz-0.10.0 | 46 KB | ############################################################################################### | 100% python-3.7.9 | 17.9 MB | ############################################################################################### | 100% protobuf-3.14.0 | 261 KB | ############################################################################################### | 100% cryptography-3.3.1 | 594 KB | ############################################################################################### | 100% cffi-1.14.4 | 226 KB | ############################################################################################### | 100% future-0.17.1 | 633 KB | ############################################################################################### | 100% absl-py-0.8.1 | 158 KB | ############################################################################################### | 100% win_inet_pton-1.1.0 | 8 KB | ############################################################################################### | 100% pyopenssl-19.1.0 | 83 KB | ############################################################################################### | 100% zlib-1.2.11 | 126 KB | ############################################################################################### | 100% pysocks-1.7.1 | 27 KB | ############################################################################################### | 100% blas-1.0 | 1 KB | ############################################################################################### | 100% certifi-2020.4.5.1 | 150 KB | ############################################################################################### | 100% libprotobuf-3.14.0 | 2.3 MB | ############################################################################################### | 100% numpy-1.19.5 | 4.8 MB | ############################################################################################### | 100% setuptools-46.1.3 | 528 KB | ############################################################################################### | 100% chardet-3.0.4 | 184 KB | ############################################################################################### | 100% openssl-1.1.1i | 5.8 MB | ############################################################################################### | 100% markdown-3.2.1 | 61 KB | ############################################################################################### | 100% pycparser-2.20 | 89 KB | ############################################################################################### | 100% python_abi-3.7 | 4 KB | ############################################################################################### | 100% sqlite-3.34.0 | 1.2 MB | ############################################################################################### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Installing pip dependencies: / Ran pip subprocess with arguments: ['C:\Users\sslee\anaconda3\envs\mdvc\python.exe', '-m', 'pip', 'install', '-U', '-r', 'C:\Users\sslee\Desktop\MDVC\condaenv.c_r9 ibeq.requirements.txt'] Pip subprocess output:

Pip subprocess error: ERROR: Invalid requirement: 'cffi=1.14.0=py37h2e261b9_0' (from line 2 of C:\Users\sslee\Desktop\MDVC\condaenv.c_r9ibeq.requirements.txt) Hint: = is not a valid operator. Did you mean == ?

failed

CondaEnvException: Pip failed

(base) C:\Users\sslee\Desktop\MDVC>conda env create -f conda_env.yml

CondaValueError: prefix already exists: C:\Users\sslee\anaconda3\envs\mdvc

sslee8778960 commented 3 years ago

Hi I actually i followed the suggestion by conda that changing "=" into "==", the problem got sorted.

However, I encountered this error now. it is very frustrated to simply build the virtual environment and reproduce your work. Any suggestions? I do have a mac, windows, at hand but no linux system.

ERROR: Could not find a version that satisfies the requirement cffi==1.14.0=py37h2e261b9_0 (from -r C:\Users\sslee\Desktop\MDVC\condaenv.p1r1zucz.requirements.txt (line 2) ) (from versions: 0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.1, 0.4.2, 0.5, 0.6, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1 .0.2.post2, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.2.0.post1, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.2, 1.8.3, 1.9.0, 1.9.1, 1.10.0, 1.11. 0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4) ERROR: No matching distribution found for cffi==1.14.0=py37h2e261b9_0 (from -r C:\Users\sslee\Desktop\MDVC\condaenv.p1r1zucz.requirements.txt (line 2))

failed

CondaEnvException: Pip failed

sslee8778960 commented 3 years ago

Are you trying to install it on Windows?

Yes I am trying to install it on Windows. Thanks!

v-iashin commented 3 years ago

I am sorry. We do not support windows.

Luckily, we have all requirements listed with versions. So, it should be easy to replicate the environment. The last resort solution would be to create a Docker and try it from there.

sslee8778960 commented 3 years ago

I am sorry. We do not support windows.

Luckily, we have all requirements listed with versions. So, it should be easy to replicate the environment. The last resort solution would be to create a Docker and try it from there.

Thank you very much for the reply. So the original method is supported by Linux? Thanks again.

v-iashin commented 3 years ago

I would say that I tested it on Linux and I haven't tested it on windows.

Maybe it will also work on windows with a properly set up environment.