TorchStudio / torchstudio

IDE for PyTorch and its ecosystem
https://torchstudio.ai
MIT License
383 stars 27 forks source link

gdk-pixbuf error on installation #40

Open albertinopadin opened 2 years ago

albertinopadin commented 2 years ago

I tried to install v0.9.9 on an M1 Max Macbook Pro, but am getting the following error:

Screen Shot 2022-08-20 at 1 19 47 AM

Looking at the log file, this is what I found:

ERROR: Failed to update gdk-pixbuf's cache, some plugins may not be found. To fix this, activate the environment and run: gdk-pixbuf-query-loaders >"/Users/albertinopadin/TorchStudio/python/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"

Looks like a problem with gdk-pixbuf-feedstock, as this error is coming from this file

I followed the instructions, however the process is immediately killed and upon running cat ~/TorchStudio/python/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache, there doesn't seem to be anything in the file.

I've attached the full log file below: TorchStudio 2022.08.20-01.02.09.txt

Sorry if this is just an issue with a dependency - feel free to close this if this is the case.

divideconcept commented 2 years ago

I tried to repro on my Macbook Air M1 but couldn't. I would suggest the following: 1/ check that you have enough space on your computer (you need at least 5GB free to install the Python environment) 2/ delete ~/TorchStudio, launch TorchStudio again and click Install. Let me know how it goes.

albertinopadin commented 2 years ago

Hi, 1) I've got > 1 TB free, so this shouldn't be the problem 2) I tried this a few times, but it still gives me the same error. Tried the Test and Nightly channels as well, with the same results. I wonder if there is something in my conda installation that is causing this? I've updated conda to the latest version, but it doesn't seem to help.

This is the output for conda info on my machine:

active environment : None shell level : 0 user config file : /Users/albertinopadin/.condarc populated config files : /Users/albertinopadin/miniforge3/.condarc /Users/albertinopadin/.condarc conda version : 4.14.0 conda-build version : not installed python version : 3.9.13.final.0 virtual packages : osx=12.5.1=0 unix=0=0 __archspec=1=arm64 base environment : /Users/albertinopadin/miniforge3 (writable) conda av data dir : /Users/albertinopadin/miniforge3/etc/conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64 https://conda.anaconda.org/conda-forge/noarch package cache : /Users/albertinopadin/miniforge3/pkgs /Users/albertinopadin/.conda/pkgs envs directories : /Users/albertinopadin/miniforge3/envs /Users/albertinopadin/.conda/envs platform : osx-arm64 user-agent : conda/4.14.0 requests/2.28.1 CPython/3.9.13 Darwin/21.6.0 OSX/12.5.1 UID:GID : 501:20 netrc file : None offline mode : False

albertinopadin commented 2 years ago

Good news - I was able to get the app to open, after creating the conda environment manually. Here are the steps I did:

  1. Install and open the TorchStudio app - this will create ~/TorchStudio folder

  2. In Terminal, go to this folder and run the following commands:

    conda create --prefix=~/TorchStudio/ts conda config --append envs_dirs ~/TorchStudio/ts conda activate ts conda install python conda install pytorch torchvision torchaudio torchtext matplotlib-base python-graphviz -c pytorch

  3. Then in the initial setup/install screen, click Select and select the ~/TorchStudio/ts/bin/python file

One question - how can I now install all the models the default installation includes?