Closed neilramsay closed 10 years ago
Hi Neil,
Thanks for the report! I cannot reproduce the problem on my end. Can you share what operating system are you using and Python version? It would be also helpful if you could send me your scaler.pkl to my e-mail address.
Just to be sure: you cloned the repository and did not try to copy the scaler.pkl content by hand? That sort of errors often occur when format is changed from binary to text. Besides, there is at least one known to me bug in Python pickle module that can cause unpickling errors - but let's first eliminate the more likely causes.
Hi Lukasz,
I am doing an initial testing with MintLinux 16 in a 64bit VM.
It has the Ubuntu python package version 2.7.5-5ubuntu1
I fetched the project via a git clone https://github.com/tracek/Ornithokrites.git
I will send you my copy of scaler.pkl to you via email. It has a SHA1 hash of
38b339296412b3539fbf41c0ad17baef2eb39737 scaler.pkl
Cheers, Neil
Hi Lucas,
Thank you for your help :-)
The pickle error was due to a version problem in the scikit-learn package.
I had a system package installed, which was version 0.13, but version 0.14 is required. This is because between version 0.13 and 0.14 preprocessing.py was split into a module, which has a data.py file.
Cheers, Neil
My thanks for explanation! To avoid such problems in future I made importing sklearn modules explicit and stated in Readme what versions of libraries are needed. Issue closed.
Cheers, Lucas
Hi there,
I am having some trouble loading the scaler.pkl pickle file. I can unpickle model.pkl with no problems at all.
Unpickling scaler.pkl returns the error "ImportError: No module named data".
Have you come across this error before?
Cheers, Neil Ramsay
branch: master current HEAD: 97517b9454a897879365249cd14cf9a73770ae14