Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirement name changed form PIL to Pillow #463

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aroraakshit
Copy link

@facebook-github-bot
Copy link
Contributor

Hi @aroraakshit!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@aroraakshit
Copy link
Author

aroraakshit commented Jul 29, 2021

Environment: NGC PyTorch container - https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel_21-07.html#rel_21-07 with dependencies installed from INSTALL.md

Error:

root@f76de558d36f:/pql/SlowFast# python setup.py build develop
running build
running build_py
creating build
creating build/lib
creating build/lib/slowfast
copying slowfast/__init__.py -> build/lib/slowfast
creating build/lib/slowfast/config
copying slowfast/config/custom_config.py -> build/lib/slowfast/config
copying slowfast/config/defaults.py -> build/lib/slowfast/config
copying slowfast/config/__init__.py -> build/lib/slowfast/config
creating build/lib/slowfast/datasets
copying slowfast/datasets/ava_dataset.py -> build/lib/slowfast/datasets
copying slowfast/datasets/ava_helper.py -> build/lib/slowfast/datasets
copying slowfast/datasets/build.py -> build/lib/slowfast/datasets
copying slowfast/datasets/charades.py -> build/lib/slowfast/datasets
copying slowfast/datasets/cv2_transform.py -> build/lib/slowfast/datasets
copying slowfast/datasets/decoder.py -> build/lib/slowfast/datasets
copying slowfast/datasets/imagenet.py -> build/lib/slowfast/datasets
copying slowfast/datasets/kinetics.py -> build/lib/slowfast/datasets
copying slowfast/datasets/loader.py -> build/lib/slowfast/datasets
copying slowfast/datasets/mixup.py -> build/lib/slowfast/datasets
copying slowfast/datasets/multigrid_helper.py -> build/lib/slowfast/datasets
copying slowfast/datasets/ptv_datasets.py -> build/lib/slowfast/datasets
copying slowfast/datasets/random_erasing.py -> build/lib/slowfast/datasets
copying slowfast/datasets/rand_augment.py -> build/lib/slowfast/datasets
copying slowfast/datasets/ssv2.py -> build/lib/slowfast/datasets
copying slowfast/datasets/transform.py -> build/lib/slowfast/datasets
copying slowfast/datasets/utils.py -> build/lib/slowfast/datasets
copying slowfast/datasets/video_container.py -> build/lib/slowfast/datasets
copying slowfast/datasets/__init__.py -> build/lib/slowfast/datasets
creating build/lib/slowfast/models
copying slowfast/models/attention.py -> build/lib/slowfast/models
copying slowfast/models/batchnorm_helper.py -> build/lib/slowfast/models
copying slowfast/models/build.py -> build/lib/slowfast/models
copying slowfast/models/common.py -> build/lib/slowfast/models
copying slowfast/models/custom_video_model_builder.py -> build/lib/slowfast/models
copying slowfast/models/head_helper.py -> build/lib/slowfast/models
copying slowfast/models/losses.py -> build/lib/slowfast/models
copying slowfast/models/nonlocal_helper.py -> build/lib/slowfast/models
copying slowfast/models/operators.py -> build/lib/slowfast/models
copying slowfast/models/optimizer.py -> build/lib/slowfast/models
copying slowfast/models/ptv_model_builder.py -> build/lib/slowfast/models
copying slowfast/models/resnet_helper.py -> build/lib/slowfast/models
copying slowfast/models/stem_helper.py -> build/lib/slowfast/models
copying slowfast/models/utils.py -> build/lib/slowfast/models
copying slowfast/models/video_model_builder.py -> build/lib/slowfast/models
copying slowfast/models/__init__.py -> build/lib/slowfast/models
creating build/lib/slowfast/utils
copying slowfast/utils/ava_eval_helper.py -> build/lib/slowfast/utils
copying slowfast/utils/benchmark.py -> build/lib/slowfast/utils
copying slowfast/utils/bn_helper.py -> build/lib/slowfast/utils
copying slowfast/utils/c2_model_loading.py -> build/lib/slowfast/utils
copying slowfast/utils/checkpoint.py -> build/lib/slowfast/utils
copying slowfast/utils/distributed.py -> build/lib/slowfast/utils
copying slowfast/utils/env.py -> build/lib/slowfast/utils
copying slowfast/utils/logging.py -> build/lib/slowfast/utils
copying slowfast/utils/lr_policy.py -> build/lib/slowfast/utils
copying slowfast/utils/meters.py -> build/lib/slowfast/utils
copying slowfast/utils/metrics.py -> build/lib/slowfast/utils
copying slowfast/utils/misc.py -> build/lib/slowfast/utils
copying slowfast/utils/multigrid.py -> build/lib/slowfast/utils
copying slowfast/utils/multiprocessing.py -> build/lib/slowfast/utils
copying slowfast/utils/parser.py -> build/lib/slowfast/utils
copying slowfast/utils/weight_init_helper.py -> build/lib/slowfast/utils
copying slowfast/utils/__init__.py -> build/lib/slowfast/utils
creating build/lib/slowfast/visualization
copying slowfast/visualization/async_predictor.py -> build/lib/slowfast/visualization
copying slowfast/visualization/ava_demo_precomputed_boxes.py -> build/lib/slowfast/visualization
copying slowfast/visualization/demo_loader.py -> build/lib/slowfast/visualization
copying slowfast/visualization/gradcam_utils.py -> build/lib/slowfast/visualization
copying slowfast/visualization/prediction_vis.py -> build/lib/slowfast/visualization
copying slowfast/visualization/predictor.py -> build/lib/slowfast/visualization
copying slowfast/visualization/tensorboard_vis.py -> build/lib/slowfast/visualization
copying slowfast/visualization/utils.py -> build/lib/slowfast/visualization
copying slowfast/visualization/video_visualizer.py -> build/lib/slowfast/visualization
copying slowfast/visualization/__init__.py -> build/lib/slowfast/visualization
creating build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/label_map_util.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/metrics.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/np_box_list.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/np_box_list_ops.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/np_box_mask_list.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/np_box_mask_list_ops.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/np_box_ops.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/np_mask_ops.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/object_detection_evaluation.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/per_image_evaluation.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/standard_fields.py -> build/lib/slowfast/utils/ava_evaluation
copying slowfast/utils/ava_evaluation/__init__.py -> build/lib/slowfast/utils/ava_evaluation
running develop
running egg_info
creating slowfast.egg-info
writing slowfast.egg-info/PKG-INFO
writing dependency_links to slowfast.egg-info/dependency_links.txt
writing requirements to slowfast.egg-info/requires.txt
writing top-level names to slowfast.egg-info/top_level.txt
writing manifest file 'slowfast.egg-info/SOURCES.txt'
reading manifest file 'slowfast.egg-info/SOURCES.txt'
writing manifest file 'slowfast.egg-info/SOURCES.txt'
running build_ext
Creating /opt/conda/lib/python3.8/site-packages/slowfast.egg-link (link to .)
Adding slowfast 1.0 to easy-install.pth file

Installed /pql/SlowFast
Processing dependencies for slowfast==1.0
Searching for sklearn
Reading https://pypi.org/simple/sklearn/
Downloading https://files.pythonhosted.org/packages/1e/7a/dbb3be0ce9bd5c8b7e3d87328e79063f8b263b2b1bfa4774cb1147bfcd3f/sklearn-0.0.tar.gz#sha256=e23001573aa194b834122d2b9562459bf5ae494a2d59ca6b8aa22c85a44c0e31
Best match: sklearn 0.0
Processing sklearn-0.0.tar.gz
Writing /tmp/easy_install-q7pjb10r/sklearn-0.0/setup.cfg
Running sklearn-0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-q7pjb10r/sklearn-0.0/egg-dist-tmp-h406oqy5
file wheel-platform-tag-is-broken-on-empty-wheels-see-issue-141.py (for module wheel-platform-tag-is-broken-on-empty-wheels-see-issue-141) not found
file wheel-platform-tag-is-broken-on-empty-wheels-see-issue-141.py (for module wheel-platform-tag-is-broken-on-empty-wheels-see-issue-141) not found
file wheel-platform-tag-is-broken-on-empty-wheels-see-issue-141.py (for module wheel-platform-tag-is-broken-on-empty-wheels-see-issue-141) not found
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

creating /opt/conda/lib/python3.8/site-packages/sklearn-0.0-py3.8.egg
Extracting sklearn-0.0-py3.8.egg to /opt/conda/lib/python3.8/site-packages
Adding sklearn 0.0 to easy-install.pth file

Installed /opt/conda/lib/python3.8/site-packages/sklearn-0.0-py3.8.egg
Searching for PIL
Reading https://pypi.org/simple/PIL/
No local packages or working download links found for PIL
error: Could not find suitable distribution for Requirement.parse('PIL')

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 29, 2021
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@vedantroy
Copy link

I'm running into this error, should I just change setup.py, or has a fix been published?

@kairi003
Copy link

kairi003 commented Mar 6, 2023

@vedantroy
Hello,

I tested a very small PR in an environment with detectron2 installed, and it worked perfectly using the following steps:

# Install detectron2
apt-get update && apt-get install -y python3-opencv
pip install -U pip
pip install torch
pip install git+https://github.com/facebookresearch/[email protected]#egg=detectron2

# Clone and Merge
git clone https://github.com/facebookresearch/SlowFast.git
cd SlowFast
git remote add aroraakshit https://github.com/aroraakshit/SlowFast.git
git fetch aroraakshit
git merge aroraakshit/patch-1

# Install Test
pip install .

If the error is This branch is out-of-date with the base branch, it is because this original repository is more advanced than the forked one, and it is a Github configuration issue.
I hope this PR will be merged for the sake of simplifying installation.

@kairi003 kairi003 mentioned this pull request Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants