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
test failed after installation in ubuntu12 #1808
Comments
That's very strange. It seems that you have an old version of joblib |
I haven't encountered any problem when using 'import joblib'. using 'dpkg' to check what I installed the joblib, following messages show: " python-joblib 0.5.4-1 tools to provide lightweight pipelining in Python". I think I have no problem of package 'python-joblib', right? BTW, I tested some examples without errors. But I am still worrying about the future works. Could you help again? |
OK, so you have version 0.5.4 of joblib, installed by the system) and you are trying to use a recent version of the scikit (Which version? How did you install it?) that clearly requires a more recent version of joblib (compression was added in 0.6). |
@GaelVaroquaux But sklearn should always import joblib from externals, right? Why does it use the system version? |
The debian packagers have a modified version that imports the system joblib. I am suspecting a mess-up there. |
oh, alright. |
Then, how do I update the joblib version to 0.6? |
First, can you please tell us what is the package version for |
python-joblib, 0.5.4-1 |
Well that's bad news. It seems that the Debian packagers screwed up and I guess that the easiest option is to use both sklearn and joblib from |
So, I guess we should tell someone at debian about this? |
@GaelVaroquaux , what should I do to deal with the issue now? Thanks both. |
Technically at Ubuntu, I believe. Cc @yarikoptic |
As I said, I would try installing packages from neurodebian. |
@GaelVaroquaux , any update? |
@xianping why don't you use the neurodebian source? |
@amueller Sorry, I don't know what is the difference between ubuntu and neurodebian. But I have already has ubuntu os installed and other systems are running on that. May I need to update some packages to solve this ? @GaelVaroquaux |
Just add the neuro debian repository to your apt source list and update scikit-learn and joblib, I think. |
Seems to be fixed upstream in the meanwhile, closing this issue. |
I installed the package using 'apt-get install python-sklearn', and then tested it by using 'nosetests sklearn --exe', but failed. Error messages below:
ERROR: sklearn.datasets.tests.test_lfw.test_load_fake_lfw_people
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(_self.arg)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/tests/test_lfw.py", line 120, in test_load_fake_lfw_people
min_faces_per_person=3)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/lfw.py", line 337, in load_lfw_people
return fetch_lfw_people(download_if_missing=download_if_missing, *_kwargs)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/lfw.py", line 266, in fetch_lfw_people
m = Memory(cachedir=lfw_home, compress=6, verbose=0)
TypeError: init() got an unexpected keyword argument 'compress'
-------------------- >> begin captured logging << --------------------
sklearn.datasets.lfw: INFO: Loading LFW people faces from /tmp/scikit_learn_lfw_test_yijxlU/lfw_home
--------------------- >> end captured logging << ---------------------
ERROR: sklearn.datasets.tests.test_lfw.test_load_fake_lfw_people_too_restrictive
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(_self.arg)
File "/usr/lib/python2.7/dist-packages/nose/tools.py", line 80, in newfunc
func(_arg, *_kw)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/tests/test_lfw.py", line 149, in test_load_fake_lfw_people_too_restrictive
load_lfw_people(data_home=SCIKIT_LEARN_DATA, min_faces_per_person=100)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/lfw.py", line 337, in load_lfw_people
return fetch_lfw_people(download_if_missing=download_if_missing, *_kwargs)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/lfw.py", line 266, in fetch_lfw_people
m = Memory(cachedir=lfw_home, compress=6, verbose=0)
TypeError: init() got an unexpected keyword argument 'compress'
-------------------- >> begin captured logging << --------------------
sklearn.datasets.lfw: INFO: Loading LFW people faces from /tmp/scikit_learn_lfw_test_yijxlU/lfw_home
--------------------- >> end captured logging << ---------------------
ERROR: sklearn.datasets.tests.test_lfw.test_load_fake_lfw_pairs
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(_self.arg)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/tests/test_lfw.py", line 158, in test_load_fake_lfw_pairs
lfw_pairs_train = load_lfw_pairs(data_home=SCIKIT_LEARN_DATA)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/lfw.py", line 433, in load_lfw_pairs
return fetch_lfw_pairs(download_if_missing=download_if_missing, *_kwargs)
File "/usr/lib/pymodules/python2.7/sklearn/datasets/lfw.py", line 404, in fetch_lfw_pairs
m = Memory(cachedir=lfw_home, compress=6, verbose=0)
TypeError: init() got an unexpected keyword argument 'compress'
-------------------- >> begin captured logging << --------------------
sklearn.datasets.lfw: INFO: Loading train LFW pairs from /tmp/scikit_learn_lfw_test_yijxlU/lfw_home
--------------------- >> end captured logging << ---------------------
Ran 613 tests in 64.717s
FAILED (SKIP=6, errors=3)
ps: my environment :(lsb_release -a)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
The text was updated successfully, but these errors were encountered: