-
Notifications
You must be signed in to change notification settings - Fork 321
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
cannot import name 'PY3' from 'torch._six' on fresh install of bolts #581
Comments
Hi! thanks for your contribution!, great first issue! |
@davzaman mind share what you mean fresh install, from git/master, or from pip? |
Sure, I installed from conda actually. Here's all the steps used to initialize my new conda environment:
|
@davzaman I do not see how you install bolts... |
Oh I'm so sorry i completely missed that line! |
ok, can you try |
I created a new env and instead of |
so it was fixed with #579 |
🐛 Bug
Fresh install of pytorch-lightning and pytorch-lightning bolts leads to error
cannot import name 'PY3' from 'torch._six'
Looks like it was renamed to
PY37
intorch._six
. I changed all references toPY3
toPY37
insidepl_bolts/datasets/imagenet_dataset.py
and the problem resolved.Code sample
from pl_bolts.datamodules import MNISTDataModule
Expected behavior
the package should run with no error.
Environment
conda
,pip
, source): condaThe text was updated successfully, but these errors were encountered: