Bug #3322
openAttributeError: 'memmap' object has no attribute 'offset'
0%
Description
https://github.com/joblib/joblib/issues/161
Doe this mean that we need to upgrade numpy ?
Updated by Neil Voss over 9 years ago
- Subject changed from tiltaligner have error of AttributeError: 'memmap' object has no attribute 'offset' to AttributeError: 'memmap' object has no attribute 'offset'
I am getting this error all the time, but for dogPicker.py. Do we know what line of the code is causing the problem?
Updated by Neil Voss over 9 years ago
Okay, I found the problem line. But why do we get it sometimes and not others....
Updated by Neil Voss over 9 years ago
I was thinking something like:
numpyVersion = float(numpy.version.version[:3]) if numpyVersion > 1.7: peaktreelist = Parallel(n_jobs=params['nproc'])(delayed(runFindPeaks)(params, maplist,maptype,pikfile,thresh,pixdiam,count,olapmult,maxpeaks,maxsizemult, msg,bin,peaktype,pixrad,imgdict) for count in range(0,len(maplist))) else: ## backup for AttributeError: 'memmap' object has no attribute 'offset', bug #3322 peaktreelist = [] for count in range(0,len(maplist)): peaktree = runFindPeaks(params,maplist,maptype,pikfile,thresh,pixdiam,count,olapmult, maxpeaks,maxsizemult,msg,bin,peaktype,pixrad,imgdict) peaktreelist.append(peaktree)
Because as of right now myami-3.2 does not work on CentOS 6 out of the box.
Updated by Anchi Cheng over 9 years ago
guess that will have to do, unless Sargis has a good instruction for users to install newer numpy ?
Updated by Neil Voss over 9 years ago
I am running Appion under Docker, so I do not want to make too many changes it add overhead.
I guess it should be whether we should stop supporting CentOS 6 (I think it is too early).
How much speed up do we get from using the joblib? Because I could put in some other optimizations. I think it is currently optimized for displaying alternate thresholds, etc.
Updated by Anchi Cheng over 9 years ago
- Assignee changed from Sargis Dallakyan to Gabriel Lander
Adding Gabe and Scott in the watch list in case they know what is. I have not benchmarked it in any way.
Updated by Sargis Dallakyan over 9 years ago
Thanks Anchi. I don't know much about joblib, except how to install it.
Regarding supporting CentOS 6, I think we should keep it until at least Q2 2017 - https://en.wikipedia.org/wiki/CentOS#End-of-support_schedule
I was watching Python in Production Panel Discussion yesterday. There were some interesting discussions on Python 3, Docker and CentOS 5.
Updated by Anchi Cheng over 9 years ago
- Assignee changed from Gabriel Lander to Neil Voss
I change the code in r19248 observing a bug from r19233.
Neil, Please check if this makes sense.