Coder Social home page Coder Social logo

Comments (11)

GuillaumeLeclerc avatar GuillaumeLeclerc commented on July 26, 2024 1

Conda can be really annoying. To be honest we don't really need anything specific from there. The only reason we used it was to avoid having to specify installation that vary from linux distribution to linux distribution but it might be doing more harm than good...

from ffcv.

andrewilyas avatar andrewilyas commented on July 26, 2024

Hi @mbsariyildiz ! Do you mind posting the version of CUDA and the NVIDIA Drivers that you have installed? (e.g., the output of nvidia-smi)?

from ffcv.

mbsariyildiz avatar mbsariyildiz commented on July 26, 2024

Thanks a lot for your quick response.
I use NVIDIA driver version: 470.57.02 and CUDA Version: 11.4
Just to note, I am able to install PyTorch alone with cudatoolkit=11.3.

from ffcv.

GuillaumeLeclerc avatar GuillaumeLeclerc commented on July 26, 2024

Any idea which package is causing the conflict? I would try without cupy and maybe without numba first and if it works we see from there.

from ffcv.

mbsariyildiz avatar mbsariyildiz commented on July 26, 2024

Here is what I tried:

  • By removing the python=3.9 constraint, I managed to create an environment peacefully. But then I got opencv-related issues (to be more specific, about ffmpeg decoders). ffmpeg was installed from the pytorch channel, and forcing conda to replace it from the version available in the default conda channel, or the conda-forge channel again resulted in a bunch of conflicts.
  • Tried to create a conda environment from a fresh Anaconda installation, but again ended up with the same conflicts.
  • Tried to use different GCC versions (some of the issues were GCC-related), again, no success.

After 2 hours of struggle, I gave up.
Interestingly, one of my colleagues managed to install ffcv on the same machine successfully. I simply cloned his conda environment, and installed ffcv on top, which worked.
Couple of things I noticed though, the version of major libraries, like PyTorch, CuPy, Numba was different, and ffmpeg was from the conda-forge channel.

from ffcv.

andrewilyas avatar andrewilyas commented on July 26, 2024

Thanks for letting us know @mbsariyildiz ! What version of conda did they have?

from ffcv.

mbsariyildiz avatar mbsariyildiz commented on July 26, 2024

Sorry for not being clear @andrewilyas , he had the same conda version 4.10.3.
I find that a bit odd, as we were on the same machine, using the same CUDA & NVIDIA drivers and LD_LIBRARY_PATH PATH variables.

Just to add, upgrading my conda to 4.11.0, or installing the latest ffmpeg via pip also didn't help. I guess I couldn't link the correct ffmpeg lib.

Thanks for your attention @andrewilyas and @GuillaumeLeclerc . I'll use this conda env that I cloned from my colleague for now. Please let me know if I can provide more information for you to diagnose. Otherwise, please feel free to close this issue.

from ffcv.

PeriklisTheodoropoulos avatar PeriklisTheodoropoulos commented on July 26, 2024

HI, could you please also mention the steps your colleague took to resolve the ffmpeg conflict? I have been trying to install opencv with python 3.9 and conda version 4.10.3 (I am working with a remote server and so can not downgrade conda) and am running into an incomplete installation (the process terminates midway when ffmpeg is being installed).

from ffcv.

andrewilyas avatar andrewilyas commented on July 26, 2024

Based on the stack trace @mbsariyildiz the problem might be with conda's strict channel priority mode. Try something like this in the created env?

conda config --env --set channel_priority flexible

(Edited!)

from ffcv.

mbsariyildiz avatar mbsariyildiz commented on July 26, 2024

@andrewilyas updating the channel priority of conda as you said solved the issue! 🎆 Wow, great, thank you very much.

@PeriklisTheodoropoulos, he didn't have any issue with ffmpeg actually. He was able to create a working environment.

from ffcv.

andrewilyas avatar andrewilyas commented on July 26, 2024

Great! Closing this issue and added a note to the README regarding the fix.

from ffcv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.