Getting "ImportError: cannot import name string" when trying to run Pylearn2 make_cifar100_whitened.py
Coderx7 opened this issue · 5 comments
Coderx7 commented
When I am trying to run make_cifar100_whitened.py
inside Pylearn2/scripts/datasets
I get :
G:\pylearn2-master\pylearn2\scripts\datasets>make_cifar100_whitened.py
WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
Traceback (most recent call last):
File "G:\pylearn2-master\pylearn2\scripts\datasets\make_cifar100_whitened.py", line 10, in <module>
from pylearn2.utils import string
ImportError: cannot import name string
What is wrong here?
nouiz commented
No idea. Just a note that pylearn2 isn't supported anymore.
…On Tue, Feb 14, 2017 at 1:54 PM Seyyed Hossein Hasan Pour < ***@***.***> wrote:
When I am trying to run make_cifar100_whitened.py inside
Pylearn2/scripts/datasets I get :
G:\pylearn2-master\pylearn2\scripts\datasets>make_cifar100_whitened.py
WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
Traceback (most recent call last):
File "G:\pylearn2-master\pylearn2\scripts\datasets\make_cifar100_whitened.py", line 10, in <module>
from pylearn2.utils import string
ImportError: cannot import name string
What is wrong here?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1579>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALC-8qSk7ust_Hxpe6M6uLEyKayYwNXks5rcfhJgaJpZM4MA2p2>
.
Coderx7 commented
oh! well! good to know its a dead project now!
by the way thank you for pointing that out
Coderx7 commented
Ok Thanks to God, It seems I found the fix.
the actual import needs to be
from pylearn2.utils import string_utils as string
nouiz commented
If you make a PR with the fix, I'll merge it.
This way, if others still use Pylearn2 ir try to reproduce experiment, they
will get the fix.
…On Tue, Feb 14, 2017 at 1:54 PM Seyyed Hossein Hasan Pour < ***@***.***> wrote:
When I am trying to run make_cifar100_whitened.py inside
Pylearn2/scripts/datasets I get :
G:\pylearn2-master\pylearn2\scripts\datasets>make_cifar100_whitened.py
WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
Traceback (most recent call last):
File "G:\pylearn2-master\pylearn2\scripts\datasets\make_cifar100_whitened.py", line 10, in <module>
from pylearn2.utils import string
ImportError: cannot import name string
What is wrong here?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1579>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALC-8qSk7ust_Hxpe6M6uLEyKayYwNXks5rcfhJgaJpZM4MA2p2>
.