Dain-App icon indicating copy to clipboard operation
Dain-App copied to clipboard

Error while creating conda environment

Open 420noscope-exe opened this issue 3 years ago • 4 comments

I recently built a manjaro machine with a GTX 1070 to try and compile the DAIN-APP from scratch and fix the memory leak issue.

I added pytorch to my channels

conda config --append channels pytorch

Then I tried creating the conda environment,

conda create --name DAIN-APP --file requirements.txt

And now I am only missing one package:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - mindepthflowprojection-cuda==0.0.0=pypi_0

Current channels:

  - 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
  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://conda.anaconda.org/pytorch/linux-64
  - https://conda.anaconda.org/pytorch/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

What is this package, and where do I find it? Do I even need it? Do I remove it from the requirements.txt and attempt a compile?

I can't seem to find it anywhere, and a quick google search doesn't really seem to turn up much either.

https://github.com/BurguerJohn/Dain-App/blob/ebd4f22ffd97df6560acc2b59b22ef15ac1945ee/requirements.txt#L34

420noscope-exe avatar Oct 18 '21 03:10 420noscope-exe

Dain have quite a few scripts in pytorch C You need to compile those and install on your machine. Check out: https://github.com/BurguerJohn/Dain-App/blob/master/my_package/build.sh

BurguerJohn avatar Oct 18 '21 12:10 BurguerJohn

I have the same issue, it doesn't find mindepthflowprojection-cuda in the defined channels. You gave a solution compiling and installing some pytorch C scripts, but I do not see how to do that, do you have any clue ? Thank you.

$ conda create --name DAIN-APP --file requirements.txt 
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - mindepthflowprojection-cuda==0.0.0=pypi_0

Current channels:

  - 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
  - https://conda.anaconda.org/pytorch/linux-64
  - https://conda.anaconda.org/pytorch/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

gaialabs avatar Oct 22 '21 23:10 gaialabs

So I managed to get the entire thing built on a manjaro machine with a 1070 that I built specifically just for this, as all of my linux machines have AMD graphics. There were a lot of hurdles. I definitely believe that - mindepthflowprojection-cuda==0.0.0=pypi_0 should be removed from the requirements.txt. You have to run conda activate DAIN-APP in order for pytorch to work so you can build mindepthflowprojection, and you can't do that without creating the environment first, which requires that the package be built. Doesn't really make sense if you are starting from scratch like I did. I removed that line from requirements.txt, and that fixed my issue.

You should also say how to build those prerequisite packages in the README

All you have to do is cd to where you cloned the repository, and into my_package (after making the edit to the requirements.txt)

cd Dain-App conda activate DAIN-APP cd my_package sudo chmod +x build.sh sudo ./build.sh

Then continue with the instructions in the README

420noscope-exe avatar Oct 24 '21 19:10 420noscope-exe

I ran into similar problems.

  1. Commented out requirements.txt #mindepthflowprojection-cuda=0.0.0=pypi_0
  2. All of the pytorch>1.4.0 was CPU conda search -f pytorch
  3. Tried commenting out *torch* in the requirements.txt and then installing after the fact (and activating DAIN-APP) with conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
  4. That isn't allowed, it conflicts with the other reqs.

Open to suggestions!

salamanders avatar Sep 14 '22 18:09 salamanders