facebookresearch / mmf

A modular framework for vision & language multimodal research from Facebook AI Research (FAIR)

Home Page:https://mmf.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issue with installation

bocanegrah opened this issue · comments

❓ Questions and Help

I am using Anaconda in Windows and tried following the installation from source instructions by running
git clone https://github.com/facebookresearch/mmf.git
cd mmf
pip install --editable .
And I get the following error:

Obtaining file:///C:/Users/hevans/OneDrive%20-%20Canon%20NanoTechnologies%20Inc/Documents/OMSCS/CS7643/Project/MMF/mmf
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting pytorch-lightning@ git+https://github.com/PyTorchLightning/pytorch-lightning@9b011606f
  Cloning https://github.com/PyTorchLightning/pytorch-lightning (to revision 9b011606f) to c:\users\hevans\appdata\local\temp\pip-install-5w1npy1x\pytorch-lightning_ef21a872505f4652b6ca99a44a2b97e3
  Running command git clone --filter=blob:none --quiet https://github.com/PyTorchLightning/pytorch-lightning 'C:\Users\hevans\AppData\Local\Temp\pip-install-5w1npy1x\pytorch-lightning_ef21a872505f4652b6ca99a44a2b97e3'
  WARNING: Did not find branch or tag '9b011606f', assuming revision or ref.
  Running command git checkout -q 9b011606f
  Resolved https://github.com/PyTorchLightning/pytorch-lightning to commit 9b011606f
  Running command git submodule update --init --recursive -q
  Encountered 25 file(s) that should have been pointers, but weren't:
        .notebooks/course_UvA-DL/01-introduction-to-pytorch.ipynb
        .notebooks/course_UvA-DL/02-activation-functions.ipynb
        .notebooks/course_UvA-DL/03-initialization-and-optimization.ipynb
        .notebooks/course_UvA-DL/04-inception-resnet-densenet.ipynb
        .notebooks/course_UvA-DL/05-transformers-and-MH-attention.ipynb
        .notebooks/course_UvA-DL/06-graph-neural-networks.ipynb
        .notebooks/course_UvA-DL/07-deep-energy-based-generative-models.ipynb
        .notebooks/course_UvA-DL/08-deep-autoencoders.ipynb
        .notebooks/course_UvA-DL/09-normalizing-flows.ipynb
        .notebooks/course_UvA-DL/10-autoregressive-image-modeling.ipynb
        .notebooks/course_UvA-DL/11-vision-transformer.ipynb
        .notebooks/course_UvA-DL/12-meta-learning.ipynb
        .notebooks/course_UvA-DL/13-contrastive-learning.ipynb
        .notebooks/flash_tutorials/electricity_forecasting.ipynb
        .notebooks/lightning_examples/augmentation_kornia.ipynb
        .notebooks/lightning_examples/barlow-twins.ipynb
        .notebooks/lightning_examples/basic-gan.ipynb
        .notebooks/lightning_examples/cifar10-baseline.ipynb
        .notebooks/lightning_examples/datamodules.ipynb
        .notebooks/lightning_examples/mnist-hello-world.ipynb
        .notebooks/lightning_examples/mnist-tpu-training.ipynb
        .notebooks/lightning_examples/reinforce-learning-DQN.ipynb
        .notebooks/lightning_examples/text-transformers.ipynb
        .notebooks/templates/simple.ipynb
        .notebooks/templates/titanic.ipynb
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in pytorch-lightning setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
```
I also tried using the instructions for windows using 
`pip install -f https://download.pytorch.org/whl/cpu/torch-0.4.1-cp37-cp37m-win_amd64.whl --editable .`
But get the exact same error about 'extras_require'

Is this a bug, or am I missing something with the instructions?

I have same problem

commented

I also have same problem

I have the same problem too

One thing that helped me was commenting the github portion from the pytorch-lightning line in line 22 of the requirements.txt. Original file:
pytorch-lightning @ git+https://github.com/PyTorchLightning/pytorch-lightning@9b011606f
New file:
pytorch-lightning #@ git+https://github.com/PyTorchLightning/pytorch-lightning@9b011606f

One thing that helped me was commenting the github portion from the pytorch-lightning line in line 22 of the requirements.txt. Original file: pytorch-lightning @ git+https://github.com/PyTorchLightning/pytorch-lightning@9b011606f New file: pytorch-lightning #@ git+https://github.com/PyTorchLightning/pytorch-lightning@9b011606f

Thank you so much @bocanegrah. This fixed my problem!!

I put in the fix to upgrade lightning. should be fixed now