Skip to content

Fix torchvision install #508

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

Merged
merged 18 commits into from
May 24, 2019
Merged

Fix torchvision install #508

merged 18 commits into from
May 24, 2019

Conversation

yf225
Copy link
Contributor

@yf225 yf225 commented May 23, 2019

Trying to fix the following error:

May 23 16:08:11 Traceback (most recent call last):
May 23 16:08:11   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_rst.py", line 394, in _memory_usage
May 23 16:08:11     out = func()
May 23 16:08:11   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_rst.py", line 382, in __call__
May 23 16:08:11     exec(self.code, self.globals)
May 23 16:08:11   File "/var/lib/jenkins/workspace/beginner_source/finetuning_torchvision_models_tutorial.py", line 49, in <module>
May 23 16:08:11     import torchvision
May 23 16:08:11   File "/opt/conda/lib/python3.6/site-packages/torchvision/__init__.py", line 1, in <module>
May 23 16:08:11     from torchvision import models
May 23 16:08:11   File "/opt/conda/lib/python3.6/site-packages/torchvision/models/__init__.py", line 11, in <module>
May 23 16:08:11     from . import detection
May 23 16:08:11   File "/opt/conda/lib/python3.6/site-packages/torchvision/models/detection/__init__.py", line 1, in <module>
May 23 16:08:11     from .faster_rcnn import *
May 23 16:08:11   File "/opt/conda/lib/python3.6/site-packages/torchvision/models/detection/faster_rcnn.py", line 7, in <module>
May 23 16:08:11     from torchvision.ops import misc as misc_nn_ops
May 23 16:08:11   File "/opt/conda/lib/python3.6/site-packages/torchvision/ops/__init__.py", line 1, in <module>
May 23 16:08:11     from .boxes import nms, box_iou
May 23 16:08:11   File "/opt/conda/lib/python3.6/site-packages/torchvision/ops/boxes.py", line 2, in <module>
May 23 16:08:11     from torchvision import _C
May 23 16:08:11 ImportError: /opt/conda/lib/python3.6/site-packages/torchvision/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19NonVariableTypeMode10is_enabledEv

by using the stock version of torchvision.

@netlify
Copy link

netlify bot commented May 23, 2019

Deploy preview for pytorch-tutorials-preview ready!

Built with commit fbaa01d

https://deploy-preview-508--pytorch-tutorials-preview.netlify.com

@yf225 yf225 force-pushed the fix_torchvision branch from 5d3ab9b to 013548a Compare May 23, 2019 21:42
Will Feng added 9 commits May 23, 2019 18:02
This reverts commit 5a610de.
This reverts commit 013548a.
This reverts commit c9ba905.
This reverts commit df9a4e4.
This reverts commit 49c65a7.
This reverts commit ac0cc5b.
@yf225 yf225 force-pushed the fix_torchvision branch from 0ac835f to 91725a0 Compare May 24, 2019 02:11
@yf225 yf225 force-pushed the fix_torchvision branch 2 times, most recently from 967cbde to e4f1579 Compare May 24, 2019 13:26
@yf225 yf225 force-pushed the fix_torchvision branch from e4f1579 to def5653 Compare May 24, 2019 13:27
@yf225 yf225 merged commit a681aeb into master May 24, 2019
@brianjo brianjo deleted the fix_torchvision branch August 7, 2019 14:35
rodrigo-techera pushed a commit to Experience-Monks/tutorials that referenced this pull request Nov 29, 2021
* Fix torchvision install

* update

* try to fix

* try to fix

* fix

* use cuda 10

* try to fix

* Revert "try to fix"

This reverts commit 5a610de.

* Revert "use cuda 10"

This reverts commit 013548a.

* Revert "fix"

This reverts commit c9ba905.

* Revert "try to fix"

This reverts commit df9a4e4.

* Revert "try to fix"

This reverts commit 49c65a7.

* Revert "update"

This reverts commit ac0cc5b.

* Revert "Fix torchvision install"

This reverts commit 2eca83c.

* try another way

* try to fix

* try to fix

* try something different
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant